as.info 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587
  1. This is as.info, produced by makeinfo version 6.7 from as.texi.
  2. This file documents the GNU Assembler "as".
  3. Copyright (C) 1991-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 RISC-V
  20. Embedded GCC\x2C 64-bit) version 2.32.
  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 CRIS options:_
  97. [-underscore | -no-underscore]
  98. [-pic] [-N]
  99. [-emulation=criself | -emulation=crisaout]
  100. [-march=v0_v10 | -march=v10 | -march=v32 | -march=common_v10_v32]
  101. _Target C-SKY options:_
  102. [-march=ARCH] [-mcpu=CPU]
  103. [-EL] [-mlittle-endian] [-EB] [-mbig-endian]
  104. [-fpic] [-pic]
  105. [-mljump] [-mno-ljump]
  106. [-force2bsr] [-mforce2bsr] [-no-force2bsr] [-mno-force2bsr]
  107. [-jsri2bsr] [-mjsri2bsr] [-no-jsri2bsr ] [-mno-jsri2bsr]
  108. [-mnolrw ] [-mno-lrw]
  109. [-melrw] [-mno-elrw]
  110. [-mlaf ] [-mliterals-after-func]
  111. [-mno-laf] [-mno-literals-after-func]
  112. [-mlabr] [-mliterals-after-br]
  113. [-mno-labr] [-mnoliterals-after-br]
  114. [-mistack] [-mno-istack]
  115. [-mhard-float] [-mmp] [-mcp] [-mcache]
  116. [-msecurity] [-mtrust]
  117. [-mdsp] [-medsp] [-mvdsp]
  118. _Target D10V options:_
  119. [-O]
  120. _Target D30V options:_
  121. [-O|-n|-N]
  122. _Target EPIPHANY options:_
  123. [-mepiphany|-mepiphany16]
  124. _Target H8/300 options:_
  125. [-h-tick-hex]
  126. _Target i386 options:_
  127. [-32|-x32|-64] [-n]
  128. [-march=CPU[+EXTENSION...]] [-mtune=CPU]
  129. _Target IA-64 options:_
  130. [-mconstant-gp|-mauto-pic]
  131. [-milp32|-milp64|-mlp64|-mp64]
  132. [-mle|mbe]
  133. [-mtune=itanium1|-mtune=itanium2]
  134. [-munwind-check=warning|-munwind-check=error]
  135. [-mhint.b=ok|-mhint.b=warning|-mhint.b=error]
  136. [-x|-xexplicit] [-xauto] [-xdebug]
  137. _Target IP2K options:_
  138. [-mip2022|-mip2022ext]
  139. _Target M32C options:_
  140. [-m32c|-m16c] [-relax] [-h-tick-hex]
  141. _Target M32R options:_
  142. [-m32rx|-[no-]warn-explicit-parallel-conflicts|
  143. -W[n]p]
  144. _Target M680X0 options:_
  145. [-l] [-m68000|-m68010|-m68020|...]
  146. _Target M68HC11 options:_
  147. [-m68hc11|-m68hc12|-m68hcs12|-mm9s12x|-mm9s12xg]
  148. [-mshort|-mlong]
  149. [-mshort-double|-mlong-double]
  150. [-force-long-branches] [-short-branches]
  151. [-strict-direct-mode] [-print-insn-syntax]
  152. [-print-opcodes] [-generate-example]
  153. _Target MCORE options:_
  154. [-jsri2bsr] [-sifilter] [-relax]
  155. [-mcpu=[210|340]]
  156. _Target Meta options:_
  157. [-mcpu=CPU] [-mfpu=CPU] [-mdsp=CPU]
  158. _Target MICROBLAZE options:_
  159. _Target MIPS options:_
  160. [-nocpp] [-EL] [-EB] [-O[OPTIMIZATION LEVEL]]
  161. [-g[DEBUG LEVEL]] [-G NUM] [-KPIC] [-call_shared]
  162. [-non_shared] [-xgot [-mvxworks-pic]
  163. [-mabi=ABI] [-32] [-n32] [-64] [-mfp32] [-mgp32]
  164. [-mfp64] [-mgp64] [-mfpxx]
  165. [-modd-spreg] [-mno-odd-spreg]
  166. [-march=CPU] [-mtune=CPU] [-mips1] [-mips2]
  167. [-mips3] [-mips4] [-mips5] [-mips32] [-mips32r2]
  168. [-mips32r3] [-mips32r5] [-mips32r6] [-mips64] [-mips64r2]
  169. [-mips64r3] [-mips64r5] [-mips64r6]
  170. [-construct-floats] [-no-construct-floats]
  171. [-mignore-branch-isa] [-mno-ignore-branch-isa]
  172. [-mnan=ENCODING]
  173. [-trap] [-no-break] [-break] [-no-trap]
  174. [-mips16] [-no-mips16]
  175. [-mmips16e2] [-mno-mips16e2]
  176. [-mmicromips] [-mno-micromips]
  177. [-msmartmips] [-mno-smartmips]
  178. [-mips3d] [-no-mips3d]
  179. [-mdmx] [-no-mdmx]
  180. [-mdsp] [-mno-dsp]
  181. [-mdspr2] [-mno-dspr2]
  182. [-mdspr3] [-mno-dspr3]
  183. [-mmsa] [-mno-msa]
  184. [-mxpa] [-mno-xpa]
  185. [-mmt] [-mno-mt]
  186. [-mmcu] [-mno-mcu]
  187. [-mcrc] [-mno-crc]
  188. [-mginv] [-mno-ginv]
  189. [-mloongson-mmi] [-mno-loongson-mmi]
  190. [-mloongson-cam] [-mno-loongson-cam]
  191. [-mloongson-ext] [-mno-loongson-ext]
  192. [-mloongson-ext2] [-mno-loongson-ext2]
  193. [-minsn32] [-mno-insn32]
  194. [-mfix7000] [-mno-fix7000]
  195. [-mfix-rm7000] [-mno-fix-rm7000]
  196. [-mfix-vr4120] [-mno-fix-vr4120]
  197. [-mfix-vr4130] [-mno-fix-vr4130]
  198. [-mfix-r5900] [-mno-fix-r5900]
  199. [-mdebug] [-no-mdebug]
  200. [-mpdr] [-mno-pdr]
  201. _Target MMIX options:_
  202. [-fixed-special-register-names] [-globalize-symbols]
  203. [-gnu-syntax] [-relax] [-no-predefined-symbols]
  204. [-no-expand] [-no-merge-gregs] [-x]
  205. [-linker-allocated-gregs]
  206. _Target Nios II options:_
  207. [-relax-all] [-relax-section] [-no-relax]
  208. [-EB] [-EL]
  209. _Target NDS32 options:_
  210. [-EL] [-EB] [-O] [-Os] [-mcpu=CPU]
  211. [-misa=ISA] [-mabi=ABI] [-mall-ext]
  212. [-m[no-]16-bit] [-m[no-]perf-ext] [-m[no-]perf2-ext]
  213. [-m[no-]string-ext] [-m[no-]dsp-ext] [-m[no-]mac] [-m[no-]div]
  214. [-m[no-]audio-isa-ext] [-m[no-]fpu-sp-ext] [-m[no-]fpu-dp-ext]
  215. [-m[no-]fpu-fma] [-mfpu-freg=FREG] [-mreduced-regs]
  216. [-mfull-regs] [-m[no-]dx-regs] [-mpic] [-mno-relax]
  217. [-mb2bb]
  218. _Target PDP11 options:_
  219. [-mpic|-mno-pic] [-mall] [-mno-extensions]
  220. [-mEXTENSION|-mno-EXTENSION]
  221. [-mCPU] [-mMACHINE]
  222. _Target picoJava options:_
  223. [-mb|-me]
  224. _Target PowerPC options:_
  225. [-a32|-a64]
  226. [-mpwrx|-mpwr2|-mpwr|-m601|-mppc|-mppc32|-m603|-m604|-m403|-m405|
  227. -m440|-m464|-m476|-m7400|-m7410|-m7450|-m7455|-m750cl|-mgekko|
  228. -mbroadway|-mppc64|-m620|-me500|-e500x2|-me500mc|-me500mc64|-me5500|
  229. -me6500|-mppc64bridge|-mbooke|-mpower4|-mpwr4|-mpower5|-mpwr5|-mpwr5x|
  230. -mpower6|-mpwr6|-mpower7|-mpwr7|-mpower8|-mpwr8|-mpower9|-mpwr9-ma2|
  231. -mcell|-mspe|-mspe2|-mtitan|-me300|-mcom]
  232. [-many] [-maltivec|-mvsx|-mhtm|-mvle]
  233. [-mregnames|-mno-regnames]
  234. [-mrelocatable|-mrelocatable-lib|-K PIC] [-memb]
  235. [-mlittle|-mlittle-endian|-le|-mbig|-mbig-endian|-be]
  236. [-msolaris|-mno-solaris]
  237. [-nops=COUNT]
  238. _Target PRU options:_
  239. [-link-relax]
  240. [-mnolink-relax]
  241. [-mno-warn-regname-label]
  242. _Target RISC-V options:_
  243. [-fpic|-fPIC|-fno-pic]
  244. [-march=ISA]
  245. [-mabi=ABI]
  246. _Target RL78 options:_
  247. [-mg10]
  248. [-m32bit-doubles|-m64bit-doubles]
  249. _Target RX options:_
  250. [-mlittle-endian|-mbig-endian]
  251. [-m32bit-doubles|-m64bit-doubles]
  252. [-muse-conventional-section-names]
  253. [-msmall-data-limit]
  254. [-mpid]
  255. [-mrelax]
  256. [-mint-register=NUMBER]
  257. [-mgcc-abi|-mrx-abi]
  258. _Target s390 options:_
  259. [-m31|-m64] [-mesa|-mzarch] [-march=CPU]
  260. [-mregnames|-mno-regnames]
  261. [-mwarn-areg-zero]
  262. _Target SCORE options:_
  263. [-EB][-EL][-FIXDD][-NWARN]
  264. [-SCORE5][-SCORE5U][-SCORE7][-SCORE3]
  265. [-march=score7][-march=score3]
  266. [-USE_R1][-KPIC][-O0][-G NUM][-V]
  267. _Target SPARC options:_
  268. [-Av6|-Av7|-Av8|-Aleon|-Asparclet|-Asparclite
  269. -Av8plus|-Av8plusa|-Av8plusb|-Av8plusc|-Av8plusd
  270. -Av8plusv|-Av8plusm|-Av9|-Av9a|-Av9b|-Av9c
  271. -Av9d|-Av9e|-Av9v|-Av9m|-Asparc|-Asparcvis
  272. -Asparcvis2|-Asparcfmaf|-Asparcima|-Asparcvis3
  273. -Asparcvisr|-Asparc5]
  274. [-xarch=v8plus|-xarch=v8plusa]|-xarch=v8plusb|-xarch=v8plusc
  275. -xarch=v8plusd|-xarch=v8plusv|-xarch=v8plusm|-xarch=v9
  276. -xarch=v9a|-xarch=v9b|-xarch=v9c|-xarch=v9d|-xarch=v9e
  277. -xarch=v9v|-xarch=v9m|-xarch=sparc|-xarch=sparcvis
  278. -xarch=sparcvis2|-xarch=sparcfmaf|-xarch=sparcima
  279. -xarch=sparcvis3|-xarch=sparcvisr|-xarch=sparc5
  280. -bump]
  281. [-32|-64]
  282. [-enforce-aligned-data][-dcti-couples-detect]
  283. _Target TIC54X options:_
  284. [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf]
  285. [-merrors-to-file <FILENAME>|-me <FILENAME>]
  286. _Target TIC6X options:_
  287. [-march=ARCH] [-mbig-endian|-mlittle-endian]
  288. [-mdsbt|-mno-dsbt] [-mpid=no|-mpid=near|-mpid=far]
  289. [-mpic|-mno-pic]
  290. _Target TILE-Gx options:_
  291. [-m32|-m64][-EB][-EL]
  292. _Target Visium options:_
  293. [-mtune=ARCH]
  294. _Target Xtensa options:_
  295. [-[no-]text-section-literals] [-[no-]auto-litpools]
  296. [-[no-]absolute-literals]
  297. [-[no-]target-align] [-[no-]longcalls]
  298. [-[no-]transform]
  299. [-rename-section OLDNAME=NEWNAME]
  300. [-[no-]trampolines]
  301. _Target Z80 options:_
  302. [-z80] [-r800]
  303. [ -ignore-undocumented-instructions] [-Wnud]
  304. [ -ignore-unportable-instructions] [-Wnup]
  305. [ -warn-undocumented-instructions] [-Wud]
  306. [ -warn-unportable-instructions] [-Wup]
  307. [ -forbid-undocumented-instructions] [-Fud]
  308. [ -forbid-unportable-instructions] [-Fup]
  309. '@FILE'
  310. Read command-line options from FILE. The options read are inserted
  311. in place of the original @FILE option. If FILE does not exist, or
  312. cannot be read, then the option will be treated literally, and not
  313. removed.
  314. Options in FILE are separated by whitespace. A whitespace
  315. character may be included in an option by surrounding the entire
  316. option in either single or double quotes. Any character (including
  317. a backslash) may be included by prefixing the character to be
  318. included with a backslash. The FILE may itself contain additional
  319. @FILE options; any such options will be processed recursively.
  320. '-a[cdghlmns]'
  321. Turn on listings, in any of a variety of ways:
  322. '-ac'
  323. omit false conditionals
  324. '-ad'
  325. omit debugging directives
  326. '-ag'
  327. include general information, like as version and options
  328. passed
  329. '-ah'
  330. include high-level source
  331. '-al'
  332. include assembly
  333. '-am'
  334. include macro expansions
  335. '-an'
  336. omit forms processing
  337. '-as'
  338. include symbols
  339. '=file'
  340. set the name of the listing file
  341. You may combine these options; for example, use '-aln' for assembly
  342. listing without forms processing. The '=file' option, if used,
  343. must be the last one. By itself, '-a' defaults to '-ahls'.
  344. '--alternate'
  345. Begin in alternate macro mode. *Note '.altmacro': Altmacro.
  346. '--compress-debug-sections'
  347. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  348. the ELF ABI. The resulting object file may not be compatible with
  349. older linkers and object file utilities. Note if compression would
  350. make a given section _larger_ then it is not compressed.
  351. '--compress-debug-sections=none'
  352. '--compress-debug-sections=zlib'
  353. '--compress-debug-sections=zlib-gnu'
  354. '--compress-debug-sections=zlib-gabi'
  355. These options control how DWARF debug sections are compressed.
  356. '--compress-debug-sections=none' is equivalent to
  357. '--nocompress-debug-sections'. '--compress-debug-sections=zlib'
  358. and '--compress-debug-sections=zlib-gabi' are equivalent to
  359. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  360. compresses DWARF debug sections using zlib. The debug sections are
  361. renamed to begin with '.zdebug'. Note if compression would make a
  362. given section _larger_ then it is not compressed nor renamed.
  363. '--nocompress-debug-sections'
  364. Do not compress DWARF debug sections. This is usually the default
  365. for all targets except the x86/x86_64, but a configure time option
  366. can be used to override this.
  367. '-D'
  368. Ignored. This option is accepted for script compatibility with
  369. calls to other assemblers.
  370. '--debug-prefix-map OLD=NEW'
  371. When assembling files in directory 'OLD', record debugging
  372. information describing them as in 'NEW' instead.
  373. '--defsym SYM=VALUE'
  374. Define the symbol SYM to be VALUE before assembling the input file.
  375. VALUE must be an integer constant. As in C, a leading '0x'
  376. indicates a hexadecimal value, and a leading '0' indicates an octal
  377. value. The value of the symbol can be overridden inside a source
  378. file via the use of a '.set' pseudo-op.
  379. '-f'
  380. "fast"--skip whitespace and comment preprocessing (assume source is
  381. compiler output).
  382. '-g'
  383. '--gen-debug'
  384. Generate debugging information for each assembler source line using
  385. whichever debug format is preferred by the target. This currently
  386. means either STABS, ECOFF or DWARF2.
  387. '--gstabs'
  388. Generate stabs debugging information for each assembler line. This
  389. may help debugging assembler code, if the debugger can handle it.
  390. '--gstabs+'
  391. Generate stabs debugging information for each assembler line, with
  392. GNU extensions that probably only gdb can handle, and that could
  393. make other debuggers crash or refuse to read your program. This
  394. may help debugging assembler code. Currently the only GNU
  395. extension is the location of the current working directory at
  396. assembling time.
  397. '--gdwarf-2'
  398. Generate DWARF2 debugging information for each assembler line.
  399. This may help debugging assembler code, if the debugger can handle
  400. it. Note--this option is only supported by some targets, not all
  401. of them.
  402. '--gdwarf-sections'
  403. Instead of creating a .debug_line section, create a series of
  404. .debug_line.FOO sections where FOO is the name of the corresponding
  405. code section. For example a code section called .TEXT.FUNC will
  406. have its dwarf line number information placed into a section called
  407. .DEBUG_LINE.TEXT.FUNC. If the code section is just called .TEXT
  408. then debug line section will still be called just .DEBUG_LINE
  409. without any suffix.
  410. '--size-check=error'
  411. '--size-check=warning'
  412. Issue an error or warning for invalid ELF .size directive.
  413. '--elf-stt-common=no'
  414. '--elf-stt-common=yes'
  415. These options control whether the ELF assembler should generate
  416. common symbols with the 'STT_COMMON' type. The default can be
  417. controlled by a configure option '--enable-elf-stt-common'.
  418. '--generate-missing-build-notes=yes'
  419. '--generate-missing-build-notes=no'
  420. These options control whether the ELF assembler should generate GNU
  421. Build attribute notes if none are present in the input sources.
  422. The default can be controlled by the
  423. '--enable-generate-build-notes' configure option.
  424. '--help'
  425. Print a summary of the command-line options and exit.
  426. '--target-help'
  427. Print a summary of all target specific options and exit.
  428. '-I DIR'
  429. Add directory DIR to the search list for '.include' directives.
  430. '-J'
  431. Don't warn about signed overflow.
  432. '-K'
  433. Issue warnings when difference tables altered for long
  434. displacements.
  435. '-L'
  436. '--keep-locals'
  437. Keep (in the symbol table) local symbols. These symbols start with
  438. system-specific local label prefixes, typically '.L' for ELF
  439. systems or 'L' for traditional a.out systems. *Note Symbol
  440. Names::.
  441. '--listing-lhs-width=NUMBER'
  442. Set the maximum width, in words, of the output data column for an
  443. assembler listing to NUMBER.
  444. '--listing-lhs-width2=NUMBER'
  445. Set the maximum width, in words, of the output data column for
  446. continuation lines in an assembler listing to NUMBER.
  447. '--listing-rhs-width=NUMBER'
  448. Set the maximum width of an input source line, as displayed in a
  449. listing, to NUMBER bytes.
  450. '--listing-cont-lines=NUMBER'
  451. Set the maximum number of lines printed in a listing for a single
  452. line of input to NUMBER + 1.
  453. '--no-pad-sections'
  454. Stop the assembler for padding the ends of output sections to the
  455. alignment of that section. The default is to pad the sections, but
  456. this can waste space which might be needed on targets which have
  457. tight memory constraints.
  458. '-o OBJFILE'
  459. Name the object-file output from 'as' OBJFILE.
  460. '-R'
  461. Fold the data section into the text section.
  462. '--hash-size=NUMBER'
  463. Set the default size of GAS's hash tables to a prime number close
  464. to NUMBER. Increasing this value can reduce the length of time it
  465. takes the assembler to perform its tasks, at the expense of
  466. increasing the assembler's memory requirements. Similarly reducing
  467. this value can reduce the memory requirements at the expense of
  468. speed.
  469. '--reduce-memory-overheads'
  470. This option reduces GAS's memory requirements, at the expense of
  471. making the assembly processes slower. Currently this switch is a
  472. synonym for '--hash-size=4051', but in the future it may have other
  473. effects as well.
  474. '--sectname-subst'
  475. Honor substitution sequences in section names. *Note '.section
  476. NAME': Section Name Substitutions.
  477. '--statistics'
  478. Print the maximum space (in bytes) and total time (in seconds) used
  479. by assembly.
  480. '--strip-local-absolute'
  481. Remove local absolute symbols from the outgoing symbol table.
  482. '-v'
  483. '-version'
  484. Print the 'as' version.
  485. '--version'
  486. Print the 'as' version and exit.
  487. '-W'
  488. '--no-warn'
  489. Suppress warning messages.
  490. '--fatal-warnings'
  491. Treat warnings as errors.
  492. '--warn'
  493. Don't suppress warning messages or treat them as errors.
  494. '-w'
  495. Ignored.
  496. '-x'
  497. Ignored.
  498. '-Z'
  499. Generate an object file even after errors.
  500. '-- | FILES ...'
  501. Standard input, or source files to assemble.
  502. *Note AArch64 Options::, for the options available when as is
  503. configured for the 64-bit mode of the ARM Architecture (AArch64).
  504. *Note Alpha Options::, for the options available when as is
  505. configured for an Alpha processor.
  506. The following options are available when as is configured for an ARC
  507. processor.
  508. '-mcpu=CPU'
  509. This option selects the core processor variant.
  510. '-EB | -EL'
  511. Select either big-endian (-EB) or little-endian (-EL) output.
  512. '-mcode-density'
  513. Enable Code Density extenssion instructions.
  514. The following options are available when as is configured for the ARM
  515. processor family.
  516. '-mcpu=PROCESSOR[+EXTENSION...]'
  517. Specify which ARM processor variant is the target.
  518. '-march=ARCHITECTURE[+EXTENSION...]'
  519. Specify which ARM architecture variant is used by the target.
  520. '-mfpu=FLOATING-POINT-FORMAT'
  521. Select which Floating Point architecture is the target.
  522. '-mfloat-abi=ABI'
  523. Select which floating point ABI is in use.
  524. '-mthumb'
  525. Enable Thumb only instruction decoding.
  526. '-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant'
  527. Select which procedure calling convention is in use.
  528. '-EB | -EL'
  529. Select either big-endian (-EB) or little-endian (-EL) output.
  530. '-mthumb-interwork'
  531. Specify that the code has been generated with interworking between
  532. Thumb and ARM code in mind.
  533. '-mccs'
  534. Turns on CodeComposer Studio assembly syntax compatibility mode.
  535. '-k'
  536. Specify that PIC code has been generated.
  537. *Note Blackfin Options::, for the options available when as is
  538. configured for the Blackfin processor family.
  539. See the info pages for documentation of the CRIS-specific options.
  540. *Note C-SKY Options::, for the options available when as is
  541. configured for the C-SKY processor family.
  542. The following options are available when as is configured for a D10V
  543. processor.
  544. '-O'
  545. Optimize output by parallelizing instructions.
  546. The following options are available when as is configured for a D30V
  547. processor.
  548. '-O'
  549. Optimize output by parallelizing instructions.
  550. '-n'
  551. Warn when nops are generated.
  552. '-N'
  553. Warn when a nop after a 32-bit multiply instruction is generated.
  554. The following options are available when as is configured for the
  555. Adapteva EPIPHANY series.
  556. *Note Epiphany Options::, for the options available when as is
  557. configured for an Epiphany processor.
  558. *Note i386-Options::, for the options available when as is configured
  559. for an i386 processor.
  560. The following options are available when as is configured for the
  561. Ubicom IP2K series.
  562. '-mip2022ext'
  563. Specifies that the extended IP2022 instructions are allowed.
  564. '-mip2022'
  565. Restores the default behaviour, which restricts the permitted
  566. instructions to just the basic IP2022 ones.
  567. The following options are available when as is configured for the
  568. Renesas M32C and M16C processors.
  569. '-m32c'
  570. Assemble M32C instructions.
  571. '-m16c'
  572. Assemble M16C instructions (the default).
  573. '-relax'
  574. Enable support for link-time relaxations.
  575. '-h-tick-hex'
  576. Support H'00 style hex constants in addition to 0x00 style.
  577. The following options are available when as is configured for the
  578. Renesas M32R (formerly Mitsubishi M32R) series.
  579. '--m32rx'
  580. Specify which processor in the M32R family is the target. The
  581. default is normally the M32R, but this option changes it to the
  582. M32RX.
  583. '--warn-explicit-parallel-conflicts or --Wp'
  584. Produce warning messages when questionable parallel constructs are
  585. encountered.
  586. '--no-warn-explicit-parallel-conflicts or --Wnp'
  587. Do not produce warning messages when questionable parallel
  588. constructs are encountered.
  589. The following options are available when as is configured for the
  590. Motorola 68000 series.
  591. '-l'
  592. Shorten references to undefined symbols, to one word instead of
  593. two.
  594. '-m68000 | -m68008 | -m68010 | -m68020 | -m68030'
  595. '| -m68040 | -m68060 | -m68302 | -m68331 | -m68332'
  596. '| -m68333 | -m68340 | -mcpu32 | -m5200'
  597. Specify what processor in the 68000 family is the target. The
  598. default is normally the 68020, but this can be changed at
  599. configuration time.
  600. '-m68881 | -m68882 | -mno-68881 | -mno-68882'
  601. The target machine does (or does not) have a floating-point
  602. coprocessor. The default is to assume a coprocessor for 68020,
  603. 68030, and cpu32. Although the basic 68000 is not compatible with
  604. the 68881, a combination of the two can be specified, since it's
  605. possible to do emulation of the coprocessor instructions with the
  606. main processor.
  607. '-m68851 | -mno-68851'
  608. The target machine does (or does not) have a memory-management unit
  609. coprocessor. The default is to assume an MMU for 68020 and up.
  610. *Note Nios II Options::, for the options available when as is
  611. configured for an Altera Nios II processor.
  612. For details about the PDP-11 machine dependent features options, see
  613. *note PDP-11-Options::.
  614. '-mpic | -mno-pic'
  615. Generate position-independent (or position-dependent) code. The
  616. default is '-mpic'.
  617. '-mall'
  618. '-mall-extensions'
  619. Enable all instruction set extensions. This is the default.
  620. '-mno-extensions'
  621. Disable all instruction set extensions.
  622. '-mEXTENSION | -mno-EXTENSION'
  623. Enable (or disable) a particular instruction set extension.
  624. '-mCPU'
  625. Enable the instruction set extensions supported by a particular
  626. CPU, and disable all other extensions.
  627. '-mMACHINE'
  628. Enable the instruction set extensions supported by a particular
  629. machine model, and disable all other extensions.
  630. The following options are available when as is configured for a
  631. picoJava processor.
  632. '-mb'
  633. Generate "big endian" format output.
  634. '-ml'
  635. Generate "little endian" format output.
  636. *Note PRU Options::, for the options available when as is configured
  637. for a PRU processor.
  638. The following options are available when as is configured for the
  639. Motorola 68HC11 or 68HC12 series.
  640. '-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg'
  641. Specify what processor is the target. The default is defined by
  642. the configuration option when building the assembler.
  643. '--xgate-ramoffset'
  644. Instruct the linker to offset RAM addresses from S12X address space
  645. into XGATE address space.
  646. '-mshort'
  647. Specify to use the 16-bit integer ABI.
  648. '-mlong'
  649. Specify to use the 32-bit integer ABI.
  650. '-mshort-double'
  651. Specify to use the 32-bit double ABI.
  652. '-mlong-double'
  653. Specify to use the 64-bit double ABI.
  654. '--force-long-branches'
  655. Relative branches are turned into absolute ones. This concerns
  656. conditional branches, unconditional branches and branches to a sub
  657. routine.
  658. '-S | --short-branches'
  659. Do not turn relative branches into absolute ones when the offset is
  660. out of range.
  661. '--strict-direct-mode'
  662. Do not turn the direct addressing mode into extended addressing
  663. mode when the instruction does not support direct addressing mode.
  664. '--print-insn-syntax'
  665. Print the syntax of instruction in case of error.
  666. '--print-opcodes'
  667. Print the list of instructions with syntax and then exit.
  668. '--generate-example'
  669. Print an example of instruction for each possible instruction and
  670. then exit. This option is only useful for testing 'as'.
  671. The following options are available when 'as' is configured for the
  672. SPARC architecture:
  673. '-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite'
  674. '-Av8plus | -Av8plusa | -Av9 | -Av9a'
  675. Explicitly select a variant of the SPARC architecture.
  676. '-Av8plus' and '-Av8plusa' select a 32 bit environment. '-Av9' and
  677. '-Av9a' select a 64 bit environment.
  678. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  679. UltraSPARC extensions.
  680. '-xarch=v8plus | -xarch=v8plusa'
  681. For compatibility with the Solaris v9 assembler. These options are
  682. equivalent to -Av8plus and -Av8plusa, respectively.
  683. '-bump'
  684. Warn when the assembler switches to another architecture.
  685. The following options are available when as is configured for the
  686. 'c54x architecture.
  687. '-mfar-mode'
  688. Enable extended addressing mode. All addresses and relocations
  689. will assume extended addressing (usually 23 bits).
  690. '-mcpu=CPU_VERSION'
  691. Sets the CPU version being compiled for.
  692. '-merrors-to-file FILENAME'
  693. Redirect error output to a file, for broken systems which don't
  694. support such behaviour in the shell.
  695. The following options are available when as is configured for a MIPS
  696. processor.
  697. '-G NUM'
  698. This option sets the largest size of an object that can be
  699. referenced implicitly with the 'gp' register. It is only accepted
  700. for targets that use ECOFF format, such as a DECstation running
  701. Ultrix. The default value is 8.
  702. '-EB'
  703. Generate "big endian" format output.
  704. '-EL'
  705. Generate "little endian" format output.
  706. '-mips1'
  707. '-mips2'
  708. '-mips3'
  709. '-mips4'
  710. '-mips5'
  711. '-mips32'
  712. '-mips32r2'
  713. '-mips32r3'
  714. '-mips32r5'
  715. '-mips32r6'
  716. '-mips64'
  717. '-mips64r2'
  718. '-mips64r3'
  719. '-mips64r5'
  720. '-mips64r6'
  721. Generate code for a particular MIPS Instruction Set Architecture
  722. level. '-mips1' is an alias for '-march=r3000', '-mips2' is an
  723. alias for '-march=r6000', '-mips3' is an alias for '-march=r4000'
  724. and '-mips4' is an alias for '-march=r8000'. '-mips5', '-mips32',
  725. '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6', '-mips64',
  726. '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6' correspond
  727. to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3,
  728. MIPS32 Release 5, MIPS32 Release 6, MIPS64, MIPS64 Release 2,
  729. MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA
  730. processors, respectively.
  731. '-march=CPU'
  732. Generate code for a particular MIPS CPU.
  733. '-mtune=CPU'
  734. Schedule and tune for a particular MIPS CPU.
  735. '-mfix7000'
  736. '-mno-fix7000'
  737. Cause nops to be inserted if the read of the destination register
  738. of an mfhi or mflo instruction occurs in the following two
  739. instructions.
  740. '-mfix-rm7000'
  741. '-mno-fix-rm7000'
  742. Cause nops to be inserted if a dmult or dmultu instruction is
  743. followed by a load instruction.
  744. '-mfix-r5900'
  745. '-mno-fix-r5900'
  746. Do not attempt to schedule the preceding instruction into the delay
  747. slot of a branch instruction placed at the end of a short loop of
  748. six instructions or fewer and always schedule a 'nop' instruction
  749. there instead. The short loop bug under certain conditions causes
  750. loops to execute only once or twice, due to a hardware bug in the
  751. R5900 chip.
  752. '-mdebug'
  753. '-no-mdebug'
  754. Cause stabs-style debugging output to go into an ECOFF-style
  755. .mdebug section instead of the standard ELF .stabs sections.
  756. '-mpdr'
  757. '-mno-pdr'
  758. Control generation of '.pdr' sections.
  759. '-mgp32'
  760. '-mfp32'
  761. The register sizes are normally inferred from the ISA and ABI, but
  762. these flags force a certain group of registers to be treated as 32
  763. bits wide at all times. '-mgp32' controls the size of
  764. general-purpose registers and '-mfp32' controls the size of
  765. floating-point registers.
  766. '-mgp64'
  767. '-mfp64'
  768. The register sizes are normally inferred from the ISA and ABI, but
  769. these flags force a certain group of registers to be treated as 64
  770. bits wide at all times. '-mgp64' controls the size of
  771. general-purpose registers and '-mfp64' controls the size of
  772. floating-point registers.
  773. '-mfpxx'
  774. The register sizes are normally inferred from the ISA and ABI, but
  775. using this flag in combination with '-mabi=32' enables an ABI
  776. variant which will operate correctly with floating-point registers
  777. which are 32 or 64 bits wide.
  778. '-modd-spreg'
  779. '-mno-odd-spreg'
  780. Enable use of floating-point operations on odd-numbered
  781. single-precision registers when supported by the ISA. '-mfpxx'
  782. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'.
  783. '-mips16'
  784. '-no-mips16'
  785. Generate code for the MIPS 16 processor. This is equivalent to
  786. putting '.module mips16' at the start of the assembly file.
  787. '-no-mips16' turns off this option.
  788. '-mmips16e2'
  789. '-mno-mips16e2'
  790. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  791. equivalent to putting '.module mips16e2' at the start of the
  792. assembly file. '-mno-mips16e2' turns off this option.
  793. '-mmicromips'
  794. '-mno-micromips'
  795. Generate code for the microMIPS processor. This is equivalent to
  796. putting '.module micromips' at the start of the assembly file.
  797. '-mno-micromips' turns off this option. This is equivalent to
  798. putting '.module nomicromips' at the start of the assembly file.
  799. '-msmartmips'
  800. '-mno-smartmips'
  801. Enables the SmartMIPS extension to the MIPS32 instruction set.
  802. This is equivalent to putting '.module smartmips' at the start of
  803. the assembly file. '-mno-smartmips' turns off this option.
  804. '-mips3d'
  805. '-no-mips3d'
  806. Generate code for the MIPS-3D Application Specific Extension. This
  807. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  808. turns off this option.
  809. '-mdmx'
  810. '-no-mdmx'
  811. Generate code for the MDMX Application Specific Extension. This
  812. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  813. off this option.
  814. '-mdsp'
  815. '-mno-dsp'
  816. Generate code for the DSP Release 1 Application Specific Extension.
  817. This tells the assembler to accept DSP Release 1 instructions.
  818. '-mno-dsp' turns off this option.
  819. '-mdspr2'
  820. '-mno-dspr2'
  821. Generate code for the DSP Release 2 Application Specific Extension.
  822. This option implies '-mdsp'. This tells the assembler to accept
  823. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  824. '-mdspr3'
  825. '-mno-dspr3'
  826. Generate code for the DSP Release 3 Application Specific Extension.
  827. This option implies '-mdsp' and '-mdspr2'. This tells the
  828. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  829. off this option.
  830. '-mmsa'
  831. '-mno-msa'
  832. Generate code for the MIPS SIMD Architecture Extension. This tells
  833. the assembler to accept MSA instructions. '-mno-msa' turns off
  834. this option.
  835. '-mxpa'
  836. '-mno-xpa'
  837. Generate code for the MIPS eXtended Physical Address (XPA)
  838. Extension. This tells the assembler to accept XPA instructions.
  839. '-mno-xpa' turns off this option.
  840. '-mmt'
  841. '-mno-mt'
  842. Generate code for the MT Application Specific Extension. This
  843. tells the assembler to accept MT instructions. '-mno-mt' turns off
  844. this option.
  845. '-mmcu'
  846. '-mno-mcu'
  847. Generate code for the MCU Application Specific Extension. This
  848. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  849. off this option.
  850. '-mcrc'
  851. '-mno-crc'
  852. Generate code for the MIPS cyclic redundancy check (CRC)
  853. Application Specific Extension. This tells the assembler to accept
  854. CRC instructions. '-mno-crc' turns off this option.
  855. '-mginv'
  856. '-mno-ginv'
  857. Generate code for the Global INValidate (GINV) Application Specific
  858. Extension. This tells the assembler to accept GINV instructions.
  859. '-mno-ginv' turns off this option.
  860. '-mloongson-mmi'
  861. '-mno-loongson-mmi'
  862. Generate code for the Loongson MultiMedia extensions Instructions
  863. (MMI) Application Specific Extension. This tells the assembler to
  864. accept MMI instructions. '-mno-loongson-mmi' turns off this
  865. option.
  866. '-mloongson-cam'
  867. '-mno-loongson-cam'
  868. Generate code for the Loongson Content Address Memory (CAM)
  869. instructions. This tells the assembler to accept Loongson CAM
  870. instructions. '-mno-loongson-cam' turns off this option.
  871. '-mloongson-ext'
  872. '-mno-loongson-ext'
  873. Generate code for the Loongson EXTensions (EXT) instructions. This
  874. tells the assembler to accept Loongson EXT instructions.
  875. '-mno-loongson-ext' turns off this option.
  876. '-mloongson-ext2'
  877. '-mno-loongson-ext2'
  878. Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  879. This option implies '-mloongson-ext'. This tells the assembler to
  880. accept Loongson EXT2 instructions. '-mno-loongson-ext2' turns off
  881. this option.
  882. '-minsn32'
  883. '-mno-insn32'
  884. Only use 32-bit instruction encodings when generating code for the
  885. microMIPS processor. This option inhibits the use of any 16-bit
  886. instructions. This is equivalent to putting '.set insn32' at the
  887. start of the assembly file. '-mno-insn32' turns off this option.
  888. This is equivalent to putting '.set noinsn32' at the start of the
  889. assembly file. By default '-mno-insn32' is selected, allowing all
  890. instructions to be used.
  891. '--construct-floats'
  892. '--no-construct-floats'
  893. The '--no-construct-floats' option disables the construction of
  894. double width floating point constants by loading the two halves of
  895. the value into the two single width floating point registers that
  896. make up the double width register. By default '--construct-floats'
  897. is selected, allowing construction of these floating point
  898. constants.
  899. '--relax-branch'
  900. '--no-relax-branch'
  901. The '--relax-branch' option enables the relaxation of out-of-range
  902. branches. By default '--no-relax-branch' is selected, causing any
  903. out-of-range branches to produce an error.
  904. '-mignore-branch-isa'
  905. '-mno-ignore-branch-isa'
  906. Ignore branch checks for invalid transitions between ISA modes.
  907. The semantics of branches does not provide for an ISA mode switch,
  908. so in most cases the ISA mode a branch has been encoded for has to
  909. be the same as the ISA mode of the branch's target label.
  910. Therefore GAS has checks implemented that verify in branch assembly
  911. that the two ISA modes match. '-mignore-branch-isa' disables these
  912. checks. By default '-mno-ignore-branch-isa' is selected, causing
  913. any invalid branch requiring a transition between ISA modes to
  914. produce an error.
  915. '-mnan=ENCODING'
  916. Select between the IEEE 754-2008 ('-mnan=2008') or the legacy
  917. ('-mnan=legacy') NaN encoding format. The latter is the default.
  918. '--emulation=NAME'
  919. This option was formerly used to switch between ELF and ECOFF
  920. output on targets like IRIX 5 that supported both. MIPS ECOFF
  921. support was removed in GAS 2.24, so the option now serves little
  922. purpose. It is retained for backwards compatibility.
  923. The available configuration names are: 'mipself', 'mipslelf' and
  924. 'mipsbelf'. Choosing 'mipself' now has no effect, since the output
  925. is always ELF. 'mipslelf' and 'mipsbelf' select little- and
  926. big-endian output respectively, but '-EL' and '-EB' are now the
  927. preferred options instead.
  928. '-nocpp'
  929. 'as' ignores this option. It is accepted for compatibility with
  930. the native tools.
  931. '--trap'
  932. '--no-trap'
  933. '--break'
  934. '--no-break'
  935. Control how to deal with multiplication overflow and division by
  936. zero. '--trap' or '--no-break' (which are synonyms) take a trap
  937. exception (and only work for Instruction Set Architecture level 2
  938. and higher); '--break' or '--no-trap' (also synonyms, and the
  939. default) take a break exception.
  940. '-n'
  941. When this option is used, 'as' will issue a warning every time it
  942. generates a nop instruction from a macro.
  943. The following options are available when as is configured for an
  944. MCore processor.
  945. '-jsri2bsr'
  946. '-nojsri2bsr'
  947. Enable or disable the JSRI to BSR transformation. By default this
  948. is enabled. The command-line option '-nojsri2bsr' can be used to
  949. disable it.
  950. '-sifilter'
  951. '-nosifilter'
  952. Enable or disable the silicon filter behaviour. By default this is
  953. disabled. The default can be overridden by the '-sifilter'
  954. command-line option.
  955. '-relax'
  956. Alter jump instructions for long displacements.
  957. '-mcpu=[210|340]'
  958. Select the cpu type on the target hardware. This controls which
  959. instructions can be assembled.
  960. '-EB'
  961. Assemble for a big endian target.
  962. '-EL'
  963. Assemble for a little endian target.
  964. *Note Meta Options::, for the options available when as is configured
  965. for a Meta processor.
  966. See the info pages for documentation of the MMIX-specific options.
  967. *Note NDS32 Options::, for the options available when as is
  968. configured for a NDS32 processor.
  969. *Note PowerPC-Opts::, for the options available when as is configured
  970. for a PowerPC processor.
  971. *Note RISC-V-Options::, for the options available when as is
  972. configured for a RISC-V processor.
  973. See the info pages for documentation of the RX-specific options.
  974. The following options are available when as is configured for the
  975. s390 processor family.
  976. '-m31'
  977. '-m64'
  978. Select the word size, either 31/32 bits or 64 bits.
  979. '-mesa'
  980. '-mzarch'
  981. Select the architecture mode, either the Enterprise System
  982. Architecture (esa) or the z/Architecture mode (zarch).
  983. '-march=PROCESSOR'
  984. Specify which s390 processor variant is the target, 'g5' (or
  985. 'arch3'), 'g6', 'z900' (or 'arch5'), 'z990' (or 'arch6'), 'z9-109',
  986. 'z9-ec' (or 'arch7'), 'z10' (or 'arch8'), 'z196' (or 'arch9'),
  987. 'zEC12' (or 'arch10'), 'z13' (or 'arch11'), or 'z14' (or 'arch12').
  988. '-mregnames'
  989. '-mno-regnames'
  990. Allow or disallow symbolic names for registers.
  991. '-mwarn-areg-zero'
  992. Warn whenever the operand for a base or index register has been
  993. specified but evaluates to zero.
  994. *Note TIC6X Options::, for the options available when as is
  995. configured for a TMS320C6000 processor.
  996. *Note TILE-Gx Options::, for the options available when as is
  997. configured for a TILE-Gx processor.
  998. *Note Visium Options::, for the options available when as is
  999. configured for a Visium processor.
  1000. *Note Xtensa Options::, for the options available when as is
  1001. configured for an Xtensa processor.
  1002. The following options are available when as is configured for a Z80
  1003. family processor.
  1004. '-z80'
  1005. Assemble for Z80 processor.
  1006. '-r800'
  1007. Assemble for R800 processor.
  1008. '-ignore-undocumented-instructions'
  1009. '-Wnud'
  1010. Assemble undocumented Z80 instructions that also work on R800
  1011. without warning.
  1012. '-ignore-unportable-instructions'
  1013. '-Wnup'
  1014. Assemble all undocumented Z80 instructions without warning.
  1015. '-warn-undocumented-instructions'
  1016. '-Wud'
  1017. Issue a warning for undocumented Z80 instructions that also work on
  1018. R800.
  1019. '-warn-unportable-instructions'
  1020. '-Wup'
  1021. Issue a warning for undocumented Z80 instructions that do not work
  1022. on R800.
  1023. '-forbid-undocumented-instructions'
  1024. '-Fud'
  1025. Treat all undocumented instructions as errors.
  1026. '-forbid-unportable-instructions'
  1027. '-Fup'
  1028. Treat undocumented Z80 instructions that do not work on R800 as
  1029. errors.
  1030. * Menu:
  1031. * Manual:: Structure of this Manual
  1032. * GNU Assembler:: The GNU Assembler
  1033. * Object Formats:: Object File Formats
  1034. * Command Line:: Command Line
  1035. * Input Files:: Input Files
  1036. * Object:: Output (Object) File
  1037. * Errors:: Error and Warning Messages
  1038. 
  1039. File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview
  1040. 1.1 Structure of this Manual
  1041. ============================
  1042. This manual is intended to describe what you need to know to use GNU
  1043. 'as'. We cover the syntax expected in source files, including notation
  1044. for symbols, constants, and expressions; the directives that 'as'
  1045. understands; and of course how to invoke 'as'.
  1046. This manual also describes some of the machine-dependent features of
  1047. various flavors of the assembler.
  1048. On the other hand, this manual is _not_ intended as an introduction
  1049. to programming in assembly language--let alone programming in general!
  1050. In a similar vein, we make no attempt to introduce the machine
  1051. architecture; we do _not_ describe the instruction set, standard
  1052. mnemonics, registers or addressing modes that are standard to a
  1053. particular architecture. You may want to consult the manufacturer's
  1054. machine architecture manual for this information.
  1055. 
  1056. File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview
  1057. 1.2 The GNU Assembler
  1058. =====================
  1059. GNU 'as' is really a family of assemblers. If you use (or have used)
  1060. the GNU assembler on one architecture, you should find a fairly similar
  1061. environment when you use it on another architecture. Each version has
  1062. much in common with the others, including object file formats, most
  1063. assembler directives (often called "pseudo-ops") and assembler syntax.
  1064. 'as' is primarily intended to assemble the output of the GNU C
  1065. compiler 'gcc' for use by the linker 'ld'. Nevertheless, we've tried to
  1066. make 'as' assemble correctly everything that other assemblers for the
  1067. same machine would assemble. Any exceptions are documented explicitly
  1068. (*note Machine Dependencies::). This doesn't mean 'as' always uses the
  1069. same syntax as another assembler for the same architecture; for example,
  1070. we know of several incompatible versions of 680x0 assembly language
  1071. syntax.
  1072. Unlike older assemblers, 'as' is designed to assemble a source
  1073. program in one pass of the source file. This has a subtle impact on the
  1074. '.org' directive (*note '.org': Org.).
  1075. 
  1076. File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview
  1077. 1.3 Object File Formats
  1078. =======================
  1079. The GNU assembler can be configured to produce several alternative
  1080. object file formats. For the most part, this does not affect how you
  1081. write assembly language programs; but directives for debugging symbols
  1082. are typically different in different file formats. *Note Symbol
  1083. Attributes: Symbol Attributes.
  1084. 
  1085. File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview
  1086. 1.4 Command Line
  1087. ================
  1088. After the program name 'as', the command line may contain options and
  1089. file names. Options may appear in any order, and may be before, after,
  1090. or between file names. The order of file names is significant.
  1091. '--' (two hyphens) by itself names the standard input file
  1092. explicitly, as one of the files for 'as' to assemble.
  1093. Except for '--' any command-line argument that begins with a hyphen
  1094. ('-') is an option. Each option changes the behavior of 'as'. No
  1095. option changes the way another option works. An option is a '-'
  1096. followed by one or more letters; the case of the letter is important.
  1097. All options are optional.
  1098. Some options expect exactly one file name to follow them. The file
  1099. name may either immediately follow the option's letter (compatible with
  1100. older assemblers) or it may be the next command argument (GNU standard).
  1101. These two command lines are equivalent:
  1102. as -o my-object-file.o mumble.s
  1103. as -omy-object-file.o mumble.s
  1104. 
  1105. File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview
  1106. 1.5 Input Files
  1107. ===============
  1108. We use the phrase "source program", abbreviated "source", to describe
  1109. the program input to one run of 'as'. The program may be in one or more
  1110. files; how the source is partitioned into files doesn't change the
  1111. meaning of the source.
  1112. The source program is a concatenation of the text in all the files,
  1113. in the order specified.
  1114. Each time you run 'as' it assembles exactly one source program. The
  1115. source program is made up of one or more files. (The standard input is
  1116. also a file.)
  1117. You give 'as' a command line that has zero or more input file names.
  1118. The input files are read (from left file name to right). A command-line
  1119. argument (in any position) that has no special meaning is taken to be an
  1120. input file name.
  1121. If you give 'as' no file names it attempts to read one input file
  1122. from the 'as' standard input, which is normally your terminal. You may
  1123. have to type <ctl-D> to tell 'as' there is no more program to assemble.
  1124. Use '--' if you need to explicitly name the standard input file in
  1125. your command line.
  1126. If the source is empty, 'as' produces a small, empty object file.
  1127. Filenames and Line-numbers
  1128. --------------------------
  1129. There are two ways of locating a line in the input file (or files) and
  1130. either may be used in reporting error messages. One way refers to a
  1131. line number in a physical file; the other refers to a line number in a
  1132. "logical" file. *Note Error and Warning Messages: Errors.
  1133. "Physical files" are those files named in the command line given to
  1134. 'as'.
  1135. "Logical files" are simply names declared explicitly by assembler
  1136. directives; they bear no relation to physical files. Logical file names
  1137. help error messages reflect the original source file, when 'as' source
  1138. is itself synthesized from other files. 'as' understands the '#'
  1139. directives emitted by the 'gcc' preprocessor. See also *note '.file':
  1140. File.
  1141. 
  1142. File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview
  1143. 1.6 Output (Object) File
  1144. ========================
  1145. Every time you run 'as' it produces an output file, which is your
  1146. assembly language program translated into numbers. This file is the
  1147. object file. Its default name is 'a.out'. You can give it another name
  1148. by using the '-o' option. Conventionally, object file names end with
  1149. '.o'. The default name is used for historical reasons: older assemblers
  1150. were capable of assembling self-contained programs directly into a
  1151. runnable program. (For some formats, this isn't currently possible, but
  1152. it can be done for the 'a.out' format.)
  1153. The object file is meant for input to the linker 'ld'. It contains
  1154. assembled program code, information to help 'ld' integrate the assembled
  1155. program into a runnable file, and (optionally) symbolic information for
  1156. the debugger.
  1157. 
  1158. File: as.info, Node: Errors, Prev: Object, Up: Overview
  1159. 1.7 Error and Warning Messages
  1160. ==============================
  1161. 'as' may write warnings and error messages to the standard error file
  1162. (usually your terminal). This should not happen when a compiler runs
  1163. 'as' automatically. Warnings report an assumption made so that 'as'
  1164. could keep assembling a flawed program; errors report a grave problem
  1165. that stops the assembly.
  1166. Warning messages have the format
  1167. file_name:NNN:Warning Message Text
  1168. (where NNN is a line number). If both a logical file name (*note
  1169. '.file': File.) and a logical line number (*note '.line': Line.) have
  1170. been given then they will be used, otherwise the file name and line
  1171. number in the current assembler source file will be used. The message
  1172. text is intended to be self explanatory (in the grand Unix tradition).
  1173. Note the file name must be set via the logical version of the '.file'
  1174. directive, not the DWARF2 version of the '.file' directive. For
  1175. example:
  1176. .file 2 "bar.c"
  1177. error_assembler_source
  1178. .file "foo.c"
  1179. .line 30
  1180. error_c_source
  1181. produces this output:
  1182. Assembler messages:
  1183. asm.s:2: Error: no such instruction: `error_assembler_source'
  1184. foo.c:31: Error: no such instruction: `error_c_source'
  1185. Error messages have the format
  1186. file_name:NNN:FATAL:Error Message Text
  1187. The file name and line number are derived as for warning messages.
  1188. The actual message text may be rather less explanatory because many of
  1189. them aren't supposed to happen.
  1190. 
  1191. File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top
  1192. 2 Command-Line Options
  1193. **********************
  1194. This chapter describes command-line options available in _all_ versions
  1195. of the GNU assembler; see *note Machine Dependencies::, for options
  1196. specific to particular machine architectures.
  1197. If you are invoking 'as' via the GNU C compiler, you can use the
  1198. '-Wa' option to pass arguments through to the assembler. The assembler
  1199. arguments must be separated from each other (and the '-Wa') by commas.
  1200. For example:
  1201. gcc -c -g -O -Wa,-alh,-L file.c
  1202. This passes two options to the assembler: '-alh' (emit a listing to
  1203. standard output with high-level and assembly source) and '-L' (retain
  1204. local symbols in the symbol table).
  1205. Usually you do not need to use this '-Wa' mechanism, since many
  1206. compiler command-line options are automatically passed to the assembler
  1207. by the compiler. (You can call the GNU compiler driver with the '-v'
  1208. option to see precisely what options it passes to each compilation pass,
  1209. including the assembler.)
  1210. * Menu:
  1211. * a:: -a[cdghlns] enable listings
  1212. * alternate:: -alternate enable alternate macro syntax
  1213. * D:: -D for compatibility
  1214. * f:: -f to work faster
  1215. * I:: -I for .include search path
  1216. * K:: -K for difference tables
  1217. * L:: -L to retain local symbols
  1218. * listing:: -listing-XXX to configure listing output
  1219. * M:: -M or -mri to assemble in MRI compatibility mode
  1220. * MD:: -MD for dependency tracking
  1221. * no-pad-sections:: -no-pad-sections to stop section padding
  1222. * o:: -o to name the object file
  1223. * R:: -R to join data and text sections
  1224. * statistics:: -statistics to see statistics about assembly
  1225. * traditional-format:: -traditional-format for compatible output
  1226. * v:: -v to announce version
  1227. * W:: -W, -no-warn, -warn, -fatal-warnings to control warnings
  1228. * Z:: -Z to make object file even after errors
  1229. 
  1230. File: as.info, Node: a, Next: alternate, Up: Invoking
  1231. 2.1 Enable Listings: '-a[cdghlns]'
  1232. ==================================
  1233. These options enable listing output from the assembler. By itself, '-a'
  1234. requests high-level, assembly, and symbols listing. You can use other
  1235. letters to select specific options for the list: '-ah' requests a
  1236. high-level language listing, '-al' requests an output-program assembly
  1237. listing, and '-as' requests a symbol table listing. High-level listings
  1238. require that a compiler debugging option like '-g' be used, and that
  1239. assembly listings ('-al') be requested also.
  1240. Use the '-ag' option to print a first section with general assembly
  1241. information, like as version, switches passed, or time stamp.
  1242. Use the '-ac' option to omit false conditionals from a listing. Any
  1243. lines which are not assembled because of a false '.if' (or '.ifdef', or
  1244. any other conditional), or a true '.if' followed by an '.else', will be
  1245. omitted from the listing.
  1246. Use the '-ad' option to omit debugging directives from the listing.
  1247. Once you have specified one of these options, you can further control
  1248. listing output and its appearance using the directives '.list',
  1249. '.nolist', '.psize', '.eject', '.title', and '.sbttl'. The '-an' option
  1250. turns off all forms processing. If you do not request listing output
  1251. with one of the '-a' options, the listing-control directives have no
  1252. effect.
  1253. The letters after '-a' may be combined into one option, _e.g._,
  1254. '-aln'.
  1255. Note if the assembler source is coming from the standard input (e.g.,
  1256. because it is being created by 'gcc' and the '-pipe' command-line switch
  1257. is being used) then the listing will not contain any comments or
  1258. preprocessor directives. This is because the listing code buffers input
  1259. source lines from stdin only after they have been preprocessed by the
  1260. assembler. This reduces memory usage and makes the code more efficient.
  1261. 
  1262. File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking
  1263. 2.2 '--alternate'
  1264. =================
  1265. Begin in alternate macro mode, see *note '.altmacro': Altmacro.
  1266. 
  1267. File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking
  1268. 2.3 '-D'
  1269. ========
  1270. This option has no effect whatsoever, but it is accepted to make it more
  1271. likely that scripts written for other assemblers also work with 'as'.
  1272. 
  1273. File: as.info, Node: f, Next: I, Prev: D, Up: Invoking
  1274. 2.4 Work Faster: '-f'
  1275. =====================
  1276. '-f' should only be used when assembling programs written by a (trusted)
  1277. compiler. '-f' stops the assembler from doing whitespace and comment
  1278. preprocessing on the input file(s) before assembling them. *Note
  1279. Preprocessing: Preprocessing.
  1280. _Warning:_ if you use '-f' when the files actually need to be
  1281. preprocessed (if they contain comments, for example), 'as' does not
  1282. work correctly.
  1283. 
  1284. File: as.info, Node: I, Next: K, Prev: f, Up: Invoking
  1285. 2.5 '.include' Search Path: '-I' PATH
  1286. =====================================
  1287. Use this option to add a PATH to the list of directories 'as' searches
  1288. for files specified in '.include' directives (*note '.include':
  1289. Include.). You may use '-I' as many times as necessary to include a
  1290. variety of paths. The current working directory is always searched
  1291. first; after that, 'as' searches any '-I' directories in the same order
  1292. as they were specified (left to right) on the command line.
  1293. 
  1294. File: as.info, Node: K, Next: L, Prev: I, Up: Invoking
  1295. 2.6 Difference Tables: '-K'
  1296. ===========================
  1297. 'as' sometimes alters the code emitted for directives of the form '.word
  1298. SYM1-SYM2'. *Note '.word': Word. You can use the '-K' option if you
  1299. want a warning issued when this is done.
  1300. 
  1301. File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking
  1302. 2.7 Include Local Symbols: '-L'
  1303. ===============================
  1304. Symbols beginning with system-specific local label prefixes, typically
  1305. '.L' for ELF systems or 'L' for traditional a.out systems, are called
  1306. "local symbols". *Note Symbol Names::. Normally you do not see such
  1307. symbols when debugging, because they are intended for the use of
  1308. programs (like compilers) that compose assembler programs, not for your
  1309. notice. Normally both 'as' and 'ld' discard such symbols, so you do not
  1310. normally debug with them.
  1311. This option tells 'as' to retain those local symbols in the object
  1312. file. Usually if you do this you also tell the linker 'ld' to preserve
  1313. those symbols.
  1314. 
  1315. File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking
  1316. 2.8 Configuring listing output: '--listing'
  1317. ===========================================
  1318. The listing feature of the assembler can be enabled via the command-line
  1319. switch '-a' (*note a::). This feature combines the input source file(s)
  1320. with a hex dump of the corresponding locations in the output object
  1321. file, and displays them as a listing file. The format of this listing
  1322. can be controlled by directives inside the assembler source (i.e.,
  1323. '.list' (*note List::), '.title' (*note Title::), '.sbttl' (*note
  1324. Sbttl::), '.psize' (*note Psize::), and '.eject' (*note Eject::) and
  1325. also by the following switches:
  1326. '--listing-lhs-width='number''
  1327. Sets the maximum width, in words, of the first line of the hex byte
  1328. dump. This dump appears on the left hand side of the listing
  1329. output.
  1330. '--listing-lhs-width2='number''
  1331. Sets the maximum width, in words, of any further lines of the hex
  1332. byte dump for a given input source line. If this value is not
  1333. specified, it defaults to being the same as the value specified for
  1334. '--listing-lhs-width'. If neither switch is used the default is to
  1335. one.
  1336. '--listing-rhs-width='number''
  1337. Sets the maximum width, in characters, of the source line that is
  1338. displayed alongside the hex dump. The default value for this
  1339. parameter is 100. The source line is displayed on the right hand
  1340. side of the listing output.
  1341. '--listing-cont-lines='number''
  1342. Sets the maximum number of continuation lines of hex dump that will
  1343. be displayed for a given single line of source input. The default
  1344. value is 4.
  1345. 
  1346. File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking
  1347. 2.9 Assemble in MRI Compatibility Mode: '-M'
  1348. ============================================
  1349. The '-M' or '--mri' option selects MRI compatibility mode. This changes
  1350. the syntax and pseudo-op handling of 'as' to make it compatible with the
  1351. 'ASM68K' assembler from Microtec Research. The exact nature of the MRI
  1352. syntax will not be documented here; see the MRI manuals for more
  1353. information. Note in particular that the handling of macros and macro
  1354. arguments is somewhat different. The purpose of this option is to
  1355. permit assembling existing MRI assembler code using 'as'.
  1356. The MRI compatibility is not complete. Certain operations of the MRI
  1357. assembler depend upon its object file format, and can not be supported
  1358. using other object file formats. Supporting these would require
  1359. enhancing each object file format individually. These are:
  1360. * global symbols in common section
  1361. The m68k MRI assembler supports common sections which are merged by
  1362. the linker. Other object file formats do not support this. 'as'
  1363. handles common sections by treating them as a single common symbol.
  1364. It permits local symbols to be defined within a common section, but
  1365. it can not support global symbols, since it has no way to describe
  1366. them.
  1367. * complex relocations
  1368. The MRI assemblers support relocations against a negated section
  1369. address, and relocations which combine the start addresses of two
  1370. or more sections. These are not support by other object file
  1371. formats.
  1372. * 'END' pseudo-op specifying start address
  1373. The MRI 'END' pseudo-op permits the specification of a start
  1374. address. This is not supported by other object file formats. The
  1375. start address may instead be specified using the '-e' option to the
  1376. linker, or in a linker script.
  1377. * 'IDNT', '.ident' and 'NAME' pseudo-ops
  1378. The MRI 'IDNT', '.ident' and 'NAME' pseudo-ops assign a module name
  1379. to the output file. This is not supported by other object file
  1380. formats.
  1381. * 'ORG' pseudo-op
  1382. The m68k MRI 'ORG' pseudo-op begins an absolute section at a given
  1383. address. This differs from the usual 'as' '.org' pseudo-op, which
  1384. changes the location within the current section. Absolute sections
  1385. are not supported by other object file formats. The address of a
  1386. section may be assigned within a linker script.
  1387. There are some other features of the MRI assembler which are not
  1388. supported by 'as', typically either because they are difficult or
  1389. because they seem of little consequence. Some of these may be supported
  1390. in future releases.
  1391. * EBCDIC strings
  1392. EBCDIC strings are not supported.
  1393. * packed binary coded decimal
  1394. Packed binary coded decimal is not supported. This means that the
  1395. 'DC.P' and 'DCB.P' pseudo-ops are not supported.
  1396. * 'FEQU' pseudo-op
  1397. The m68k 'FEQU' pseudo-op is not supported.
  1398. * 'NOOBJ' pseudo-op
  1399. The m68k 'NOOBJ' pseudo-op is not supported.
  1400. * 'OPT' branch control options
  1401. The m68k 'OPT' branch control options--'B', 'BRS', 'BRB', 'BRL',
  1402. and 'BRW'--are ignored. 'as' automatically relaxes all branches,
  1403. whether forward or backward, to an appropriate size, so these
  1404. options serve no purpose.
  1405. * 'OPT' list control options
  1406. The following m68k 'OPT' list control options are ignored: 'C',
  1407. 'CEX', 'CL', 'CRE', 'E', 'G', 'I', 'M', 'MEX', 'MC', 'MD', 'X'.
  1408. * other 'OPT' options
  1409. The following m68k 'OPT' options are ignored: 'NEST', 'O', 'OLD',
  1410. 'OP', 'P', 'PCO', 'PCR', 'PCS', 'R'.
  1411. * 'OPT' 'D' option is default
  1412. The m68k 'OPT' 'D' option is the default, unlike the MRI assembler.
  1413. 'OPT NOD' may be used to turn it off.
  1414. * 'XREF' pseudo-op.
  1415. The m68k 'XREF' pseudo-op is ignored.
  1416. 
  1417. File: as.info, Node: MD, Next: no-pad-sections, Prev: M, Up: Invoking
  1418. 2.10 Dependency Tracking: '--MD'
  1419. ================================
  1420. 'as' can generate a dependency file for the file it creates. This file
  1421. consists of a single rule suitable for 'make' describing the
  1422. dependencies of the main source file.
  1423. The rule is written to the file named in its argument.
  1424. This feature is used in the automatic updating of makefiles.
  1425. 
  1426. File: as.info, Node: no-pad-sections, Next: o, Prev: MD, Up: Invoking
  1427. 2.11 Output Section Padding
  1428. ===========================
  1429. Normally the assembler will pad the end of each output section up to its
  1430. alignment boundary. But this can waste space, which can be significant
  1431. on memory constrained targets. So the '--no-pad-sections' option will
  1432. disable this behaviour.
  1433. 
  1434. File: as.info, Node: o, Next: R, Prev: no-pad-sections, Up: Invoking
  1435. 2.12 Name the Object File: '-o'
  1436. ===============================
  1437. There is always one object file output when you run 'as'. By default it
  1438. has the name 'a.out'. You use this option (which takes exactly one
  1439. filename) to give the object file a different name.
  1440. Whatever the object file is called, 'as' overwrites any existing file
  1441. of the same name.
  1442. 
  1443. File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking
  1444. 2.13 Join Data and Text Sections: '-R'
  1445. ======================================
  1446. '-R' tells 'as' to write the object file as if all data-section data
  1447. lives in the text section. This is only done at the very last moment:
  1448. your binary data are the same, but data section parts are relocated
  1449. differently. The data section part of your object file is zero bytes
  1450. long because all its bytes are appended to the text section. (*Note
  1451. Sections and Relocation: Sections.)
  1452. When you specify '-R' it would be possible to generate shorter
  1453. address displacements (because we do not have to cross between text and
  1454. data section). We refrain from doing this simply for compatibility with
  1455. older versions of 'as'. In future, '-R' may work this way.
  1456. When 'as' is configured for COFF or ELF output, this option is only
  1457. useful if you use sections named '.text' and '.data'.
  1458. '-R' is not supported for any of the HPPA targets. Using '-R'
  1459. generates a warning from 'as'.
  1460. 
  1461. File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking
  1462. 2.14 Display Assembly Statistics: '--statistics'
  1463. ================================================
  1464. Use '--statistics' to display two statistics about the resources used by
  1465. 'as': the maximum amount of space allocated during the assembly (in
  1466. bytes), and the total execution time taken for the assembly (in CPU
  1467. seconds).
  1468. 
  1469. File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking
  1470. 2.15 Compatible Output: '--traditional-format'
  1471. ==============================================
  1472. For some targets, the output of 'as' is different in some ways from the
  1473. output of some existing assembler. This switch requests 'as' to use the
  1474. traditional format instead.
  1475. For example, it disables the exception frame optimizations which 'as'
  1476. normally does by default on 'gcc' output.
  1477. 
  1478. File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking
  1479. 2.16 Announce Version: '-v'
  1480. ===========================
  1481. You can find out what version of as is running by including the option
  1482. '-v' (which you can also spell as '-version') on the command line.
  1483. 
  1484. File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking
  1485. 2.17 Control Warnings: '-W', '--warn', '--no-warn', '--fatal-warnings'
  1486. ======================================================================
  1487. 'as' should never give a warning or error message when assembling
  1488. compiler output. But programs written by people often cause 'as' to
  1489. give a warning that a particular assumption was made. All such warnings
  1490. are directed to the standard error file.
  1491. If you use the '-W' and '--no-warn' options, no warnings are issued.
  1492. This only affects the warning messages: it does not change any
  1493. particular of how 'as' assembles your file. Errors, which stop the
  1494. assembly, are still reported.
  1495. If you use the '--fatal-warnings' option, 'as' considers files that
  1496. generate warnings to be in error.
  1497. You can switch these options off again by specifying '--warn', which
  1498. causes warnings to be output as usual.
  1499. 
  1500. File: as.info, Node: Z, Prev: W, Up: Invoking
  1501. 2.18 Generate Object File in Spite of Errors: '-Z'
  1502. ==================================================
  1503. After an error message, 'as' normally produces no output. If for some
  1504. reason you are interested in object file output even after 'as' gives an
  1505. error message on your program, use the '-Z' option. If there are any
  1506. errors, 'as' continues anyways, and writes an object file after a final
  1507. warning message of the form 'N errors, M warnings, generating bad object
  1508. file.'
  1509. 
  1510. File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top
  1511. 3 Syntax
  1512. ********
  1513. This chapter describes the machine-independent syntax allowed in a
  1514. source file. 'as' syntax is similar to what many other assemblers use;
  1515. it is inspired by the BSD 4.2 assembler, except that 'as' does not
  1516. assemble Vax bit-fields.
  1517. * Menu:
  1518. * Preprocessing:: Preprocessing
  1519. * Whitespace:: Whitespace
  1520. * Comments:: Comments
  1521. * Symbol Intro:: Symbols
  1522. * Statements:: Statements
  1523. * Constants:: Constants
  1524. 
  1525. File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax
  1526. 3.1 Preprocessing
  1527. =================
  1528. The 'as' internal preprocessor:
  1529. * adjusts and removes extra whitespace. It leaves one space or tab
  1530. before the keywords on a line, and turns any other whitespace on
  1531. the line into a single space.
  1532. * removes all comments, replacing them with a single space, or an
  1533. appropriate number of newlines.
  1534. * converts character constants into the appropriate numeric values.
  1535. It does not do macro processing, include file handling, or anything
  1536. else you may get from your C compiler's preprocessor. You can do
  1537. include file processing with the '.include' directive (*note '.include':
  1538. Include.). You can use the GNU C compiler driver to get other "CPP"
  1539. style preprocessing by giving the input file a '.S' suffix. *Note
  1540. Options Controlling the Kind of Output: (gcc info)Overall Options.
  1541. Excess whitespace, comments, and character constants cannot be used
  1542. in the portions of the input text that are not preprocessed.
  1543. If the first line of an input file is '#NO_APP' or if you use the
  1544. '-f' option, whitespace and comments are not removed from the input
  1545. file. Within an input file, you can ask for whitespace and comment
  1546. removal in specific portions of the by putting a line that says '#APP'
  1547. before the text that may contain whitespace or comments, and putting a
  1548. line that says '#NO_APP' after this text. This feature is mainly intend
  1549. to support 'asm' statements in compilers whose output is otherwise free
  1550. of comments and whitespace.
  1551. 
  1552. File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax
  1553. 3.2 Whitespace
  1554. ==============
  1555. "Whitespace" is one or more blanks or tabs, in any order. Whitespace is
  1556. used to separate symbols, and to make programs neater for people to
  1557. read. Unless within character constants (*note Character Constants:
  1558. Characters.), any whitespace means the same as exactly one space.
  1559. 
  1560. File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax
  1561. 3.3 Comments
  1562. ============
  1563. There are two ways of rendering comments to 'as'. In both cases the
  1564. comment is equivalent to one space.
  1565. Anything from '/*' through the next '*/' is a comment. This means
  1566. you may not nest these comments.
  1567. /*
  1568. The only way to include a newline ('\n') in a comment
  1569. is to use this sort of comment.
  1570. */
  1571. /* This sort of comment does not nest. */
  1572. Anything from a "line comment" character up to the next newline is
  1573. considered a comment and is ignored. The line comment character is
  1574. target specific, and some targets multiple comment characters. Some
  1575. targets also have line comment characters that only work if they are the
  1576. first character on a line. Some targets use a sequence of two
  1577. characters to introduce a line comment. Some targets can also change
  1578. their line comment characters depending upon command-line options that
  1579. have been used. For more details see the _Syntax_ section in the
  1580. documentation for individual targets.
  1581. If the line comment character is the hash sign ('#') then it still
  1582. has the special ability to enable and disable preprocessing (*note
  1583. Preprocessing::) and to specify logical line numbers:
  1584. To be compatible with past assemblers, lines that begin with '#' have
  1585. a special interpretation. Following the '#' should be an absolute
  1586. expression (*note Expressions::): the logical line number of the _next_
  1587. line. Then a string (*note Strings: Strings.) is allowed: if present it
  1588. is a new logical file name. The rest of the line, if any, should be
  1589. whitespace.
  1590. If the first non-whitespace characters on the line are not numeric,
  1591. the line is ignored. (Just like a comment.)
  1592. # This is an ordinary comment.
  1593. # 42-6 "new_file_name" # New logical file name
  1594. # This is logical line # 36.
  1595. This feature is deprecated, and may disappear from future versions of
  1596. 'as'.
  1597. 
  1598. File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax
  1599. 3.4 Symbols
  1600. ===========
  1601. A "symbol" is one or more characters chosen from the set of all letters
  1602. (both upper and lower case), digits and the three characters '_.$'. On
  1603. most machines, you can also use '$' in symbol names; exceptions are
  1604. noted in *note Machine Dependencies::. No symbol may begin with a
  1605. digit. Case is significant. There is no length limit; all characters
  1606. are significant. Multibyte characters are supported. Symbols are
  1607. delimited by characters not in that set, or by the beginning of a file
  1608. (since the source program must end with a newline, the end of a file is
  1609. not a possible symbol delimiter). *Note Symbols::.
  1610. Symbol names may also be enclosed in double quote '"' characters. In
  1611. such cases any characters are allowed, except for the NUL character. If
  1612. a double quote character is to be included in the symbol name it must be
  1613. preceeded by a backslash '\' character.
  1614. 
  1615. File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax
  1616. 3.5 Statements
  1617. ==============
  1618. A "statement" ends at a newline character ('\n') or a "line separator
  1619. character". The line separator character is target specific and
  1620. described in the _Syntax_ section of each target's documentation. Not
  1621. all targets support a line separator character. The newline or line
  1622. separator character is considered to be part of the preceding statement.
  1623. Newlines and separators within character constants are an exception:
  1624. they do not end statements.
  1625. It is an error to end any statement with end-of-file: the last
  1626. character of any input file should be a newline.
  1627. An empty statement is allowed, and may include whitespace. It is
  1628. ignored.
  1629. A statement begins with zero or more labels, optionally followed by a
  1630. key symbol which determines what kind of statement it is. The key
  1631. symbol determines the syntax of the rest of the statement. If the
  1632. symbol begins with a dot '.' then the statement is an assembler
  1633. directive: typically valid for any computer. If the symbol begins with
  1634. a letter the statement is an assembly language "instruction": it
  1635. assembles into a machine language instruction. Different versions of
  1636. 'as' for different computers recognize different instructions. In fact,
  1637. the same symbol may represent a different instruction in a different
  1638. computer's assembly language.
  1639. A label is a symbol immediately followed by a colon (':').
  1640. Whitespace before a label or after a colon is permitted, but you may not
  1641. have whitespace between a label's symbol and its colon. *Note Labels::.
  1642. For HPPA targets, labels need not be immediately followed by a colon,
  1643. but the definition of a label must begin in column zero. This also
  1644. implies that only one label may be defined on each line.
  1645. label: .directive followed by something
  1646. another_label: # This is an empty statement.
  1647. instruction operand_1, operand_2, ...
  1648. 
  1649. File: as.info, Node: Constants, Prev: Statements, Up: Syntax
  1650. 3.6 Constants
  1651. =============
  1652. A constant is a number, written so that its value is known by
  1653. inspection, without knowing any context. Like this:
  1654. .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value.
  1655. .ascii "Ring the bell\7" # A string constant.
  1656. .octa 0x123456789abcdef0123456789ABCDEF0 # A bignum.
  1657. .float 0f-314159265358979323846264338327\
  1658. 95028841971.693993751E-40 # - pi, a flonum.
  1659. * Menu:
  1660. * Characters:: Character Constants
  1661. * Numbers:: Number Constants
  1662. 
  1663. File: as.info, Node: Characters, Next: Numbers, Up: Constants
  1664. 3.6.1 Character Constants
  1665. -------------------------
  1666. There are two kinds of character constants. A "character" stands for
  1667. one character in one byte and its value may be used in numeric
  1668. expressions. String constants (properly called string _literals_) are
  1669. potentially many bytes and their values may not be used in arithmetic
  1670. expressions.
  1671. * Menu:
  1672. * Strings:: Strings
  1673. * Chars:: Characters
  1674. 
  1675. File: as.info, Node: Strings, Next: Chars, Up: Characters
  1676. 3.6.1.1 Strings
  1677. ...............
  1678. A "string" is written between double-quotes. It may contain
  1679. double-quotes or null characters. The way to get special characters
  1680. into a string is to "escape" these characters: precede them with a
  1681. backslash '\' character. For example '\\' represents one backslash: the
  1682. first '\' is an escape which tells 'as' to interpret the second
  1683. character literally as a backslash (which prevents 'as' from recognizing
  1684. the second '\' as an escape character). The complete list of escapes
  1685. follows.
  1686. '\b'
  1687. Mnemonic for backspace; for ASCII this is octal code 010.
  1688. 'backslash-f'
  1689. Mnemonic for FormFeed; for ASCII this is octal code 014.
  1690. '\n'
  1691. Mnemonic for newline; for ASCII this is octal code 012.
  1692. '\r'
  1693. Mnemonic for carriage-Return; for ASCII this is octal code 015.
  1694. '\t'
  1695. Mnemonic for horizontal Tab; for ASCII this is octal code 011.
  1696. '\ DIGIT DIGIT DIGIT'
  1697. An octal character code. The numeric code is 3 octal digits. For
  1698. compatibility with other Unix systems, 8 and 9 are accepted as
  1699. digits: for example, '\008' has the value 010, and '\009' the value
  1700. 011.
  1701. '\x HEX-DIGITS...'
  1702. A hex character code. All trailing hex digits are combined.
  1703. Either upper or lower case 'x' works.
  1704. '\\'
  1705. Represents one '\' character.
  1706. '\"'
  1707. Represents one '"' character. Needed in strings to represent this
  1708. character, because an unescaped '"' would end the string.
  1709. '\ ANYTHING-ELSE'
  1710. Any other character when escaped by '\' gives a warning, but
  1711. assembles as if the '\' was not present. The idea is that if you
  1712. used an escape sequence you clearly didn't want the literal
  1713. interpretation of the following character. However 'as' has no
  1714. other interpretation, so 'as' knows it is giving you the wrong code
  1715. and warns you of the fact.
  1716. Which characters are escapable, and what those escapes represent,
  1717. varies widely among assemblers. The current set is what we think the
  1718. BSD 4.2 assembler recognizes, and is a subset of what most C compilers
  1719. recognize. If you are in doubt, do not use an escape sequence.
  1720. 
  1721. File: as.info, Node: Chars, Prev: Strings, Up: Characters
  1722. 3.6.1.2 Characters
  1723. ..................
  1724. A single character may be written as a single quote immediately followed
  1725. by that character. Some backslash escapes apply to characters, '\b',
  1726. '\f', '\n', '\r', '\t', and '\"' with the same meaning as for strings,
  1727. plus '\'' for a single quote. So if you want to write the character
  1728. backslash, you must write ''\\' where the first '\' escapes the second
  1729. '\'. As you can see, the quote is an acute accent, not a grave accent.
  1730. A newline immediately following an acute accent is taken as a literal
  1731. character and does not count as the end of a statement. The value of a
  1732. character constant in a numeric expression is the machine's byte-wide
  1733. code for that character. 'as' assumes your character code is ASCII:
  1734. ''A' means 65, ''B' means 66, and so on.
  1735. 
  1736. File: as.info, Node: Numbers, Prev: Characters, Up: Constants
  1737. 3.6.2 Number Constants
  1738. ----------------------
  1739. 'as' distinguishes three kinds of numbers according to how they are
  1740. stored in the target machine. _Integers_ are numbers that would fit
  1741. into an 'int' in the C language. _Bignums_ are integers, but they are
  1742. stored in more than 32 bits. _Flonums_ are floating point numbers,
  1743. described below.
  1744. * Menu:
  1745. * Integers:: Integers
  1746. * Bignums:: Bignums
  1747. * Flonums:: Flonums
  1748. 
  1749. File: as.info, Node: Integers, Next: Bignums, Up: Numbers
  1750. 3.6.2.1 Integers
  1751. ................
  1752. A binary integer is '0b' or '0B' followed by zero or more of the binary
  1753. digits '01'.
  1754. An octal integer is '0' followed by zero or more of the octal digits
  1755. ('01234567').
  1756. A decimal integer starts with a non-zero digit followed by zero or
  1757. more digits ('0123456789').
  1758. A hexadecimal integer is '0x' or '0X' followed by one or more
  1759. hexadecimal digits chosen from '0123456789abcdefABCDEF'.
  1760. Integers have the usual values. To denote a negative integer, use
  1761. the prefix operator '-' discussed under expressions (*note Prefix
  1762. Operators: Prefix Ops.).
  1763. 
  1764. File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers
  1765. 3.6.2.2 Bignums
  1766. ...............
  1767. A "bignum" has the same syntax and semantics as an integer except that
  1768. the number (or its negative) takes more than 32 bits to represent in
  1769. binary. The distinction is made because in some places integers are
  1770. permitted while bignums are not.
  1771. 
  1772. File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers
  1773. 3.6.2.3 Flonums
  1774. ...............
  1775. A "flonum" represents a floating point number. The translation is
  1776. indirect: a decimal floating point number from the text is converted by
  1777. 'as' to a generic binary floating point number of more than sufficient
  1778. precision. This generic floating point number is converted to a
  1779. particular computer's floating point format (or formats) by a portion of
  1780. 'as' specialized to that computer.
  1781. A flonum is written by writing (in order)
  1782. * The digit '0'. ('0' is optional on the HPPA.)
  1783. * A letter, to tell 'as' the rest of the number is a flonum. 'e' is
  1784. recommended. Case is not important.
  1785. On the H8/300 and Renesas / SuperH SH architectures, the letter
  1786. must be one of the letters 'DFPRSX' (in upper or lower case).
  1787. On the ARC, the letter must be one of the letters 'DFRS' (in upper
  1788. or lower case).
  1789. On the HPPA architecture, the letter must be 'E' (upper case only).
  1790. * An optional sign: either '+' or '-'.
  1791. * An optional "integer part": zero or more decimal digits.
  1792. * An optional "fractional part": '.' followed by zero or more decimal
  1793. digits.
  1794. * An optional exponent, consisting of:
  1795. * An 'E' or 'e'.
  1796. * Optional sign: either '+' or '-'.
  1797. * One or more decimal digits.
  1798. At least one of the integer part or the fractional part must be
  1799. present. The floating point number has the usual base-10 value.
  1800. 'as' does all processing using integers. Flonums are computed
  1801. independently of any floating point hardware in the computer running
  1802. 'as'.
  1803. 
  1804. File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top
  1805. 4 Sections and Relocation
  1806. *************************
  1807. * Menu:
  1808. * Secs Background:: Background
  1809. * Ld Sections:: Linker Sections
  1810. * As Sections:: Assembler Internal Sections
  1811. * Sub-Sections:: Sub-Sections
  1812. * bss:: bss Section
  1813. 
  1814. File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections
  1815. 4.1 Background
  1816. ==============
  1817. Roughly, a section is a range of addresses, with no gaps; all data "in"
  1818. those addresses is treated the same for some particular purpose. For
  1819. example there may be a "read only" section.
  1820. The linker 'ld' reads many object files (partial programs) and
  1821. combines their contents to form a runnable program. When 'as' emits an
  1822. object file, the partial program is assumed to start at address 0. 'ld'
  1823. assigns the final addresses for the partial program, so that different
  1824. partial programs do not overlap. This is actually an
  1825. oversimplification, but it suffices to explain how 'as' uses sections.
  1826. 'ld' moves blocks of bytes of your program to their run-time
  1827. addresses. These blocks slide to their run-time addresses as rigid
  1828. units; their length does not change and neither does the order of bytes
  1829. within them. Such a rigid unit is called a _section_. Assigning
  1830. run-time addresses to sections is called "relocation". It includes the
  1831. task of adjusting mentions of object-file addresses so they refer to the
  1832. proper run-time addresses. For the H8/300, and for the Renesas / SuperH
  1833. SH, 'as' pads sections if needed to ensure they end on a word (sixteen
  1834. bit) boundary.
  1835. An object file written by 'as' has at least three sections, any of
  1836. which may be empty. These are named "text", "data" and "bss" sections.
  1837. When it generates COFF or ELF output, 'as' can also generate whatever
  1838. other named sections you specify using the '.section' directive (*note
  1839. '.section': Section.). If you do not use any directives that place
  1840. output in the '.text' or '.data' sections, these sections still exist,
  1841. but are empty.
  1842. When 'as' generates SOM or ELF output for the HPPA, 'as' can also
  1843. generate whatever other named sections you specify using the '.space'
  1844. and '.subspace' directives. See 'HP9000 Series 800 Assembly Language
  1845. Reference Manual' (HP 92432-90001) for details on the '.space' and
  1846. '.subspace' assembler directives.
  1847. Additionally, 'as' uses different names for the standard text, data,
  1848. and bss sections when generating SOM output. Program text is placed
  1849. into the '$CODE$' section, data into '$DATA$', and BSS into '$BSS$'.
  1850. Within the object file, the text section starts at address '0', the
  1851. data section follows, and the bss section follows the data section.
  1852. When generating either SOM or ELF output files on the HPPA, the text
  1853. section starts at address '0', the data section at address '0x4000000',
  1854. and the bss section follows the data section.
  1855. To let 'ld' know which data changes when the sections are relocated,
  1856. and how to change that data, 'as' also writes to the object file details
  1857. of the relocation needed. To perform relocation 'ld' must know, each
  1858. time an address in the object file is mentioned:
  1859. * Where in the object file is the beginning of this reference to an
  1860. address?
  1861. * How long (in bytes) is this reference?
  1862. * Which section does the address refer to? What is the numeric value
  1863. of
  1864. (ADDRESS) - (START-ADDRESS OF SECTION)?
  1865. * Is the reference to an address "Program-Counter relative"?
  1866. In fact, every address 'as' ever uses is expressed as
  1867. (SECTION) + (OFFSET INTO SECTION)
  1868. Further, most expressions 'as' computes have this section-relative
  1869. nature. (For some object formats, such as SOM for the HPPA, some
  1870. expressions are symbol-relative instead.)
  1871. In this manual we use the notation {SECNAME N} to mean "offset N into
  1872. section SECNAME."
  1873. Apart from text, data and bss sections you need to know about the
  1874. "absolute" section. When 'ld' mixes partial programs, addresses in the
  1875. absolute section remain unchanged. For example, address '{absolute 0}'
  1876. is "relocated" to run-time address 0 by 'ld'. Although the linker never
  1877. arranges two partial programs' data sections with overlapping addresses
  1878. after linking, _by definition_ their absolute sections must overlap.
  1879. Address '{absolute 239}' in one part of a program is always the same
  1880. address when the program is running as address '{absolute 239}' in any
  1881. other part of the program.
  1882. The idea of sections is extended to the "undefined" section. Any
  1883. address whose section is unknown at assembly time is by definition
  1884. rendered {undefined U}--where U is filled in later. Since numbers are
  1885. always defined, the only way to generate an undefined address is to
  1886. mention an undefined symbol. A reference to a named common block would
  1887. be such a symbol: its value is unknown at assembly time so it has
  1888. section _undefined_.
  1889. By analogy the word _section_ is used to describe groups of sections
  1890. in the linked program. 'ld' puts all partial programs' text sections in
  1891. contiguous addresses in the linked program. It is customary to refer to
  1892. the _text section_ of a program, meaning all the addresses of all
  1893. partial programs' text sections. Likewise for data and bss sections.
  1894. Some sections are manipulated by 'ld'; others are invented for use of
  1895. 'as' and have no meaning except during assembly.
  1896. 
  1897. File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections
  1898. 4.2 Linker Sections
  1899. ===================
  1900. 'ld' deals with just four kinds of sections, summarized below.
  1901. *named sections*
  1902. *text section*
  1903. *data section*
  1904. These sections hold your program. 'as' and 'ld' treat them as
  1905. separate but equal sections. Anything you can say of one section
  1906. is true of another. When the program is running, however, it is
  1907. customary for the text section to be unalterable. The text section
  1908. is often shared among processes: it contains instructions,
  1909. constants and the like. The data section of a running program is
  1910. usually alterable: for example, C variables would be stored in the
  1911. data section.
  1912. *bss section*
  1913. This section contains zeroed bytes when your program begins
  1914. running. It is used to hold uninitialized variables or common
  1915. storage. The length of each partial program's bss section is
  1916. important, but because it starts out containing zeroed bytes there
  1917. is no need to store explicit zero bytes in the object file. The
  1918. bss section was invented to eliminate those explicit zeros from
  1919. object files.
  1920. *absolute section*
  1921. Address 0 of this section is always "relocated" to runtime address
  1922. 0. This is useful if you want to refer to an address that 'ld'
  1923. must not change when relocating. In this sense we speak of
  1924. absolute addresses being "unrelocatable": they do not change during
  1925. relocation.
  1926. *undefined section*
  1927. This "section" is a catch-all for address references to objects not
  1928. in the preceding sections.
  1929. An idealized example of three relocatable sections follows. The
  1930. example uses the traditional section names '.text' and '.data'. Memory
  1931. addresses are on the horizontal axis.
  1932. +-----+----+--+
  1933. partial program # 1: |ttttt|dddd|00|
  1934. +-----+----+--+
  1935. text data bss
  1936. seg. seg. seg.
  1937. +---+---+---+
  1938. partial program # 2: |TTT|DDD|000|
  1939. +---+---+---+
  1940. +--+---+-----+--+----+---+-----+~~
  1941. linked program: | |TTT|ttttt| |dddd|DDD|00000|
  1942. +--+---+-----+--+----+---+-----+~~
  1943. addresses: 0 ...
  1944. 
  1945. File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections
  1946. 4.3 Assembler Internal Sections
  1947. ===============================
  1948. These sections are meant only for the internal use of 'as'. They have
  1949. no meaning at run-time. You do not really need to know about these
  1950. sections for most purposes; but they can be mentioned in 'as' warning
  1951. messages, so it might be helpful to have an idea of their meanings to
  1952. 'as'. These sections are used to permit the value of every expression
  1953. in your assembly language program to be a section-relative address.
  1954. ASSEMBLER-INTERNAL-LOGIC-ERROR!
  1955. An internal assembler logic error has been found. This means there
  1956. is a bug in the assembler.
  1957. expr section
  1958. The assembler stores complex expression internally as combinations
  1959. of symbols. When it needs to represent an expression as a symbol,
  1960. it puts it in the expr section.
  1961. 
  1962. File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections
  1963. 4.4 Sub-Sections
  1964. ================
  1965. Assembled bytes conventionally fall into two sections: text and data.
  1966. You may have separate groups of data in named sections that you want to
  1967. end up near to each other in the object file, even though they are not
  1968. contiguous in the assembler source. 'as' allows you to use
  1969. "subsections" for this purpose. Within each section, there can be
  1970. numbered subsections with values from 0 to 8192. Objects assembled into
  1971. the same subsection go into the object file together with other objects
  1972. in the same subsection. For example, a compiler might want to store
  1973. constants in the text section, but might not want to have them
  1974. interspersed with the program being assembled. In this case, the
  1975. compiler could issue a '.text 0' before each section of code being
  1976. output, and a '.text 1' before each group of constants being output.
  1977. Subsections are optional. If you do not use subsections, everything
  1978. goes in subsection number zero.
  1979. Each subsection is zero-padded up to a multiple of four bytes.
  1980. (Subsections may be padded a different amount on different flavors of
  1981. 'as'.)
  1982. Subsections appear in your object file in numeric order, lowest
  1983. numbered to highest. (All this to be compatible with other people's
  1984. assemblers.) The object file contains no representation of subsections;
  1985. 'ld' and other programs that manipulate object files see no trace of
  1986. them. They just see all your text subsections as a text section, and
  1987. all your data subsections as a data section.
  1988. To specify which subsection you want subsequent statements assembled
  1989. into, use a numeric argument to specify it, in a '.text EXPRESSION' or a
  1990. '.data EXPRESSION' statement. When generating COFF output, you can also
  1991. use an extra subsection argument with arbitrary named sections:
  1992. '.section NAME, EXPRESSION'. When generating ELF output, you can also
  1993. use the '.subsection' directive (*note SubSection::) to specify a
  1994. subsection: '.subsection EXPRESSION'. EXPRESSION should be an absolute
  1995. expression (*note Expressions::). If you just say '.text' then '.text
  1996. 0' is assumed. Likewise '.data' means '.data 0'. Assembly begins in
  1997. 'text 0'. For instance:
  1998. .text 0 # The default subsection is text 0 anyway.
  1999. .ascii "This lives in the first text subsection. *"
  2000. .text 1
  2001. .ascii "But this lives in the second text subsection."
  2002. .data 0
  2003. .ascii "This lives in the data section,"
  2004. .ascii "in the first data subsection."
  2005. .text 0
  2006. .ascii "This lives in the first text section,"
  2007. .ascii "immediately following the asterisk (*)."
  2008. Each section has a "location counter" incremented by one for every
  2009. byte assembled into that section. Because subsections are merely a
  2010. convenience restricted to 'as' there is no concept of a subsection
  2011. location counter. There is no way to directly manipulate a location
  2012. counter--but the '.align' directive changes it, and any label definition
  2013. captures its current value. The location counter of the section where
  2014. statements are being assembled is said to be the "active" location
  2015. counter.
  2016. 
  2017. File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections
  2018. 4.5 bss Section
  2019. ===============
  2020. The bss section is used for local common variable storage. You may
  2021. allocate address space in the bss section, but you may not dictate data
  2022. to load into it before your program executes. When your program starts
  2023. running, all the contents of the bss section are zeroed bytes.
  2024. The '.lcomm' pseudo-op defines a symbol in the bss section; see *note
  2025. '.lcomm': Lcomm.
  2026. The '.comm' pseudo-op may be used to declare a common symbol, which
  2027. is another form of uninitialized symbol; see *note '.comm': Comm.
  2028. When assembling for a target which supports multiple sections, such
  2029. as ELF or COFF, you may switch into the '.bss' section and define
  2030. symbols as usual; see *note '.section': Section. You may only assemble
  2031. zero values into the section. Typically the section will only contain
  2032. symbol definitions and '.skip' directives (*note '.skip': Skip.).
  2033. 
  2034. File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top
  2035. 5 Symbols
  2036. *********
  2037. Symbols are a central concept: the programmer uses symbols to name
  2038. things, the linker uses symbols to link, and the debugger uses symbols
  2039. to debug.
  2040. _Warning:_ 'as' does not place symbols in the object file in the
  2041. same order they were declared. This may break some debuggers.
  2042. * Menu:
  2043. * Labels:: Labels
  2044. * Setting Symbols:: Giving Symbols Other Values
  2045. * Symbol Names:: Symbol Names
  2046. * Dot:: The Special Dot Symbol
  2047. * Symbol Attributes:: Symbol Attributes
  2048. 
  2049. File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols
  2050. 5.1 Labels
  2051. ==========
  2052. A "label" is written as a symbol immediately followed by a colon ':'.
  2053. The symbol then represents the current value of the active location
  2054. counter, and is, for example, a suitable instruction operand. You are
  2055. warned if you use the same symbol to represent two different locations:
  2056. the first definition overrides any other definitions.
  2057. On the HPPA, the usual form for a label need not be immediately
  2058. followed by a colon, but instead must start in column zero. Only one
  2059. label may be defined on a single line. To work around this, the HPPA
  2060. version of 'as' also provides a special directive '.label' for defining
  2061. labels more flexibly.
  2062. 
  2063. File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols
  2064. 5.2 Giving Symbols Other Values
  2065. ===============================
  2066. A symbol can be given an arbitrary value by writing a symbol, followed
  2067. by an equals sign '=', followed by an expression (*note Expressions::).
  2068. This is equivalent to using the '.set' directive. *Note '.set': Set.
  2069. In the same way, using a double equals sign '=''=' here represents an
  2070. equivalent of the '.eqv' directive. *Note '.eqv': Eqv.
  2071. Blackfin does not support symbol assignment with '='.
  2072. 
  2073. File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols
  2074. 5.3 Symbol Names
  2075. ================
  2076. Symbol names begin with a letter or with one of '._'. On most machines,
  2077. you can also use '$' in symbol names; exceptions are noted in *note
  2078. Machine Dependencies::. That character may be followed by any string of
  2079. digits, letters, dollar signs (unless otherwise noted for a particular
  2080. target machine), and underscores.
  2081. Case of letters is significant: 'foo' is a different symbol name than
  2082. 'Foo'.
  2083. Symbol names do not start with a digit. An exception to this rule is
  2084. made for Local Labels. See below.
  2085. Multibyte characters are supported. To generate a symbol name
  2086. containing multibyte characters enclose it within double quotes and use
  2087. escape codes. cf *Note Strings::. Generating a multibyte symbol name
  2088. from a label is not currently supported.
  2089. Each symbol has exactly one name. Each name in an assembly language
  2090. program refers to exactly one symbol. You may use that symbol name any
  2091. number of times in a program.
  2092. Local Symbol Names
  2093. ------------------
  2094. A local symbol is any symbol beginning with certain local label
  2095. prefixes. By default, the local label prefix is '.L' for ELF systems or
  2096. 'L' for traditional a.out systems, but each target may have its own set
  2097. of local label prefixes. On the HPPA local symbols begin with 'L$'.
  2098. Local symbols are defined and used within the assembler, but they are
  2099. normally not saved in object files. Thus, they are not visible when
  2100. debugging. You may use the '-L' option (*note Include Local Symbols:
  2101. L.) to retain the local symbols in the object files.
  2102. Local Labels
  2103. ------------
  2104. Local labels are different from local symbols. Local labels help
  2105. compilers and programmers use names temporarily. They create symbols
  2106. which are guaranteed to be unique over the entire scope of the input
  2107. source code and which can be referred to by a simple notation. To
  2108. define a local label, write a label of the form 'N:' (where N represents
  2109. any non-negative integer). To refer to the most recent previous
  2110. definition of that label write 'Nb', using the same number as when you
  2111. defined the label. To refer to the next definition of a local label,
  2112. write 'Nf'. The 'b' stands for "backwards" and the 'f' stands for
  2113. "forwards".
  2114. There is no restriction on how you can use these labels, and you can
  2115. reuse them too. So that it is possible to repeatedly define the same
  2116. local label (using the same number 'N'), although you can only refer to
  2117. the most recently defined local label of that number (for a backwards
  2118. reference) or the next definition of a specific local label for a
  2119. forward reference. It is also worth noting that the first 10 local
  2120. labels ('0:'...'9:') are implemented in a slightly more efficient manner
  2121. than the others.
  2122. Here is an example:
  2123. 1: branch 1f
  2124. 2: branch 1b
  2125. 1: branch 2f
  2126. 2: branch 1b
  2127. Which is the equivalent of:
  2128. label_1: branch label_3
  2129. label_2: branch label_1
  2130. label_3: branch label_4
  2131. label_4: branch label_3
  2132. Local label names are only a notational device. They are immediately
  2133. transformed into more conventional symbol names before the assembler
  2134. uses them. The symbol names are stored in the symbol table, appear in
  2135. error messages, and are optionally emitted to the object file. The
  2136. names are constructed using these parts:
  2137. '_local label prefix_'
  2138. All local symbols begin with the system-specific local label
  2139. prefix. Normally both 'as' and 'ld' forget symbols that start with
  2140. the local label prefix. These labels are used for symbols you are
  2141. never intended to see. If you use the '-L' option then 'as'
  2142. retains these symbols in the object file. If you also instruct
  2143. 'ld' to retain these symbols, you may use them in debugging.
  2144. 'NUMBER'
  2145. This is the number that was used in the local label definition. So
  2146. if the label is written '55:' then the number is '55'.
  2147. 'C-B'
  2148. This unusual character is included so you do not accidentally
  2149. invent a symbol of the same name. The character has ASCII value of
  2150. '\002' (control-B).
  2151. '_ordinal number_'
  2152. This is a serial number to keep the labels distinct. The first
  2153. definition of '0:' gets the number '1'. The 15th definition of
  2154. '0:' gets the number '15', and so on. Likewise the first
  2155. definition of '1:' gets the number '1' and its 15th definition gets
  2156. '15' as well.
  2157. So for example, the first '1:' may be named '.L1C-B1', and the 44th
  2158. '3:' may be named '.L3C-B44'.
  2159. Dollar Local Labels
  2160. -------------------
  2161. On some targets 'as' also supports an even more local form of local
  2162. labels called dollar labels. These labels go out of scope (i.e., they
  2163. become undefined) as soon as a non-local label is defined. Thus they
  2164. remain valid for only a small region of the input source code. Normal
  2165. local labels, by contrast, remain in scope for the entire file, or until
  2166. they are redefined by another occurrence of the same local label.
  2167. Dollar labels are defined in exactly the same way as ordinary local
  2168. labels, except that they have a dollar sign suffix to their numeric
  2169. value, e.g., '55$:'.
  2170. They can also be distinguished from ordinary local labels by their
  2171. transformed names which use ASCII character '\001' (control-A) as the
  2172. magic character to distinguish them from ordinary labels. For example,
  2173. the fifth definition of '6$' may be named '.L6'C-A'5'.
  2174. 
  2175. File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols
  2176. 5.4 The Special Dot Symbol
  2177. ==========================
  2178. The special symbol '.' refers to the current address that 'as' is
  2179. assembling into. Thus, the expression 'melvin: .long .' defines
  2180. 'melvin' to contain its own address. Assigning a value to '.' is
  2181. treated the same as a '.org' directive. Thus, the expression '.=.+4' is
  2182. the same as saying '.space 4'.
  2183. 
  2184. File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols
  2185. 5.5 Symbol Attributes
  2186. =====================
  2187. Every symbol has, as well as its name, the attributes "Value" and
  2188. "Type". Depending on output format, symbols can also have auxiliary
  2189. attributes.
  2190. If you use a symbol without defining it, 'as' assumes zero for all
  2191. these attributes, and probably won't warn you. This makes the symbol an
  2192. externally defined symbol, which is generally what you would want.
  2193. * Menu:
  2194. * Symbol Value:: Value
  2195. * Symbol Type:: Type
  2196. * a.out Symbols:: Symbol Attributes: 'a.out'
  2197. * COFF Symbols:: Symbol Attributes for COFF
  2198. * SOM Symbols:: Symbol Attributes for SOM
  2199. 
  2200. File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes
  2201. 5.5.1 Value
  2202. -----------
  2203. The value of a symbol is (usually) 32 bits. For a symbol which labels a
  2204. location in the text, data, bss or absolute sections the value is the
  2205. number of addresses from the start of that section to the label.
  2206. Naturally for text, data and bss sections the value of a symbol changes
  2207. as 'ld' changes section base addresses during linking. Absolute
  2208. symbols' values do not change during linking: that is why they are
  2209. called absolute.
  2210. The value of an undefined symbol is treated in a special way. If it
  2211. is 0 then the symbol is not defined in this assembler source file, and
  2212. 'ld' tries to determine its value from other files linked into the same
  2213. program. You make this kind of symbol simply by mentioning a symbol
  2214. name without defining it. A non-zero value represents a '.comm' common
  2215. declaration. The value is how much common storage to reserve, in bytes
  2216. (addresses). The symbol refers to the first address of the allocated
  2217. storage.
  2218. 
  2219. File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes
  2220. 5.5.2 Type
  2221. ----------
  2222. The type attribute of a symbol contains relocation (section)
  2223. information, any flag settings indicating that a symbol is external, and
  2224. (optionally), other information for linkers and debuggers. The exact
  2225. format depends on the object-code output format in use.
  2226. 
  2227. File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes
  2228. 5.5.3 Symbol Attributes: 'a.out'
  2229. --------------------------------
  2230. * Menu:
  2231. * Symbol Desc:: Descriptor
  2232. * Symbol Other:: Other
  2233. 
  2234. File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols
  2235. 5.5.3.1 Descriptor
  2236. ..................
  2237. This is an arbitrary 16-bit value. You may establish a symbol's
  2238. descriptor value by using a '.desc' statement (*note '.desc': Desc.). A
  2239. descriptor value means nothing to 'as'.
  2240. 
  2241. File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols
  2242. 5.5.3.2 Other
  2243. .............
  2244. This is an arbitrary 8-bit value. It means nothing to 'as'.
  2245. 
  2246. File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes
  2247. 5.5.4 Symbol Attributes for COFF
  2248. --------------------------------
  2249. The COFF format supports a multitude of auxiliary symbol attributes;
  2250. like the primary symbol attributes, they are set between '.def' and
  2251. '.endef' directives.
  2252. 5.5.4.1 Primary Attributes
  2253. ..........................
  2254. The symbol name is set with '.def'; the value and type, respectively,
  2255. with '.val' and '.type'.
  2256. 5.5.4.2 Auxiliary Attributes
  2257. ............................
  2258. The 'as' directives '.dim', '.line', '.scl', '.size', '.tag', and
  2259. '.weak' can generate auxiliary symbol table information for COFF.
  2260. 
  2261. File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes
  2262. 5.5.5 Symbol Attributes for SOM
  2263. -------------------------------
  2264. The SOM format for the HPPA supports a multitude of symbol attributes
  2265. set with the '.EXPORT' and '.IMPORT' directives.
  2266. The attributes are described in 'HP9000 Series 800 Assembly Language
  2267. Reference Manual' (HP 92432-90001) under the 'IMPORT' and 'EXPORT'
  2268. assembler directive documentation.
  2269. 
  2270. File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top
  2271. 6 Expressions
  2272. *************
  2273. An "expression" specifies an address or numeric value. Whitespace may
  2274. precede and/or follow an expression.
  2275. The result of an expression must be an absolute number, or else an
  2276. offset into a particular section. If an expression is not absolute, and
  2277. there is not enough information when 'as' sees the expression to know
  2278. its section, a second pass over the source program might be necessary to
  2279. interpret the expression--but the second pass is currently not
  2280. implemented. 'as' aborts with an error message in this situation.
  2281. * Menu:
  2282. * Empty Exprs:: Empty Expressions
  2283. * Integer Exprs:: Integer Expressions
  2284. 
  2285. File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions
  2286. 6.1 Empty Expressions
  2287. =====================
  2288. An empty expression has no value: it is just whitespace or null.
  2289. Wherever an absolute expression is required, you may omit the
  2290. expression, and 'as' assumes a value of (absolute) 0. This is
  2291. compatible with other assemblers.
  2292. 
  2293. File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions
  2294. 6.2 Integer Expressions
  2295. =======================
  2296. An "integer expression" is one or more _arguments_ delimited by
  2297. _operators_.
  2298. * Menu:
  2299. * Arguments:: Arguments
  2300. * Operators:: Operators
  2301. * Prefix Ops:: Prefix Operators
  2302. * Infix Ops:: Infix Operators
  2303. 
  2304. File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs
  2305. 6.2.1 Arguments
  2306. ---------------
  2307. "Arguments" are symbols, numbers or subexpressions. In other contexts
  2308. arguments are sometimes called "arithmetic operands". In this manual,
  2309. to avoid confusing them with the "instruction operands" of the machine
  2310. language, we use the term "argument" to refer to parts of expressions
  2311. only, reserving the word "operand" to refer only to machine instruction
  2312. operands.
  2313. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of
  2314. text, data, bss, absolute, or undefined. NNN is a signed, 2's
  2315. complement 32 bit integer.
  2316. Numbers are usually integers.
  2317. A number can be a flonum or bignum. In this case, you are warned
  2318. that only the low order 32 bits are used, and 'as' pretends these 32
  2319. bits are an integer. You may write integer-manipulating instructions
  2320. that act on exotic constants, compatible with other assemblers.
  2321. Subexpressions are a left parenthesis '(' followed by an integer
  2322. expression, followed by a right parenthesis ')'; or a prefix operator
  2323. followed by an argument.
  2324. 
  2325. File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs
  2326. 6.2.2 Operators
  2327. ---------------
  2328. "Operators" are arithmetic functions, like '+' or '%'. Prefix operators
  2329. are followed by an argument. Infix operators appear between their
  2330. arguments. Operators may be preceded and/or followed by whitespace.
  2331. 
  2332. File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs
  2333. 6.2.3 Prefix Operator
  2334. ---------------------
  2335. 'as' has the following "prefix operators". They each take one argument,
  2336. which must be absolute.
  2337. '-'
  2338. "Negation". Two's complement negation.
  2339. '~'
  2340. "Complementation". Bitwise not.
  2341. 
  2342. File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs
  2343. 6.2.4 Infix Operators
  2344. ---------------------
  2345. "Infix operators" take two arguments, one on either side. Operators
  2346. have precedence, but operations with equal precedence are performed left
  2347. to right. Apart from '+' or '-', both arguments must be absolute, and
  2348. the result is absolute.
  2349. 1. Highest Precedence
  2350. '*'
  2351. "Multiplication".
  2352. '/'
  2353. "Division". Truncation is the same as the C operator '/'
  2354. '%'
  2355. "Remainder".
  2356. '<<'
  2357. "Shift Left". Same as the C operator '<<'.
  2358. '>>'
  2359. "Shift Right". Same as the C operator '>>'.
  2360. 2. Intermediate precedence
  2361. '|'
  2362. "Bitwise Inclusive Or".
  2363. '&'
  2364. "Bitwise And".
  2365. '^'
  2366. "Bitwise Exclusive Or".
  2367. '!'
  2368. "Bitwise Or Not".
  2369. 3. Low Precedence
  2370. '+'
  2371. "Addition". If either argument is absolute, the result has
  2372. the section of the other argument. You may not add together
  2373. arguments from different sections.
  2374. '-'
  2375. "Subtraction". If the right argument is absolute, the result
  2376. has the section of the left argument. If both arguments are
  2377. in the same section, the result is absolute. You may not
  2378. subtract arguments from different sections.
  2379. '=='
  2380. "Is Equal To"
  2381. '<>'
  2382. '!='
  2383. "Is Not Equal To"
  2384. '<'
  2385. "Is Less Than"
  2386. '>'
  2387. "Is Greater Than"
  2388. '>='
  2389. "Is Greater Than Or Equal To"
  2390. '<='
  2391. "Is Less Than Or Equal To"
  2392. The comparison operators can be used as infix operators. A
  2393. true results has a value of -1 whereas a false result has a
  2394. value of 0. Note, these operators perform signed comparisons.
  2395. 4. Lowest Precedence
  2396. '&&'
  2397. "Logical And".
  2398. '||'
  2399. "Logical Or".
  2400. These two logical operations can be used to combine the
  2401. results of sub expressions. Note, unlike the comparison
  2402. operators a true result returns a value of 1 but a false
  2403. results does still return 0. Also note that the logical or
  2404. operator has a slightly lower precedence than logical and.
  2405. In short, it's only meaningful to add or subtract the _offsets_ in an
  2406. address; you can only have a defined section in one of the two
  2407. arguments.
  2408. 
  2409. File: as.info, Node: Pseudo Ops, Next: Object Attributes, Prev: Expressions, Up: Top
  2410. 7 Assembler Directives
  2411. **********************
  2412. All assembler directives have names that begin with a period ('.'). The
  2413. names are case insensitive for most targets, and usually written in
  2414. lower case.
  2415. This chapter discusses directives that are available regardless of
  2416. the target machine configuration for the GNU assembler. Some machine
  2417. configurations provide additional directives. *Note Machine
  2418. Dependencies::.
  2419. * Menu:
  2420. * Abort:: '.abort'
  2421. * ABORT (COFF):: '.ABORT'
  2422. * Align:: '.align ABS-EXPR , ABS-EXPR'
  2423. * Altmacro:: '.altmacro'
  2424. * Ascii:: '.ascii "STRING"'...
  2425. * Asciz:: '.asciz "STRING"'...
  2426. * Balign:: '.balign ABS-EXPR , ABS-EXPR'
  2427. * Bundle directives:: '.bundle_align_mode ABS-EXPR', etc
  2428. * Byte:: '.byte EXPRESSIONS'
  2429. * CFI directives:: '.cfi_startproc [simple]', '.cfi_endproc', etc.
  2430. * Comm:: '.comm SYMBOL , LENGTH '
  2431. * Data:: '.data SUBSECTION'
  2432. * Dc:: '.dc[SIZE] EXPRESSIONS'
  2433. * Dcb:: '.dcb[SIZE] NUMBER [,FILL]'
  2434. * Ds:: '.ds[SIZE] NUMBER [,FILL]'
  2435. * Def:: '.def NAME'
  2436. * Desc:: '.desc SYMBOL, ABS-EXPRESSION'
  2437. * Dim:: '.dim'
  2438. * Double:: '.double FLONUMS'
  2439. * Eject:: '.eject'
  2440. * Else:: '.else'
  2441. * Elseif:: '.elseif'
  2442. * End:: '.end'
  2443. * Endef:: '.endef'
  2444. * Endfunc:: '.endfunc'
  2445. * Endif:: '.endif'
  2446. * Equ:: '.equ SYMBOL, EXPRESSION'
  2447. * Equiv:: '.equiv SYMBOL, EXPRESSION'
  2448. * Eqv:: '.eqv SYMBOL, EXPRESSION'
  2449. * Err:: '.err'
  2450. * Error:: '.error STRING'
  2451. * Exitm:: '.exitm'
  2452. * Extern:: '.extern'
  2453. * Fail:: '.fail'
  2454. * File:: '.file'
  2455. * Fill:: '.fill REPEAT , SIZE , VALUE'
  2456. * Float:: '.float FLONUMS'
  2457. * Func:: '.func'
  2458. * Global:: '.global SYMBOL', '.globl SYMBOL'
  2459. * Gnu_attribute:: '.gnu_attribute TAG,VALUE'
  2460. * Hidden:: '.hidden NAMES'
  2461. * hword:: '.hword EXPRESSIONS'
  2462. * Ident:: '.ident'
  2463. * If:: '.if ABSOLUTE EXPRESSION'
  2464. * Incbin:: '.incbin "FILE"[,SKIP[,COUNT]]'
  2465. * Include:: '.include "FILE"'
  2466. * Int:: '.int EXPRESSIONS'
  2467. * Internal:: '.internal NAMES'
  2468. * Irp:: '.irp SYMBOL,VALUES'...
  2469. * Irpc:: '.irpc SYMBOL,VALUES'...
  2470. * Lcomm:: '.lcomm SYMBOL , LENGTH'
  2471. * Lflags:: '.lflags'
  2472. * Line:: '.line LINE-NUMBER'
  2473. * Linkonce:: '.linkonce [TYPE]'
  2474. * List:: '.list'
  2475. * Ln:: '.ln LINE-NUMBER'
  2476. * Loc:: '.loc FILENO LINENO'
  2477. * Loc_mark_labels:: '.loc_mark_labels ENABLE'
  2478. * Local:: '.local NAMES'
  2479. * Long:: '.long EXPRESSIONS'
  2480. * Macro:: '.macro NAME ARGS'...
  2481. * MRI:: '.mri VAL'
  2482. * Noaltmacro:: '.noaltmacro'
  2483. * Nolist:: '.nolist'
  2484. * Nops:: '.nops SIZE[, CONTROL]'
  2485. * Octa:: '.octa BIGNUMS'
  2486. * Offset:: '.offset LOC'
  2487. * Org:: '.org NEW-LC, FILL'
  2488. * P2align:: '.p2align ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2489. * PopSection:: '.popsection'
  2490. * Previous:: '.previous'
  2491. * Print:: '.print STRING'
  2492. * Protected:: '.protected NAMES'
  2493. * Psize:: '.psize LINES, COLUMNS'
  2494. * Purgem:: '.purgem NAME'
  2495. * PushSection:: '.pushsection NAME'
  2496. * Quad:: '.quad BIGNUMS'
  2497. * Reloc:: '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  2498. * Rept:: '.rept COUNT'
  2499. * Sbttl:: '.sbttl "SUBHEADING"'
  2500. * Scl:: '.scl CLASS'
  2501. * Section:: '.section NAME[, FLAGS]'
  2502. * Set:: '.set SYMBOL, EXPRESSION'
  2503. * Short:: '.short EXPRESSIONS'
  2504. * Single:: '.single FLONUMS'
  2505. * Size:: '.size [NAME , EXPRESSION]'
  2506. * Skip:: '.skip SIZE [,FILL]'
  2507. * Sleb128:: '.sleb128 EXPRESSIONS'
  2508. * Space:: '.space SIZE [,FILL]'
  2509. * Stab:: '.stabd, .stabn, .stabs'
  2510. * String:: '.string "STR"', '.string8 "STR"', '.string16 "STR"', '.string32 "STR"', '.string64 "STR"'
  2511. * Struct:: '.struct EXPRESSION'
  2512. * SubSection:: '.subsection'
  2513. * Symver:: '.symver NAME,NAME2@NODENAME'
  2514. * Tag:: '.tag STRUCTNAME'
  2515. * Text:: '.text SUBSECTION'
  2516. * Title:: '.title "HEADING"'
  2517. * Type:: '.type <INT | NAME , TYPE DESCRIPTION>'
  2518. * Uleb128:: '.uleb128 EXPRESSIONS'
  2519. * Val:: '.val ADDR'
  2520. * Version:: '.version "STRING"'
  2521. * VTableEntry:: '.vtable_entry TABLE, OFFSET'
  2522. * VTableInherit:: '.vtable_inherit CHILD, PARENT'
  2523. * Warning:: '.warning STRING'
  2524. * Weak:: '.weak NAMES'
  2525. * Weakref:: '.weakref ALIAS, SYMBOL'
  2526. * Word:: '.word EXPRESSIONS'
  2527. * Zero:: '.zero SIZE'
  2528. * 2byte:: '.2byte EXPRESSIONS'
  2529. * 4byte:: '.4byte EXPRESSIONS'
  2530. * 8byte:: '.8byte BIGNUMS'
  2531. * Deprecated:: Deprecated Directives
  2532. 
  2533. File: as.info, Node: Abort, Next: ABORT (COFF), Up: Pseudo Ops
  2534. 7.1 '.abort'
  2535. ============
  2536. This directive stops the assembly immediately. It is for compatibility
  2537. with other assemblers. The original idea was that the assembly language
  2538. source would be piped into the assembler. If the sender of the source
  2539. quit, it could use this directive tells 'as' to quit also. One day
  2540. '.abort' will not be supported.
  2541. 
  2542. File: as.info, Node: ABORT (COFF), Next: Align, Prev: Abort, Up: Pseudo Ops
  2543. 7.2 '.ABORT' (COFF)
  2544. ===================
  2545. When producing COFF output, 'as' accepts this directive as a synonym for
  2546. '.abort'.
  2547. 
  2548. File: as.info, Node: Align, Next: Altmacro, Prev: ABORT (COFF), Up: Pseudo Ops
  2549. 7.3 '.align ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2550. =========================================
  2551. Pad the location counter (in the current subsection) to a particular
  2552. storage boundary. The first expression (which must be absolute) is the
  2553. alignment required, as described below.
  2554. The second expression (also absolute) gives the fill value to be
  2555. stored in the padding bytes. It (and the comma) may be omitted. If it
  2556. is omitted, the padding bytes are normally zero. However, on most
  2557. systems, if the section is marked as containing code and the fill value
  2558. is omitted, the space is filled with no-op instructions.
  2559. The third expression is also absolute, and is also optional. If it
  2560. is present, it is the maximum number of bytes that should be skipped by
  2561. this alignment directive. If doing the alignment would require skipping
  2562. more bytes than the specified maximum, then the alignment is not done at
  2563. all. You can omit the fill value (the second argument) entirely by
  2564. simply using two commas after the required alignment; this can be useful
  2565. if you want the alignment to be filled with no-op instructions when
  2566. appropriate.
  2567. The way the required alignment is specified varies from system to
  2568. system. For the arc, hppa, i386 using ELF, iq2000, m68k, or1k, s390,
  2569. sparc, tic4x, tic80 and xtensa, the first expression is the alignment
  2570. request in bytes. For example '.align 8' advances the location counter
  2571. until it is a multiple of 8. If the location counter is already a
  2572. multiple of 8, no change is needed. For the tic54x, the first
  2573. expression is the alignment request in words.
  2574. For other systems, including ppc, i386 using a.out format, arm and
  2575. strongarm, it is the number of low-order zero bits the location counter
  2576. must have after advancement. For example '.align 3' advances the
  2577. location counter until it a multiple of 8. If the location counter is
  2578. already a multiple of 8, no change is needed.
  2579. This inconsistency is due to the different behaviors of the various
  2580. native assemblers for these systems which GAS must emulate. GAS also
  2581. provides '.balign' and '.p2align' directives, described later, which
  2582. have a consistent behavior across all architectures (but are specific to
  2583. GAS).
  2584. 
  2585. File: as.info, Node: Altmacro, Next: Ascii, Prev: Align, Up: Pseudo Ops
  2586. 7.4 '.altmacro'
  2587. ===============
  2588. Enable alternate macro mode, enabling:
  2589. 'LOCAL NAME [ , ... ]'
  2590. One additional directive, 'LOCAL', is available. It is used to
  2591. generate a string replacement for each of the NAME arguments, and
  2592. replace any instances of NAME in each macro expansion. The
  2593. replacement string is unique in the assembly, and different for
  2594. each separate macro expansion. 'LOCAL' allows you to write macros
  2595. that define symbols, without fear of conflict between separate
  2596. macro expansions.
  2597. 'String delimiters'
  2598. You can write strings delimited in these other ways besides
  2599. '"STRING"':
  2600. ''STRING''
  2601. You can delimit strings with single-quote characters.
  2602. '<STRING>'
  2603. You can delimit strings with matching angle brackets.
  2604. 'single-character string escape'
  2605. To include any single character literally in a string (even if the
  2606. character would otherwise have some special meaning), you can
  2607. prefix the character with '!' (an exclamation mark). For example,
  2608. you can write '<4.3 !> 5.4!!>' to get the literal text '4.3 >
  2609. 5.4!'.
  2610. 'Expression results as strings'
  2611. You can write '%EXPR' to evaluate the expression EXPR and use the
  2612. result as a string.
  2613. 
  2614. File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops
  2615. 7.5 '.ascii "STRING"'...
  2616. ========================
  2617. '.ascii' expects zero or more string literals (*note Strings::)
  2618. separated by commas. It assembles each string (with no automatic
  2619. trailing zero byte) into consecutive addresses.
  2620. 
  2621. File: as.info, Node: Asciz, Next: Balign, Prev: Ascii, Up: Pseudo Ops
  2622. 7.6 '.asciz "STRING"'...
  2623. ========================
  2624. '.asciz' is just like '.ascii', but each string is followed by a zero
  2625. byte. The "z" in '.asciz' stands for "zero".
  2626. 
  2627. File: as.info, Node: Balign, Next: Bundle directives, Prev: Asciz, Up: Pseudo Ops
  2628. 7.7 '.balign[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2629. ==============================================
  2630. Pad the location counter (in the current subsection) to a particular
  2631. storage boundary. The first expression (which must be absolute) is the
  2632. alignment request in bytes. For example '.balign 8' advances the
  2633. location counter until it is a multiple of 8. If the location counter
  2634. is already a multiple of 8, no change is needed.
  2635. The second expression (also absolute) gives the fill value to be
  2636. stored in the padding bytes. It (and the comma) may be omitted. If it
  2637. is omitted, the padding bytes are normally zero. However, on most
  2638. systems, if the section is marked as containing code and the fill value
  2639. is omitted, the space is filled with no-op instructions.
  2640. The third expression is also absolute, and is also optional. If it
  2641. is present, it is the maximum number of bytes that should be skipped by
  2642. this alignment directive. If doing the alignment would require skipping
  2643. more bytes than the specified maximum, then the alignment is not done at
  2644. all. You can omit the fill value (the second argument) entirely by
  2645. simply using two commas after the required alignment; this can be useful
  2646. if you want the alignment to be filled with no-op instructions when
  2647. appropriate.
  2648. The '.balignw' and '.balignl' directives are variants of the
  2649. '.balign' directive. The '.balignw' directive treats the fill pattern
  2650. as a two byte word value. The '.balignl' directives treats the fill
  2651. pattern as a four byte longword value. For example, '.balignw 4,0x368d'
  2652. will align to a multiple of 4. If it skips two bytes, they will be
  2653. filled in with the value 0x368d (the exact placement of the bytes
  2654. depends upon the endianness of the processor). If it skips 1 or 3
  2655. bytes, the fill value is undefined.
  2656. 
  2657. File: as.info, Node: Bundle directives, Next: Byte, Prev: Balign, Up: Pseudo Ops
  2658. 7.8 Bundle directives
  2659. =====================
  2660. 7.8.1 '.bundle_align_mode ABS-EXPR'
  2661. -----------------------------------
  2662. '.bundle_align_mode' enables or disables "aligned instruction bundle"
  2663. mode. In this mode, sequences of adjacent instructions are grouped into
  2664. fixed-sized "bundles". If the argument is zero, this mode is disabled
  2665. (which is the default state). If the argument it not zero, it gives the
  2666. size of an instruction bundle as a power of two (as for the '.p2align'
  2667. directive, *note P2align::).
  2668. For some targets, it's an ABI requirement that no instruction may
  2669. span a certain aligned boundary. A "bundle" is simply a sequence of
  2670. instructions that starts on an aligned boundary. For example, if
  2671. ABS-EXPR is '5' then the bundle size is 32, so each aligned chunk of 32
  2672. bytes is a bundle. When aligned instruction bundle mode is in effect,
  2673. no single instruction may span a boundary between bundles. If an
  2674. instruction would start too close to the end of a bundle for the length
  2675. of that particular instruction to fit within the bundle, then the space
  2676. at the end of that bundle is filled with no-op instructions so the
  2677. instruction starts in the next bundle. As a corollary, it's an error if
  2678. any single instruction's encoding is longer than the bundle size.
  2679. 7.8.2 '.bundle_lock' and '.bundle_unlock'
  2680. -----------------------------------------
  2681. The '.bundle_lock' and directive '.bundle_unlock' directives allow
  2682. explicit control over instruction bundle padding. These directives are
  2683. only valid when '.bundle_align_mode' has been used to enable aligned
  2684. instruction bundle mode. It's an error if they appear when
  2685. '.bundle_align_mode' has not been used at all, or when the last
  2686. directive was '.bundle_align_mode 0'.
  2687. For some targets, it's an ABI requirement that certain instructions
  2688. may appear only as part of specified permissible sequences of multiple
  2689. instructions, all within the same bundle. A pair of '.bundle_lock' and
  2690. '.bundle_unlock' directives define a "bundle-locked" instruction
  2691. sequence. For purposes of aligned instruction bundle mode, a sequence
  2692. starting with '.bundle_lock' and ending with '.bundle_unlock' is treated
  2693. as a single instruction. That is, the entire sequence must fit into a
  2694. single bundle and may not span a bundle boundary. If necessary, no-op
  2695. instructions will be inserted before the first instruction of the
  2696. sequence so that the whole sequence starts on an aligned bundle
  2697. boundary. It's an error if the sequence is longer than the bundle size.
  2698. For convenience when using '.bundle_lock' and '.bundle_unlock' inside
  2699. assembler macros (*note Macro::), bundle-locked sequences may be nested.
  2700. That is, a second '.bundle_lock' directive before the next
  2701. '.bundle_unlock' directive has no effect except that it must be matched
  2702. by another closing '.bundle_unlock' so that there is the same number of
  2703. '.bundle_lock' and '.bundle_unlock' directives.
  2704. 
  2705. File: as.info, Node: Byte, Next: CFI directives, Prev: Bundle directives, Up: Pseudo Ops
  2706. 7.9 '.byte EXPRESSIONS'
  2707. =======================
  2708. '.byte' expects zero or more expressions, separated by commas. Each
  2709. expression is assembled into the next byte.
  2710. 
  2711. File: as.info, Node: CFI directives, Next: Comm, Prev: Byte, Up: Pseudo Ops
  2712. 7.10 CFI directives
  2713. ===================
  2714. 7.10.1 '.cfi_sections SECTION_LIST'
  2715. -----------------------------------
  2716. '.cfi_sections' may be used to specify whether CFI directives should
  2717. emit '.eh_frame' section and/or '.debug_frame' section. If SECTION_LIST
  2718. is '.eh_frame', '.eh_frame' is emitted, if SECTION_LIST is
  2719. '.debug_frame', '.debug_frame' is emitted. To emit both use '.eh_frame,
  2720. .debug_frame'. The default if this directive is not used is
  2721. '.cfi_sections .eh_frame'.
  2722. On targets that support compact unwinding tables these can be
  2723. generated by specifying '.eh_frame_entry' instead of '.eh_frame'.
  2724. Some targets may support an additional name, such as '.c6xabi.exidx'
  2725. which is used by the target.
  2726. The '.cfi_sections' directive can be repeated, with the same or
  2727. different arguments, provided that CFI generation has not yet started.
  2728. Once CFI generation has started however the section list is fixed and
  2729. any attempts to redefine it will result in an error.
  2730. 7.10.2 '.cfi_startproc [simple]'
  2731. --------------------------------
  2732. '.cfi_startproc' is used at the beginning of each function that should
  2733. have an entry in '.eh_frame'. It initializes some internal data
  2734. structures. Don't forget to close the function by '.cfi_endproc'.
  2735. Unless '.cfi_startproc' is used along with parameter 'simple' it also
  2736. emits some architecture dependent initial CFI instructions.
  2737. 7.10.3 '.cfi_endproc'
  2738. ---------------------
  2739. '.cfi_endproc' is used at the end of a function where it closes its
  2740. unwind entry previously opened by '.cfi_startproc', and emits it to
  2741. '.eh_frame'.
  2742. 7.10.4 '.cfi_personality ENCODING [, EXP]'
  2743. ------------------------------------------
  2744. '.cfi_personality' defines personality routine and its encoding.
  2745. ENCODING must be a constant determining how the personality should be
  2746. encoded. If it is 255 ('DW_EH_PE_omit'), second argument is not
  2747. present, otherwise second argument should be a constant or a symbol
  2748. name. When using indirect encodings, the symbol provided should be the
  2749. location where personality can be loaded from, not the personality
  2750. routine itself. The default after '.cfi_startproc' is '.cfi_personality
  2751. 0xff', no personality routine.
  2752. 7.10.5 '.cfi_personality_id ID'
  2753. -------------------------------
  2754. 'cfi_personality_id' defines a personality routine by its index as
  2755. defined in a compact unwinding format. Only valid when generating
  2756. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2757. 7.10.6 '.cfi_fde_data [OPCODE1 [, ...]]'
  2758. ----------------------------------------
  2759. 'cfi_fde_data' is used to describe the compact unwind opcodes to be used
  2760. for the current function. These are emitted inline in the
  2761. '.eh_frame_entry' section if small enough and there is no LSDA, or in
  2762. the '.gnu.extab' section otherwise. Only valid when generating compact
  2763. EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2764. 7.10.7 '.cfi_lsda ENCODING [, EXP]'
  2765. -----------------------------------
  2766. '.cfi_lsda' defines LSDA and its encoding. ENCODING must be a constant
  2767. determining how the LSDA should be encoded. If it is 255
  2768. ('DW_EH_PE_omit'), the second argument is not present, otherwise the
  2769. second argument should be a constant or a symbol name. The default
  2770. after '.cfi_startproc' is '.cfi_lsda 0xff', meaning that no LSDA is
  2771. present.
  2772. 7.10.8 '.cfi_inline_lsda' [ALIGN]
  2773. ---------------------------------
  2774. '.cfi_inline_lsda' marks the start of a LSDA data section and switches
  2775. to the corresponding '.gnu.extab' section. Must be preceded by a CFI
  2776. block containing a '.cfi_lsda' directive. Only valid when generating
  2777. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2778. The table header and unwinding opcodes will be generated at this
  2779. point, so that they are immediately followed by the LSDA data. The
  2780. symbol referenced by the '.cfi_lsda' directive should still be defined
  2781. in case a fallback FDE based encoding is used. The LSDA data is
  2782. terminated by a section directive.
  2783. The optional ALIGN argument specifies the alignment required. The
  2784. alignment is specified as a power of two, as with the '.p2align'
  2785. directive.
  2786. 7.10.9 '.cfi_def_cfa REGISTER, OFFSET'
  2787. --------------------------------------
  2788. '.cfi_def_cfa' defines a rule for computing CFA as: take address from
  2789. REGISTER and add OFFSET to it.
  2790. 7.10.10 '.cfi_def_cfa_register REGISTER'
  2791. ----------------------------------------
  2792. '.cfi_def_cfa_register' modifies a rule for computing CFA. From now on
  2793. REGISTER will be used instead of the old one. Offset remains the same.
  2794. 7.10.11 '.cfi_def_cfa_offset OFFSET'
  2795. ------------------------------------
  2796. '.cfi_def_cfa_offset' modifies a rule for computing CFA. Register
  2797. remains the same, but OFFSET is new. Note that it is the absolute
  2798. offset that will be added to a defined register to compute CFA address.
  2799. 7.10.12 '.cfi_adjust_cfa_offset OFFSET'
  2800. ---------------------------------------
  2801. Same as '.cfi_def_cfa_offset' but OFFSET is a relative value that is
  2802. added/subtracted from the previous offset.
  2803. 7.10.13 '.cfi_offset REGISTER, OFFSET'
  2804. --------------------------------------
  2805. Previous value of REGISTER is saved at offset OFFSET from CFA.
  2806. 7.10.14 '.cfi_val_offset REGISTER, OFFSET'
  2807. ------------------------------------------
  2808. Previous value of REGISTER is CFA + OFFSET.
  2809. 7.10.15 '.cfi_rel_offset REGISTER, OFFSET'
  2810. ------------------------------------------
  2811. Previous value of REGISTER is saved at offset OFFSET from the current
  2812. CFA register. This is transformed to '.cfi_offset' using the known
  2813. displacement of the CFA register from the CFA. This is often easier to
  2814. use, because the number will match the code it's annotating.
  2815. 7.10.16 '.cfi_register REGISTER1, REGISTER2'
  2816. --------------------------------------------
  2817. Previous value of REGISTER1 is saved in register REGISTER2.
  2818. 7.10.17 '.cfi_restore REGISTER'
  2819. -------------------------------
  2820. '.cfi_restore' says that the rule for REGISTER is now the same as it was
  2821. at the beginning of the function, after all initial instruction added by
  2822. '.cfi_startproc' were executed.
  2823. 7.10.18 '.cfi_undefined REGISTER'
  2824. ---------------------------------
  2825. From now on the previous value of REGISTER can't be restored anymore.
  2826. 7.10.19 '.cfi_same_value REGISTER'
  2827. ----------------------------------
  2828. Current value of REGISTER is the same like in the previous frame, i.e.
  2829. no restoration needed.
  2830. 7.10.20 '.cfi_remember_state' and '.cfi_restore_state'
  2831. ------------------------------------------------------
  2832. '.cfi_remember_state' pushes the set of rules for every register onto an
  2833. implicit stack, while '.cfi_restore_state' pops them off the stack and
  2834. places them in the current row. This is useful for situations where you
  2835. have multiple '.cfi_*' directives that need to be undone due to the
  2836. control flow of the program. For example, we could have something like
  2837. this (assuming the CFA is the value of 'rbp'):
  2838. je label
  2839. popq %rbx
  2840. .cfi_restore %rbx
  2841. popq %r12
  2842. .cfi_restore %r12
  2843. popq %rbp
  2844. .cfi_restore %rbp
  2845. .cfi_def_cfa %rsp, 8
  2846. ret
  2847. label:
  2848. /* Do something else */
  2849. Here, we want the '.cfi' directives to affect only the rows
  2850. corresponding to the instructions before 'label'. This means we'd have
  2851. to add multiple '.cfi' directives after 'label' to recreate the original
  2852. save locations of the registers, as well as setting the CFA back to the
  2853. value of 'rbp'. This would be clumsy, and result in a larger binary
  2854. size. Instead, we can write:
  2855. je label
  2856. popq %rbx
  2857. .cfi_remember_state
  2858. .cfi_restore %rbx
  2859. popq %r12
  2860. .cfi_restore %r12
  2861. popq %rbp
  2862. .cfi_restore %rbp
  2863. .cfi_def_cfa %rsp, 8
  2864. ret
  2865. label:
  2866. .cfi_restore_state
  2867. /* Do something else */
  2868. That way, the rules for the instructions after 'label' will be the
  2869. same as before the first '.cfi_restore' without having to use multiple
  2870. '.cfi' directives.
  2871. 7.10.21 '.cfi_return_column REGISTER'
  2872. -------------------------------------
  2873. Change return column REGISTER, i.e. the return address is either
  2874. directly in REGISTER or can be accessed by rules for REGISTER.
  2875. 7.10.22 '.cfi_signal_frame'
  2876. ---------------------------
  2877. Mark current function as signal trampoline.
  2878. 7.10.23 '.cfi_window_save'
  2879. --------------------------
  2880. SPARC register window has been saved.
  2881. 7.10.24 '.cfi_escape' EXPRESSION[, ...]
  2882. ---------------------------------------
  2883. Allows the user to add arbitrary bytes to the unwind info. One might
  2884. use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS
  2885. does not yet support.
  2886. 7.10.25 '.cfi_val_encoded_addr REGISTER, ENCODING, LABEL'
  2887. ---------------------------------------------------------
  2888. The current value of REGISTER is LABEL. The value of LABEL will be
  2889. encoded in the output file according to ENCODING; see the description of
  2890. '.cfi_personality' for details on this encoding.
  2891. The usefulness of equating a register to a fixed label is probably
  2892. limited to the return address register. Here, it can be useful to mark
  2893. a code segment that has only one return address which is reached by a
  2894. direct branch and no copy of the return address exists in memory or
  2895. another register.
  2896. 
  2897. File: as.info, Node: Comm, Next: Data, Prev: CFI directives, Up: Pseudo Ops
  2898. 7.11 '.comm SYMBOL , LENGTH '
  2899. =============================
  2900. '.comm' declares a common symbol named SYMBOL. When linking, a common
  2901. symbol in one object file may be merged with a defined or common symbol
  2902. of the same name in another object file. If 'ld' does not see a
  2903. definition for the symbol-just one or more common symbols-then it will
  2904. allocate LENGTH bytes of uninitialized memory. LENGTH must be an
  2905. absolute expression. If 'ld' sees multiple common symbols with the same
  2906. name, and they do not all have the same size, it will allocate space
  2907. using the largest size.
  2908. When using ELF or (as a GNU extension) PE, the '.comm' directive
  2909. takes an optional third argument. This is the desired alignment of the
  2910. symbol, specified for ELF as a byte boundary (for example, an alignment
  2911. of 16 means that the least significant 4 bits of the address should be
  2912. zero), and for PE as a power of two (for example, an alignment of 5
  2913. means aligned to a 32-byte boundary). The alignment must be an absolute
  2914. expression, and it must be a power of two. If 'ld' allocates
  2915. uninitialized memory for the common symbol, it will use the alignment
  2916. when placing the symbol. If no alignment is specified, 'as' will set
  2917. the alignment to the largest power of two less than or equal to the size
  2918. of the symbol, up to a maximum of 16 on ELF, or the default section
  2919. alignment of 4 on PE(1).
  2920. The syntax for '.comm' differs slightly on the HPPA. The syntax is
  2921. 'SYMBOL .comm, LENGTH'; SYMBOL is optional.
  2922. ---------- Footnotes ----------
  2923. (1) This is not the same as the executable image file alignment
  2924. controlled by 'ld''s '--section-alignment' option; image file sections
  2925. in PE are aligned to multiples of 4096, which is far too large an
  2926. alignment for ordinary variables. It is rather the default alignment
  2927. for (non-debug) sections within object ('*.o') files, which are less
  2928. strictly aligned.
  2929. 
  2930. File: as.info, Node: Data, Next: Dc, Prev: Comm, Up: Pseudo Ops
  2931. 7.12 '.data SUBSECTION'
  2932. =======================
  2933. '.data' tells 'as' to assemble the following statements onto the end of
  2934. the data subsection numbered SUBSECTION (which is an absolute
  2935. expression). If SUBSECTION is omitted, it defaults to zero.
  2936. 
  2937. File: as.info, Node: Dc, Next: Dcb, Prev: Data, Up: Pseudo Ops
  2938. 7.13 '.dc[SIZE] EXPRESSIONS'
  2939. ============================
  2940. The '.dc' directive expects zero or more EXPRESSIONS separated by
  2941. commas. These expressions are evaluated and their values inserted into
  2942. the current section. The size of the emitted value depends upon the
  2943. suffix to the '.dc' directive:
  2944. ''.a''
  2945. Emits N-bit values, where N is the size of an address on the target
  2946. system.
  2947. ''.b''
  2948. Emits 8-bit values.
  2949. ''.d''
  2950. Emits double precision floating-point values.
  2951. ''.l''
  2952. Emits 32-bit values.
  2953. ''.s''
  2954. Emits single precision floating-point values.
  2955. ''.w''
  2956. Emits 16-bit values. Note - this is true even on targets where the
  2957. '.word' directive would emit 32-bit values.
  2958. ''.x''
  2959. Emits long double precision floating-point values.
  2960. If no suffix is used then '.w' is assumed.
  2961. The byte ordering is target dependent, as is the size and format of
  2962. floating point values.
  2963. 
  2964. File: as.info, Node: Dcb, Next: Ds, Prev: Dc, Up: Pseudo Ops
  2965. 7.14 '.dcb[SIZE] NUMBER [,FILL]'
  2966. ================================
  2967. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2968. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2969. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2970. be one of:
  2971. ''.b''
  2972. Emits single byte values.
  2973. ''.d''
  2974. Emits double-precision floating point values.
  2975. ''.l''
  2976. Emits 4-byte values.
  2977. ''.s''
  2978. Emits single-precision floating point values.
  2979. ''.w''
  2980. Emits 2-byte values.
  2981. ''.x''
  2982. Emits long double-precision floating point values.
  2983. If the SIZE suffix is omitted then '.w' is assumed.
  2984. The byte ordering is target dependent, as is the size and format of
  2985. floating point values.
  2986. 
  2987. File: as.info, Node: Ds, Next: Def, Prev: Dcb, Up: Pseudo Ops
  2988. 7.15 '.ds[SIZE] NUMBER [,FILL]'
  2989. ===============================
  2990. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2991. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2992. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2993. be one of:
  2994. ''.b''
  2995. Emits single byte values.
  2996. ''.d''
  2997. Emits 8-byte values.
  2998. ''.l''
  2999. Emits 4-byte values.
  3000. ''.p''
  3001. Emits 12-byte values.
  3002. ''.s''
  3003. Emits 4-byte values.
  3004. ''.w''
  3005. Emits 2-byte values.
  3006. ''.x''
  3007. Emits 12-byte values.
  3008. Note - unlike the '.dcb' directive the '.d', '.s' and '.x' suffixes
  3009. do not indicate that floating-point values are to be inserted.
  3010. If the SIZE suffix is omitted then '.w' is assumed.
  3011. The byte ordering is target dependent.
  3012. 
  3013. File: as.info, Node: Def, Next: Desc, Prev: Ds, Up: Pseudo Ops
  3014. 7.16 '.def NAME'
  3015. ================
  3016. Begin defining debugging information for a symbol NAME; the definition
  3017. extends until the '.endef' directive is encountered.
  3018. 
  3019. File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops
  3020. 7.17 '.desc SYMBOL, ABS-EXPRESSION'
  3021. ===================================
  3022. This directive sets the descriptor of the symbol (*note Symbol
  3023. Attributes::) to the low 16 bits of an absolute expression.
  3024. The '.desc' directive is not available when 'as' is configured for
  3025. COFF output; it is only for 'a.out' or 'b.out' object format. For the
  3026. sake of compatibility, 'as' accepts it, but produces no output, when
  3027. configured for COFF.
  3028. 
  3029. File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops
  3030. 7.18 '.dim'
  3031. ===========
  3032. This directive is generated by compilers to include auxiliary debugging
  3033. information in the symbol table. It is only permitted inside
  3034. '.def'/'.endef' pairs.
  3035. 
  3036. File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops
  3037. 7.19 '.double FLONUMS'
  3038. ======================
  3039. '.double' expects zero or more flonums, separated by commas. It
  3040. assembles floating point numbers. The exact kind of floating point
  3041. numbers emitted depends on how 'as' is configured. *Note Machine
  3042. Dependencies::.
  3043. 
  3044. File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops
  3045. 7.20 '.eject'
  3046. =============
  3047. Force a page break at this point, when generating assembly listings.
  3048. 
  3049. File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops
  3050. 7.21 '.else'
  3051. ============
  3052. '.else' is part of the 'as' support for conditional assembly; see *note
  3053. '.if': If. It marks the beginning of a section of code to be assembled
  3054. if the condition for the preceding '.if' was false.
  3055. 
  3056. File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops
  3057. 7.22 '.elseif'
  3058. ==============
  3059. '.elseif' is part of the 'as' support for conditional assembly; see
  3060. *note '.if': If. It is shorthand for beginning a new '.if' block that
  3061. would otherwise fill the entire '.else' section.
  3062. 
  3063. File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops
  3064. 7.23 '.end'
  3065. ===========
  3066. '.end' marks the end of the assembly file. 'as' does not process
  3067. anything in the file past the '.end' directive.
  3068. 
  3069. File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops
  3070. 7.24 '.endef'
  3071. =============
  3072. This directive flags the end of a symbol definition begun with '.def'.
  3073. 
  3074. File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops
  3075. 7.25 '.endfunc'
  3076. ===============
  3077. '.endfunc' marks the end of a function specified with '.func'.
  3078. 
  3079. File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops
  3080. 7.26 '.endif'
  3081. =============
  3082. '.endif' is part of the 'as' support for conditional assembly; it marks
  3083. the end of a block of code that is only assembled conditionally. *Note
  3084. '.if': If.
  3085. 
  3086. File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops
  3087. 7.27 '.equ SYMBOL, EXPRESSION'
  3088. ==============================
  3089. This directive sets the value of SYMBOL to EXPRESSION. It is synonymous
  3090. with '.set'; see *note '.set': Set.
  3091. The syntax for 'equ' on the HPPA is 'SYMBOL .equ EXPRESSION'.
  3092. The syntax for 'equ' on the Z80 is 'SYMBOL equ EXPRESSION'. On the
  3093. Z80 it is an error if SYMBOL is already defined, but the symbol is not
  3094. protected from later redefinition. Compare *note Equiv::.
  3095. 
  3096. File: as.info, Node: Equiv, Next: Eqv, Prev: Equ, Up: Pseudo Ops
  3097. 7.28 '.equiv SYMBOL, EXPRESSION'
  3098. ================================
  3099. The '.equiv' directive is like '.equ' and '.set', except that the
  3100. assembler will signal an error if SYMBOL is already defined. Note a
  3101. symbol which has been referenced but not actually defined is considered
  3102. to be undefined.
  3103. Except for the contents of the error message, this is roughly
  3104. equivalent to
  3105. .ifdef SYM
  3106. .err
  3107. .endif
  3108. .equ SYM,VAL
  3109. plus it protects the symbol from later redefinition.
  3110. 
  3111. File: as.info, Node: Eqv, Next: Err, Prev: Equiv, Up: Pseudo Ops
  3112. 7.29 '.eqv SYMBOL, EXPRESSION'
  3113. ==============================
  3114. The '.eqv' directive is like '.equiv', but no attempt is made to
  3115. evaluate the expression or any part of it immediately. Instead each
  3116. time the resulting symbol is used in an expression, a snapshot of its
  3117. current value is taken.
  3118. 
  3119. File: as.info, Node: Err, Next: Error, Prev: Eqv, Up: Pseudo Ops
  3120. 7.30 '.err'
  3121. ===========
  3122. If 'as' assembles a '.err' directive, it will print an error message
  3123. and, unless the '-Z' option was used, it will not generate an object
  3124. file. This can be used to signal an error in conditionally compiled
  3125. code.
  3126. 
  3127. File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops
  3128. 7.31 '.error "STRING"'
  3129. ======================
  3130. Similarly to '.err', this directive emits an error, but you can specify
  3131. a string that will be emitted as the error message. If you don't
  3132. specify the message, it defaults to '".error directive invoked in source
  3133. file"'. *Note Error and Warning Messages: Errors.
  3134. .error "This code has not been assembled and tested."
  3135. 
  3136. File: as.info, Node: Exitm, Next: Extern, Prev: Error, Up: Pseudo Ops
  3137. 7.32 '.exitm'
  3138. =============
  3139. Exit early from the current macro definition. *Note Macro::.
  3140. 
  3141. File: as.info, Node: Extern, Next: Fail, Prev: Exitm, Up: Pseudo Ops
  3142. 7.33 '.extern'
  3143. ==============
  3144. '.extern' is accepted in the source program--for compatibility with
  3145. other assemblers--but it is ignored. 'as' treats all undefined symbols
  3146. as external.
  3147. 
  3148. File: as.info, Node: Fail, Next: File, Prev: Extern, Up: Pseudo Ops
  3149. 7.34 '.fail EXPRESSION'
  3150. =======================
  3151. Generates an error or a warning. If the value of the EXPRESSION is 500
  3152. or more, 'as' will print a warning message. If the value is less than
  3153. 500, 'as' will print an error message. The message will include the
  3154. value of EXPRESSION. This can occasionally be useful inside complex
  3155. nested macros or conditional assembly.
  3156. 
  3157. File: as.info, Node: File, Next: Fill, Prev: Fail, Up: Pseudo Ops
  3158. 7.35 '.file'
  3159. ============
  3160. There are two different versions of the '.file' directive. Targets that
  3161. support DWARF2 line number information use the DWARF2 version of
  3162. '.file'. Other targets use the default version.
  3163. Default Version
  3164. ---------------
  3165. This version of the '.file' directive tells 'as' that we are about to
  3166. start a new logical file. The syntax is:
  3167. .file STRING
  3168. STRING is the new file name. In general, the filename is recognized
  3169. whether or not it is surrounded by quotes '"'; but if you wish to
  3170. specify an empty file name, you must give the quotes-'""'. This
  3171. statement may go away in future: it is only recognized to be compatible
  3172. with old 'as' programs.
  3173. DWARF2 Version
  3174. --------------
  3175. When emitting DWARF2 line number information, '.file' assigns filenames
  3176. to the '.debug_line' file name table. The syntax is:
  3177. .file FILENO FILENAME
  3178. The FILENO operand should be a unique positive integer to use as the
  3179. index of the entry in the table. The FILENAME operand is a C string
  3180. literal.
  3181. The detail of filename indices is exposed to the user because the
  3182. filename table is shared with the '.debug_info' section of the DWARF2
  3183. debugging information, and thus the user must know the exact indices
  3184. that table entries will have.
  3185. 
  3186. File: as.info, Node: Fill, Next: Float, Prev: File, Up: Pseudo Ops
  3187. 7.36 '.fill REPEAT , SIZE , VALUE'
  3188. ==================================
  3189. REPEAT, SIZE and VALUE are absolute expressions. This emits REPEAT
  3190. copies of SIZE bytes. REPEAT may be zero or more. SIZE may be zero or
  3191. more, but if it is more than 8, then it is deemed to have the value 8,
  3192. compatible with other people's assemblers. The contents of each REPEAT
  3193. bytes is taken from an 8-byte number. The highest order 4 bytes are
  3194. zero. The lowest order 4 bytes are VALUE rendered in the byte-order of
  3195. an integer on the computer 'as' is assembling for. Each SIZE bytes in a
  3196. repetition is taken from the lowest order SIZE bytes of this number.
  3197. Again, this bizarre behavior is compatible with other people's
  3198. assemblers.
  3199. SIZE and VALUE are optional. If the second comma and VALUE are
  3200. absent, VALUE is assumed zero. If the first comma and following tokens
  3201. are absent, SIZE is assumed to be 1.
  3202. 
  3203. File: as.info, Node: Float, Next: Func, Prev: Fill, Up: Pseudo Ops
  3204. 7.37 '.float FLONUMS'
  3205. =====================
  3206. This directive assembles zero or more flonums, separated by commas. It
  3207. has the same effect as '.single'. The exact kind of floating point
  3208. numbers emitted depends on how 'as' is configured. *Note Machine
  3209. Dependencies::.
  3210. 
  3211. File: as.info, Node: Func, Next: Global, Prev: Float, Up: Pseudo Ops
  3212. 7.38 '.func NAME[,LABEL]'
  3213. =========================
  3214. '.func' emits debugging information to denote function NAME, and is
  3215. ignored unless the file is assembled with debugging enabled. Only
  3216. '--gstabs[+]' is currently supported. LABEL is the entry point of the
  3217. function and if omitted NAME prepended with the 'leading char' is used.
  3218. 'leading char' is usually '_' or nothing, depending on the target. All
  3219. functions are currently defined to have 'void' return type. The
  3220. function must be terminated with '.endfunc'.
  3221. 
  3222. File: as.info, Node: Global, Next: Gnu_attribute, Prev: Func, Up: Pseudo Ops
  3223. 7.39 '.global SYMBOL', '.globl SYMBOL'
  3224. ======================================
  3225. '.global' makes the symbol visible to 'ld'. If you define SYMBOL in
  3226. your partial program, its value is made available to other partial
  3227. programs that are linked with it. Otherwise, SYMBOL takes its
  3228. attributes from a symbol of the same name from another file linked into
  3229. the same program.
  3230. Both spellings ('.globl' and '.global') are accepted, for
  3231. compatibility with other assemblers.
  3232. On the HPPA, '.global' is not always enough to make it accessible to
  3233. other partial programs. You may need the HPPA-only '.EXPORT' directive
  3234. as well. *Note HPPA Assembler Directives: HPPA Directives.
  3235. 
  3236. File: as.info, Node: Gnu_attribute, Next: Hidden, Prev: Global, Up: Pseudo Ops
  3237. 7.40 '.gnu_attribute TAG,VALUE'
  3238. ===============================
  3239. Record a GNU object attribute for this file. *Note Object Attributes::.
  3240. 
  3241. File: as.info, Node: Hidden, Next: hword, Prev: Gnu_attribute, Up: Pseudo Ops
  3242. 7.41 '.hidden NAMES'
  3243. ====================
  3244. This is one of the ELF visibility directives. The other two are
  3245. '.internal' (*note '.internal': Internal.) and '.protected' (*note
  3246. '.protected': Protected.).
  3247. This directive overrides the named symbols default visibility (which
  3248. is set by their binding: local, global or weak). The directive sets the
  3249. visibility to 'hidden' which means that the symbols are not visible to
  3250. other components. Such symbols are always considered to be 'protected'
  3251. as well.
  3252. 
  3253. File: as.info, Node: hword, Next: Ident, Prev: Hidden, Up: Pseudo Ops
  3254. 7.42 '.hword EXPRESSIONS'
  3255. =========================
  3256. This expects zero or more EXPRESSIONS, and emits a 16 bit number for
  3257. each.
  3258. This directive is a synonym for '.short'; depending on the target
  3259. architecture, it may also be a synonym for '.word'.
  3260. 
  3261. File: as.info, Node: Ident, Next: If, Prev: hword, Up: Pseudo Ops
  3262. 7.43 '.ident'
  3263. =============
  3264. This directive is used by some assemblers to place tags in object files.
  3265. The behavior of this directive varies depending on the target. When
  3266. using the a.out object file format, 'as' simply accepts the directive
  3267. for source-file compatibility with existing assemblers, but does not
  3268. emit anything for it. When using COFF, comments are emitted to the
  3269. '.comment' or '.rdata' section, depending on the target. When using
  3270. ELF, comments are emitted to the '.comment' section.
  3271. 
  3272. File: as.info, Node: If, Next: Incbin, Prev: Ident, Up: Pseudo Ops
  3273. 7.44 '.if ABSOLUTE EXPRESSION'
  3274. ==============================
  3275. '.if' marks the beginning of a section of code which is only considered
  3276. part of the source program being assembled if the argument (which must
  3277. be an ABSOLUTE EXPRESSION) is non-zero. The end of the conditional
  3278. section of code must be marked by '.endif' (*note '.endif': Endif.);
  3279. optionally, you may include code for the alternative condition, flagged
  3280. by '.else' (*note '.else': Else.). If you have several conditions to
  3281. check, '.elseif' may be used to avoid nesting blocks if/else within each
  3282. subsequent '.else' block.
  3283. The following variants of '.if' are also supported:
  3284. '.ifdef SYMBOL'
  3285. Assembles the following section of code if the specified SYMBOL has
  3286. been defined. Note a symbol which has been referenced but not yet
  3287. defined is considered to be undefined.
  3288. '.ifb TEXT'
  3289. Assembles the following section of code if the operand is blank
  3290. (empty).
  3291. '.ifc STRING1,STRING2'
  3292. Assembles the following section of code if the two strings are the
  3293. same. The strings may be optionally quoted with single quotes. If
  3294. they are not quoted, the first string stops at the first comma, and
  3295. the second string stops at the end of the line. Strings which
  3296. contain whitespace should be quoted. The string comparison is case
  3297. sensitive.
  3298. '.ifeq ABSOLUTE EXPRESSION'
  3299. Assembles the following section of code if the argument is zero.
  3300. '.ifeqs STRING1,STRING2'
  3301. Another form of '.ifc'. The strings must be quoted using double
  3302. quotes.
  3303. '.ifge ABSOLUTE EXPRESSION'
  3304. Assembles the following section of code if the argument is greater
  3305. than or equal to zero.
  3306. '.ifgt ABSOLUTE EXPRESSION'
  3307. Assembles the following section of code if the argument is greater
  3308. than zero.
  3309. '.ifle ABSOLUTE EXPRESSION'
  3310. Assembles the following section of code if the argument is less
  3311. than or equal to zero.
  3312. '.iflt ABSOLUTE EXPRESSION'
  3313. Assembles the following section of code if the argument is less
  3314. than zero.
  3315. '.ifnb TEXT'
  3316. Like '.ifb', but the sense of the test is reversed: this assembles
  3317. the following section of code if the operand is non-blank
  3318. (non-empty).
  3319. '.ifnc STRING1,STRING2.'
  3320. Like '.ifc', but the sense of the test is reversed: this assembles
  3321. the following section of code if the two strings are not the same.
  3322. '.ifndef SYMBOL'
  3323. '.ifnotdef SYMBOL'
  3324. Assembles the following section of code if the specified SYMBOL has
  3325. not been defined. Both spelling variants are equivalent. Note a
  3326. symbol which has been referenced but not yet defined is considered
  3327. to be undefined.
  3328. '.ifne ABSOLUTE EXPRESSION'
  3329. Assembles the following section of code if the argument is not
  3330. equal to zero (in other words, this is equivalent to '.if').
  3331. '.ifnes STRING1,STRING2'
  3332. Like '.ifeqs', but the sense of the test is reversed: this
  3333. assembles the following section of code if the two strings are not
  3334. the same.
  3335. 
  3336. File: as.info, Node: Incbin, Next: Include, Prev: If, Up: Pseudo Ops
  3337. 7.45 '.incbin "FILE"[,SKIP[,COUNT]]'
  3338. ====================================
  3339. The 'incbin' directive includes FILE verbatim at the current location.
  3340. You can control the search paths used with the '-I' command-line option
  3341. (*note Command-Line Options: Invoking.). Quotation marks are required
  3342. around FILE.
  3343. The SKIP argument skips a number of bytes from the start of the FILE.
  3344. The COUNT argument indicates the maximum number of bytes to read. Note
  3345. that the data is not aligned in any way, so it is the user's
  3346. responsibility to make sure that proper alignment is provided both
  3347. before and after the 'incbin' directive.
  3348. 
  3349. File: as.info, Node: Include, Next: Int, Prev: Incbin, Up: Pseudo Ops
  3350. 7.46 '.include "FILE"'
  3351. ======================
  3352. This directive provides a way to include supporting files at specified
  3353. points in your source program. The code from FILE is assembled as if it
  3354. followed the point of the '.include'; when the end of the included file
  3355. is reached, assembly of the original file continues. You can control
  3356. the search paths used with the '-I' command-line option (*note
  3357. Command-Line Options: Invoking.). Quotation marks are required around
  3358. FILE.
  3359. 
  3360. File: as.info, Node: Int, Next: Internal, Prev: Include, Up: Pseudo Ops
  3361. 7.47 '.int EXPRESSIONS'
  3362. =======================
  3363. Expect zero or more EXPRESSIONS, of any section, separated by commas.
  3364. For each expression, emit a number that, at run time, is the value of
  3365. that expression. The byte order and bit size of the number depends on
  3366. what kind of target the assembly is for.
  3367. 
  3368. File: as.info, Node: Internal, Next: Irp, Prev: Int, Up: Pseudo Ops
  3369. 7.48 '.internal NAMES'
  3370. ======================
  3371. This is one of the ELF visibility directives. The other two are
  3372. '.hidden' (*note '.hidden': Hidden.) and '.protected' (*note
  3373. '.protected': Protected.).
  3374. This directive overrides the named symbols default visibility (which
  3375. is set by their binding: local, global or weak). The directive sets the
  3376. visibility to 'internal' which means that the symbols are considered to
  3377. be 'hidden' (i.e., not visible to other components), and that some
  3378. extra, processor specific processing must also be performed upon the
  3379. symbols as well.
  3380. 
  3381. File: as.info, Node: Irp, Next: Irpc, Prev: Internal, Up: Pseudo Ops
  3382. 7.49 '.irp SYMBOL,VALUES'...
  3383. ============================
  3384. Evaluate a sequence of statements assigning different values to SYMBOL.
  3385. The sequence of statements starts at the '.irp' directive, and is
  3386. terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
  3387. VALUE, and the sequence of statements is assembled. If no VALUE is
  3388. listed, the sequence of statements is assembled once, with SYMBOL set to
  3389. the null string. To refer to SYMBOL within the sequence of statements,
  3390. use \SYMBOL.
  3391. For example, assembling
  3392. .irp param,1,2,3
  3393. move d\param,sp@-
  3394. .endr
  3395. is equivalent to assembling
  3396. move d1,sp@-
  3397. move d2,sp@-
  3398. move d3,sp@-
  3399. For some caveats with the spelling of SYMBOL, see also *note Macro::.
  3400. 
  3401. File: as.info, Node: Irpc, Next: Lcomm, Prev: Irp, Up: Pseudo Ops
  3402. 7.50 '.irpc SYMBOL,VALUES'...
  3403. =============================
  3404. Evaluate a sequence of statements assigning different values to SYMBOL.
  3405. The sequence of statements starts at the '.irpc' directive, and is
  3406. terminated by an '.endr' directive. For each character in VALUE, SYMBOL
  3407. is set to the character, and the sequence of statements is assembled.
  3408. If no VALUE is listed, the sequence of statements is assembled once,
  3409. with SYMBOL set to the null string. To refer to SYMBOL within the
  3410. sequence of statements, use \SYMBOL.
  3411. For example, assembling
  3412. .irpc param,123
  3413. move d\param,sp@-
  3414. .endr
  3415. is equivalent to assembling
  3416. move d1,sp@-
  3417. move d2,sp@-
  3418. move d3,sp@-
  3419. For some caveats with the spelling of SYMBOL, see also the discussion
  3420. at *Note Macro::.
  3421. 
  3422. File: as.info, Node: Lcomm, Next: Lflags, Prev: Irpc, Up: Pseudo Ops
  3423. 7.51 '.lcomm SYMBOL , LENGTH'
  3424. =============================
  3425. Reserve LENGTH (an absolute expression) bytes for a local common denoted
  3426. by SYMBOL. The section and value of SYMBOL are those of the new local
  3427. common. The addresses are allocated in the bss section, so that at
  3428. run-time the bytes start off zeroed. SYMBOL is not declared global
  3429. (*note '.global': Global.), so is normally not visible to 'ld'.
  3430. Some targets permit a third argument to be used with '.lcomm'. This
  3431. argument specifies the desired alignment of the symbol in the bss
  3432. section.
  3433. The syntax for '.lcomm' differs slightly on the HPPA. The syntax is
  3434. 'SYMBOL .lcomm, LENGTH'; SYMBOL is optional.
  3435. 
  3436. File: as.info, Node: Lflags, Next: Line, Prev: Lcomm, Up: Pseudo Ops
  3437. 7.52 '.lflags'
  3438. ==============
  3439. 'as' accepts this directive, for compatibility with other assemblers,
  3440. but ignores it.
  3441. 
  3442. File: as.info, Node: Line, Next: Linkonce, Prev: Lflags, Up: Pseudo Ops
  3443. 7.53 '.line LINE-NUMBER'
  3444. ========================
  3445. Change the logical line number. LINE-NUMBER must be an absolute
  3446. expression. The next line has that logical line number. Therefore any
  3447. other statements on the current line (after a statement separator
  3448. character) are reported as on logical line number LINE-NUMBER - 1. One
  3449. day 'as' will no longer support this directive: it is recognized only
  3450. for compatibility with existing assembler programs.
  3451. Even though this is a directive associated with the 'a.out' or
  3452. 'b.out' object-code formats, 'as' still recognizes it when producing
  3453. COFF output, and treats '.line' as though it were the COFF '.ln' _if_ it
  3454. is found outside a '.def'/'.endef' pair.
  3455. Inside a '.def', '.line' is, instead, one of the directives used by
  3456. compilers to generate auxiliary symbol information for debugging.
  3457. 
  3458. File: as.info, Node: Linkonce, Next: List, Prev: Line, Up: Pseudo Ops
  3459. 7.54 '.linkonce [TYPE]'
  3460. =======================
  3461. Mark the current section so that the linker only includes a single copy
  3462. of it. This may be used to include the same section in several
  3463. different object files, but ensure that the linker will only include it
  3464. once in the final output file. The '.linkonce' pseudo-op must be used
  3465. for each instance of the section. Duplicate sections are detected based
  3466. on the section name, so it should be unique.
  3467. This directive is only supported by a few object file formats; as of
  3468. this writing, the only object file format which supports it is the
  3469. Portable Executable format used on Windows NT.
  3470. The TYPE argument is optional. If specified, it must be one of the
  3471. following strings. For example:
  3472. .linkonce same_size
  3473. Not all types may be supported on all object file formats.
  3474. 'discard'
  3475. Silently discard duplicate sections. This is the default.
  3476. 'one_only'
  3477. Warn if there are duplicate sections, but still keep only one copy.
  3478. 'same_size'
  3479. Warn if any of the duplicates have different sizes.
  3480. 'same_contents'
  3481. Warn if any of the duplicates do not have exactly the same
  3482. contents.
  3483. 
  3484. File: as.info, Node: List, Next: Ln, Prev: Linkonce, Up: Pseudo Ops
  3485. 7.55 '.list'
  3486. ============
  3487. Control (in conjunction with the '.nolist' directive) whether or not
  3488. assembly listings are generated. These two directives maintain an
  3489. internal counter (which is zero initially). '.list' increments the
  3490. counter, and '.nolist' decrements it. Assembly listings are generated
  3491. whenever the counter is greater than zero.
  3492. By default, listings are disabled. When you enable them (with the
  3493. '-a' command-line option; *note Command-Line Options: Invoking.), the
  3494. initial value of the listing counter is one.
  3495. 
  3496. File: as.info, Node: Ln, Next: Loc, Prev: List, Up: Pseudo Ops
  3497. 7.56 '.ln LINE-NUMBER'
  3498. ======================
  3499. '.ln' is a synonym for '.line'.
  3500. 
  3501. File: as.info, Node: Loc, Next: Loc_mark_labels, Prev: Ln, Up: Pseudo Ops
  3502. 7.57 '.loc FILENO LINENO [COLUMN] [OPTIONS]'
  3503. ============================================
  3504. When emitting DWARF2 line number information, the '.loc' directive will
  3505. add a row to the '.debug_line' line number matrix corresponding to the
  3506. immediately following assembly instruction. The FILENO, LINENO, and
  3507. optional COLUMN arguments will be applied to the '.debug_line' state
  3508. machine before the row is added.
  3509. The OPTIONS are a sequence of the following tokens in any order:
  3510. 'basic_block'
  3511. This option will set the 'basic_block' register in the
  3512. '.debug_line' state machine to 'true'.
  3513. 'prologue_end'
  3514. This option will set the 'prologue_end' register in the
  3515. '.debug_line' state machine to 'true'.
  3516. 'epilogue_begin'
  3517. This option will set the 'epilogue_begin' register in the
  3518. '.debug_line' state machine to 'true'.
  3519. 'is_stmt VALUE'
  3520. This option will set the 'is_stmt' register in the '.debug_line'
  3521. state machine to 'value', which must be either 0 or 1.
  3522. 'isa VALUE'
  3523. This directive will set the 'isa' register in the '.debug_line'
  3524. state machine to VALUE, which must be an unsigned integer.
  3525. 'discriminator VALUE'
  3526. This directive will set the 'discriminator' register in the
  3527. '.debug_line' state machine to VALUE, which must be an unsigned
  3528. integer.
  3529. 'view VALUE'
  3530. This option causes a row to be added to '.debug_line' in reference
  3531. to the current address (which might not be the same as that of the
  3532. following assembly instruction), and to associate VALUE with the
  3533. 'view' register in the '.debug_line' state machine. If VALUE is a
  3534. label, both the 'view' register and the label are set to the number
  3535. of prior '.loc' directives at the same program location. If VALUE
  3536. is the literal '0', the 'view' register is set to zero, and the
  3537. assembler asserts that there aren't any prior '.loc' directives at
  3538. the same program location. If VALUE is the literal '-0', the
  3539. assembler arrange for the 'view' register to be reset in this row,
  3540. even if there are prior '.loc' directives at the same program
  3541. location.
  3542. 
  3543. File: as.info, Node: Loc_mark_labels, Next: Local, Prev: Loc, Up: Pseudo Ops
  3544. 7.58 '.loc_mark_labels ENABLE'
  3545. ==============================
  3546. When emitting DWARF2 line number information, the '.loc_mark_labels'
  3547. directive makes the assembler emit an entry to the '.debug_line' line
  3548. number matrix with the 'basic_block' register in the state machine set
  3549. whenever a code label is seen. The ENABLE argument should be either 1
  3550. or 0, to enable or disable this function respectively.
  3551. 
  3552. File: as.info, Node: Local, Next: Long, Prev: Loc_mark_labels, Up: Pseudo Ops
  3553. 7.59 '.local NAMES'
  3554. ===================
  3555. This directive, which is available for ELF targets, marks each symbol in
  3556. the comma-separated list of 'names' as a local symbol so that it will
  3557. not be externally visible. If the symbols do not already exist, they
  3558. will be created.
  3559. For targets where the '.lcomm' directive (*note Lcomm::) does not
  3560. accept an alignment argument, which is the case for most ELF targets,
  3561. the '.local' directive can be used in combination with '.comm' (*note
  3562. Comm::) to define aligned local common data.
  3563. 
  3564. File: as.info, Node: Long, Next: Macro, Prev: Local, Up: Pseudo Ops
  3565. 7.60 '.long EXPRESSIONS'
  3566. ========================
  3567. '.long' is the same as '.int'. *Note '.int': Int.
  3568. 
  3569. File: as.info, Node: Macro, Next: MRI, Prev: Long, Up: Pseudo Ops
  3570. 7.61 '.macro'
  3571. =============
  3572. The commands '.macro' and '.endm' allow you to define macros that
  3573. generate assembly output. For example, this definition specifies a
  3574. macro 'sum' that puts a sequence of numbers into memory:
  3575. .macro sum from=0, to=5
  3576. .long \from
  3577. .if \to-\from
  3578. sum "(\from+1)",\to
  3579. .endif
  3580. .endm
  3581. With that definition, 'SUM 0,5' is equivalent to this assembly input:
  3582. .long 0
  3583. .long 1
  3584. .long 2
  3585. .long 3
  3586. .long 4
  3587. .long 5
  3588. '.macro MACNAME'
  3589. '.macro MACNAME MACARGS ...'
  3590. Begin the definition of a macro called MACNAME. If your macro
  3591. definition requires arguments, specify their names after the macro
  3592. name, separated by commas or spaces. You can qualify the macro
  3593. argument to indicate whether all invocations must specify a
  3594. non-blank value (through ':'req''), or whether it takes all of the
  3595. remaining arguments (through ':'vararg''). You can supply a
  3596. default value for any macro argument by following the name with
  3597. '=DEFLT'. You cannot define two macros with the same MACNAME
  3598. unless it has been subject to the '.purgem' directive (*note
  3599. Purgem::) between the two definitions. For example, these are all
  3600. valid '.macro' statements:
  3601. '.macro comm'
  3602. Begin the definition of a macro called 'comm', which takes no
  3603. arguments.
  3604. '.macro plus1 p, p1'
  3605. '.macro plus1 p p1'
  3606. Either statement begins the definition of a macro called
  3607. 'plus1', which takes two arguments; within the macro
  3608. definition, write '\p' or '\p1' to evaluate the arguments.
  3609. '.macro reserve_str p1=0 p2'
  3610. Begin the definition of a macro called 'reserve_str', with two
  3611. arguments. The first argument has a default value, but not
  3612. the second. After the definition is complete, you can call
  3613. the macro either as 'reserve_str A,B' (with '\p1' evaluating
  3614. to A and '\p2' evaluating to B), or as 'reserve_str ,B' (with
  3615. '\p1' evaluating as the default, in this case '0', and '\p2'
  3616. evaluating to B).
  3617. '.macro m p1:req, p2=0, p3:vararg'
  3618. Begin the definition of a macro called 'm', with at least
  3619. three arguments. The first argument must always have a value
  3620. specified, but not the second, which instead has a default
  3621. value. The third formal will get assigned all remaining
  3622. arguments specified at invocation time.
  3623. When you call a macro, you can specify the argument values
  3624. either by position, or by keyword. For example, 'sum 9,17' is
  3625. equivalent to 'sum to=17, from=9'.
  3626. Note that since each of the MACARGS can be an identifier exactly as
  3627. any other one permitted by the target architecture, there may be
  3628. occasional problems if the target hand-crafts special meanings to
  3629. certain characters when they occur in a special position. For
  3630. example, if the colon (':') is generally permitted to be part of a
  3631. symbol name, but the architecture specific code special-cases it
  3632. when occurring as the final character of a symbol (to denote a
  3633. label), then the macro parameter replacement code will have no way
  3634. of knowing that and consider the whole construct (including the
  3635. colon) an identifier, and check only this identifier for being the
  3636. subject to parameter substitution. So for example this macro
  3637. definition:
  3638. .macro label l
  3639. \l:
  3640. .endm
  3641. might not work as expected. Invoking 'label foo' might not create
  3642. a label called 'foo' but instead just insert the text '\l:' into
  3643. the assembler source, probably generating an error about an
  3644. unrecognised identifier.
  3645. Similarly problems might occur with the period character ('.')
  3646. which is often allowed inside opcode names (and hence identifier
  3647. names). So for example constructing a macro to build an opcode
  3648. from a base name and a length specifier like this:
  3649. .macro opcode base length
  3650. \base.\length
  3651. .endm
  3652. and invoking it as 'opcode store l' will not create a 'store.l'
  3653. instruction but instead generate some kind of error as the
  3654. assembler tries to interpret the text '\base.\length'.
  3655. There are several possible ways around this problem:
  3656. 'Insert white space'
  3657. If it is possible to use white space characters then this is
  3658. the simplest solution. eg:
  3659. .macro label l
  3660. \l :
  3661. .endm
  3662. 'Use '\()''
  3663. The string '\()' can be used to separate the end of a macro
  3664. argument from the following text. eg:
  3665. .macro opcode base length
  3666. \base\().\length
  3667. .endm
  3668. 'Use the alternate macro syntax mode'
  3669. In the alternative macro syntax mode the ampersand character
  3670. ('&') can be used as a separator. eg:
  3671. .altmacro
  3672. .macro label l
  3673. l&:
  3674. .endm
  3675. Note: this problem of correctly identifying string parameters to
  3676. pseudo ops also applies to the identifiers used in '.irp' (*note
  3677. Irp::) and '.irpc' (*note Irpc::) as well.
  3678. '.endm'
  3679. Mark the end of a macro definition.
  3680. '.exitm'
  3681. Exit early from the current macro definition.
  3682. '\@'
  3683. 'as' maintains a counter of how many macros it has executed in this
  3684. pseudo-variable; you can copy that number to your output with '\@',
  3685. but _only within a macro definition_.
  3686. 'LOCAL NAME [ , ... ]'
  3687. _Warning: 'LOCAL' is only available if you select "alternate macro
  3688. syntax" with '--alternate' or '.altmacro'._ *Note '.altmacro':
  3689. Altmacro.
  3690. 
  3691. File: as.info, Node: MRI, Next: Noaltmacro, Prev: Macro, Up: Pseudo Ops
  3692. 7.62 '.mri VAL'
  3693. ===============
  3694. If VAL is non-zero, this tells 'as' to enter MRI mode. If VAL is zero,
  3695. this tells 'as' to exit MRI mode. This change affects code assembled
  3696. until the next '.mri' directive, or until the end of the file. *Note
  3697. MRI mode: M.
  3698. 
  3699. File: as.info, Node: Noaltmacro, Next: Nolist, Prev: MRI, Up: Pseudo Ops
  3700. 7.63 '.noaltmacro'
  3701. ==================
  3702. Disable alternate macro mode. *Note Altmacro::.
  3703. 
  3704. File: as.info, Node: Nolist, Next: Nops, Prev: Noaltmacro, Up: Pseudo Ops
  3705. 7.64 '.nolist'
  3706. ==============
  3707. Control (in conjunction with the '.list' directive) whether or not
  3708. assembly listings are generated. These two directives maintain an
  3709. internal counter (which is zero initially). '.list' increments the
  3710. counter, and '.nolist' decrements it. Assembly listings are generated
  3711. whenever the counter is greater than zero.
  3712. 
  3713. File: as.info, Node: Nops, Next: Octa, Prev: Nolist, Up: Pseudo Ops
  3714. 7.65 '.nops SIZE[, CONTROL]'
  3715. ============================
  3716. This directive emits SIZE bytes filled with no-op instructions. SIZE is
  3717. absolute expression, which must be a positve value. CONTROL controls
  3718. how no-op instructions should be generated. If the comma and CONTROL
  3719. are omitted, CONTROL is assumed to be zero.
  3720. Note: For Intel 80386 and AMD x86-64 targets, CONTROL specifies the
  3721. size limit of a no-op instruction. The valid values of CONTROL are
  3722. between 0 and 4 in 16-bit mode, between 0 and 7 when tuning for older
  3723. processors in 32-bit mode, between 0 and 11 in 64-bit mode or when
  3724. tuning for newer processors in 32-bit mode. When 0 is used, the no-op
  3725. instruction size limit is set to the maximum supported size.
  3726. 
  3727. File: as.info, Node: Octa, Next: Offset, Prev: Nops, Up: Pseudo Ops
  3728. 7.66 '.octa BIGNUMS'
  3729. ====================
  3730. This directive expects zero or more bignums, separated by commas. For
  3731. each bignum, it emits a 16-byte integer.
  3732. The term "octa" comes from contexts in which a "word" is two bytes;
  3733. hence _octa_-word for 16 bytes.
  3734. 
  3735. File: as.info, Node: Offset, Next: Org, Prev: Octa, Up: Pseudo Ops
  3736. 7.67 '.offset LOC'
  3737. ==================
  3738. Set the location counter to LOC in the absolute section. LOC must be an
  3739. absolute expression. This directive may be useful for defining symbols
  3740. with absolute values. Do not confuse it with the '.org' directive.
  3741. 
  3742. File: as.info, Node: Org, Next: P2align, Prev: Offset, Up: Pseudo Ops
  3743. 7.68 '.org NEW-LC , FILL'
  3744. =========================
  3745. Advance the location counter of the current section to NEW-LC. NEW-LC
  3746. is either an absolute expression or an expression with the same section
  3747. as the current subsection. That is, you can't use '.org' to cross
  3748. sections: if NEW-LC has the wrong section, the '.org' directive is
  3749. ignored. To be compatible with former assemblers, if the section of
  3750. NEW-LC is absolute, 'as' issues a warning, then pretends the section of
  3751. NEW-LC is the same as the current subsection.
  3752. '.org' may only increase the location counter, or leave it unchanged;
  3753. you cannot use '.org' to move the location counter backwards.
  3754. Because 'as' tries to assemble programs in one pass, NEW-LC may not
  3755. be undefined. If you really detest this restriction we eagerly await a
  3756. chance to share your improved assembler.
  3757. Beware that the origin is relative to the start of the section, not
  3758. to the start of the subsection. This is compatible with other people's
  3759. assemblers.
  3760. When the location counter (of the current subsection) is advanced,
  3761. the intervening bytes are filled with FILL which should be an absolute
  3762. expression. If the comma and FILL are omitted, FILL defaults to zero.
  3763. 
  3764. File: as.info, Node: P2align, Next: PopSection, Prev: Org, Up: Pseudo Ops
  3765. 7.69 '.p2align[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR'
  3766. ================================================
  3767. Pad the location counter (in the current subsection) to a particular
  3768. storage boundary. The first expression (which must be absolute) is the
  3769. number of low-order zero bits the location counter must have after
  3770. advancement. For example '.p2align 3' advances the location counter
  3771. until it a multiple of 8. If the location counter is already a multiple
  3772. of 8, no change is needed.
  3773. The second expression (also absolute) gives the fill value to be
  3774. stored in the padding bytes. It (and the comma) may be omitted. If it
  3775. is omitted, the padding bytes are normally zero. However, on most
  3776. systems, if the section is marked as containing code and the fill value
  3777. is omitted, the space is filled with no-op instructions.
  3778. The third expression is also absolute, and is also optional. If it
  3779. is present, it is the maximum number of bytes that should be skipped by
  3780. this alignment directive. If doing the alignment would require skipping
  3781. more bytes than the specified maximum, then the alignment is not done at
  3782. all. You can omit the fill value (the second argument) entirely by
  3783. simply using two commas after the required alignment; this can be useful
  3784. if you want the alignment to be filled with no-op instructions when
  3785. appropriate.
  3786. The '.p2alignw' and '.p2alignl' directives are variants of the
  3787. '.p2align' directive. The '.p2alignw' directive treats the fill pattern
  3788. as a two byte word value. The '.p2alignl' directives treats the fill
  3789. pattern as a four byte longword value. For example, '.p2alignw
  3790. 2,0x368d' will align to a multiple of 4. If it skips two bytes, they
  3791. will be filled in with the value 0x368d (the exact placement of the
  3792. bytes depends upon the endianness of the processor). If it skips 1 or 3
  3793. bytes, the fill value is undefined.
  3794. 
  3795. File: as.info, Node: PopSection, Next: Previous, Prev: P2align, Up: Pseudo Ops
  3796. 7.70 '.popsection'
  3797. ==================
  3798. This is one of the ELF section stack manipulation directives. The
  3799. others are '.section' (*note Section::), '.subsection' (*note
  3800. SubSection::), '.pushsection' (*note PushSection::), and '.previous'
  3801. (*note Previous::).
  3802. This directive replaces the current section (and subsection) with the
  3803. top section (and subsection) on the section stack. This section is
  3804. popped off the stack.
  3805. 
  3806. File: as.info, Node: Previous, Next: Print, Prev: PopSection, Up: Pseudo Ops
  3807. 7.71 '.previous'
  3808. ================
  3809. This is one of the ELF section stack manipulation directives. The
  3810. others are '.section' (*note Section::), '.subsection' (*note
  3811. SubSection::), '.pushsection' (*note PushSection::), and '.popsection'
  3812. (*note PopSection::).
  3813. This directive swaps the current section (and subsection) with most
  3814. recently referenced section/subsection pair prior to this one. Multiple
  3815. '.previous' directives in a row will flip between two sections (and
  3816. their subsections). For example:
  3817. .section A
  3818. .subsection 1
  3819. .word 0x1234
  3820. .subsection 2
  3821. .word 0x5678
  3822. .previous
  3823. .word 0x9abc
  3824. Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
  3825. subsection 2 of section A. Whilst:
  3826. .section A
  3827. .subsection 1
  3828. # Now in section A subsection 1
  3829. .word 0x1234
  3830. .section B
  3831. .subsection 0
  3832. # Now in section B subsection 0
  3833. .word 0x5678
  3834. .subsection 1
  3835. # Now in section B subsection 1
  3836. .word 0x9abc
  3837. .previous
  3838. # Now in section B subsection 0
  3839. .word 0xdef0
  3840. Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
  3841. of section B and 0x9abc into subsection 1 of section B.
  3842. In terms of the section stack, this directive swaps the current
  3843. section with the top section on the section stack.
  3844. 
  3845. File: as.info, Node: Print, Next: Protected, Prev: Previous, Up: Pseudo Ops
  3846. 7.72 '.print STRING'
  3847. ====================
  3848. 'as' will print STRING on the standard output during assembly. You must
  3849. put STRING in double quotes.
  3850. 
  3851. File: as.info, Node: Protected, Next: Psize, Prev: Print, Up: Pseudo Ops
  3852. 7.73 '.protected NAMES'
  3853. =======================
  3854. This is one of the ELF visibility directives. The other two are
  3855. '.hidden' (*note Hidden::) and '.internal' (*note Internal::).
  3856. This directive overrides the named symbols default visibility (which
  3857. is set by their binding: local, global or weak). The directive sets the
  3858. visibility to 'protected' which means that any references to the symbols
  3859. from within the components that defines them must be resolved to the
  3860. definition in that component, even if a definition in another component
  3861. would normally preempt this.
  3862. 
  3863. File: as.info, Node: Psize, Next: Purgem, Prev: Protected, Up: Pseudo Ops
  3864. 7.74 '.psize LINES , COLUMNS'
  3865. =============================
  3866. Use this directive to declare the number of lines--and, optionally, the
  3867. number of columns--to use for each page, when generating listings.
  3868. If you do not use '.psize', listings use a default line-count of 60.
  3869. You may omit the comma and COLUMNS specification; the default width is
  3870. 200 columns.
  3871. 'as' generates formfeeds whenever the specified number of lines is
  3872. exceeded (or whenever you explicitly request one, using '.eject').
  3873. If you specify LINES as '0', no formfeeds are generated save those
  3874. explicitly specified with '.eject'.
  3875. 
  3876. File: as.info, Node: Purgem, Next: PushSection, Prev: Psize, Up: Pseudo Ops
  3877. 7.75 '.purgem NAME'
  3878. ===================
  3879. Undefine the macro NAME, so that later uses of the string will not be
  3880. expanded. *Note Macro::.
  3881. 
  3882. File: as.info, Node: PushSection, Next: Quad, Prev: Purgem, Up: Pseudo Ops
  3883. 7.76 '.pushsection NAME [, SUBSECTION] [, "FLAGS"[, @TYPE[,ARGUMENTS]]]'
  3884. ========================================================================
  3885. This is one of the ELF section stack manipulation directives. The
  3886. others are '.section' (*note Section::), '.subsection' (*note
  3887. SubSection::), '.popsection' (*note PopSection::), and '.previous'
  3888. (*note Previous::).
  3889. This directive pushes the current section (and subsection) onto the
  3890. top of the section stack, and then replaces the current section and
  3891. subsection with 'name' and 'subsection'. The optional 'flags', 'type'
  3892. and 'arguments' are treated the same as in the '.section' (*note
  3893. Section::) directive.
  3894. 
  3895. File: as.info, Node: Quad, Next: Reloc, Prev: PushSection, Up: Pseudo Ops
  3896. 7.77 '.quad BIGNUMS'
  3897. ====================
  3898. '.quad' expects zero or more bignums, separated by commas. For each
  3899. bignum, it emits an 8-byte integer. If the bignum won't fit in 8 bytes,
  3900. it prints a warning message; and just takes the lowest order 8 bytes of
  3901. the bignum.
  3902. The term "quad" comes from contexts in which a "word" is two bytes;
  3903. hence _quad_-word for 8 bytes.
  3904. 
  3905. File: as.info, Node: Reloc, Next: Rept, Prev: Quad, Up: Pseudo Ops
  3906. 7.78 '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  3907. ==============================================
  3908. Generate a relocation at OFFSET of type RELOC_NAME with value
  3909. EXPRESSION. If OFFSET is a number, the relocation is generated in the
  3910. current section. If OFFSET is an expression that resolves to a symbol
  3911. plus offset, the relocation is generated in the given symbol's section.
  3912. EXPRESSION, if present, must resolve to a symbol plus addend or to an
  3913. absolute value, but note that not all targets support an addend. e.g.
  3914. ELF REL targets such as i386 store an addend in the section contents
  3915. rather than in the relocation. This low level interface does not
  3916. support addends stored in the section.
  3917. 
  3918. File: as.info, Node: Rept, Next: Sbttl, Prev: Reloc, Up: Pseudo Ops
  3919. 7.79 '.rept COUNT'
  3920. ==================
  3921. Repeat the sequence of lines between the '.rept' directive and the next
  3922. '.endr' directive COUNT times.
  3923. For example, assembling
  3924. .rept 3
  3925. .long 0
  3926. .endr
  3927. is equivalent to assembling
  3928. .long 0
  3929. .long 0
  3930. .long 0
  3931. A count of zero is allowed, but nothing is generated. Negative
  3932. counts are not allowed and if encountered will be treated as if they
  3933. were zero.
  3934. 
  3935. File: as.info, Node: Sbttl, Next: Scl, Prev: Rept, Up: Pseudo Ops
  3936. 7.80 '.sbttl "SUBHEADING"'
  3937. ==========================
  3938. Use SUBHEADING as the title (third line, immediately after the title
  3939. line) when generating assembly listings.
  3940. This directive affects subsequent pages, as well as the current page
  3941. if it appears within ten lines of the top of a page.
  3942. 
  3943. File: as.info, Node: Scl, Next: Section, Prev: Sbttl, Up: Pseudo Ops
  3944. 7.81 '.scl CLASS'
  3945. =================
  3946. Set the storage-class value for a symbol. This directive may only be
  3947. used inside a '.def'/'.endef' pair. Storage class may flag whether a
  3948. symbol is static or external, or it may record further symbolic
  3949. debugging information.
  3950. 
  3951. File: as.info, Node: Section, Next: Set, Prev: Scl, Up: Pseudo Ops
  3952. 7.82 '.section NAME'
  3953. ====================
  3954. Use the '.section' directive to assemble the following code into a
  3955. section named NAME.
  3956. This directive is only supported for targets that actually support
  3957. arbitrarily named sections; on 'a.out' targets, for example, it is not
  3958. accepted, even with a standard 'a.out' section name.
  3959. COFF Version
  3960. ------------
  3961. For COFF targets, the '.section' directive is used in one of the
  3962. following ways:
  3963. .section NAME[, "FLAGS"]
  3964. .section NAME[, SUBSECTION]
  3965. If the optional argument is quoted, it is taken as flags to use for
  3966. the section. Each flag is a single character. The following flags are
  3967. recognized:
  3968. 'b'
  3969. bss section (uninitialized data)
  3970. 'n'
  3971. section is not loaded
  3972. 'w'
  3973. writable section
  3974. 'd'
  3975. data section
  3976. 'e'
  3977. exclude section from linking
  3978. 'r'
  3979. read-only section
  3980. 'x'
  3981. executable section
  3982. 's'
  3983. shared section (meaningful for PE targets)
  3984. 'a'
  3985. ignored. (For compatibility with the ELF version)
  3986. 'y'
  3987. section is not readable (meaningful for PE targets)
  3988. '0-9'
  3989. single-digit power-of-two section alignment (GNU extension)
  3990. If no flags are specified, the default flags depend upon the section
  3991. name. If the section name is not recognized, the default will be for
  3992. the section to be loaded and writable. Note the 'n' and 'w' flags
  3993. remove attributes from the section, rather than adding them, so if they
  3994. are used on their own it will be as if no flags had been specified at
  3995. all.
  3996. If the optional argument to the '.section' directive is not quoted,
  3997. it is taken as a subsection number (*note Sub-Sections::).
  3998. ELF Version
  3999. -----------
  4000. This is one of the ELF section stack manipulation directives. The
  4001. others are '.subsection' (*note SubSection::), '.pushsection' (*note
  4002. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4003. (*note Previous::).
  4004. For ELF targets, the '.section' directive is used like this:
  4005. .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]]
  4006. If the '--sectname-subst' command-line option is provided, the NAME
  4007. argument may contain a substitution sequence. Only '%S' is supported at
  4008. the moment, and substitutes the current section name. For example:
  4009. .macro exception_code
  4010. .section %S.exception
  4011. [exception code here]
  4012. .previous
  4013. .endm
  4014. .text
  4015. [code]
  4016. exception_code
  4017. [...]
  4018. .section .init
  4019. [init code]
  4020. exception_code
  4021. [...]
  4022. The two 'exception_code' invocations above would create the
  4023. '.text.exception' and '.init.exception' sections respectively. This is
  4024. useful e.g. to discriminate between ancillary sections that are tied to
  4025. setup code to be discarded after use from ancillary sections that need
  4026. to stay resident without having to define multiple 'exception_code'
  4027. macros just for that purpose.
  4028. The optional FLAGS argument is a quoted string which may contain any
  4029. combination of the following characters:
  4030. 'a'
  4031. section is allocatable
  4032. 'd'
  4033. section is a GNU_MBIND section
  4034. 'e'
  4035. section is excluded from executable and shared library.
  4036. 'w'
  4037. section is writable
  4038. 'x'
  4039. section is executable
  4040. 'M'
  4041. section is mergeable
  4042. 'S'
  4043. section contains zero terminated strings
  4044. 'G'
  4045. section is a member of a section group
  4046. 'T'
  4047. section is used for thread-local-storage
  4048. '?'
  4049. section is a member of the previously-current section's group, if
  4050. any
  4051. '<number>'
  4052. a numeric value indicating the bits to be set in the ELF section
  4053. header's flags field. Note - if one or more of the alphabetic
  4054. characters described above is also included in the flags field,
  4055. their bit values will be ORed into the resulting value.
  4056. '<target specific>'
  4057. some targets extend this list with their own flag characters
  4058. Note - once a section's flags have been set they cannot be changed.
  4059. There are a few exceptions to this rule however. Processor and
  4060. application specific flags can be added to an already defined section.
  4061. The '.interp', '.strtab' and '.symtab' sections can have the allocate
  4062. flag ('a') set after they are initially defined, and the
  4063. '.note-GNU-stack' section may have the executable ('x') flag added.
  4064. The optional TYPE argument may contain one of the following
  4065. constants:
  4066. '@progbits'
  4067. section contains data
  4068. '@nobits'
  4069. section does not contain data (i.e., section only occupies space)
  4070. '@note'
  4071. section contains data which is used by things other than the
  4072. program
  4073. '@init_array'
  4074. section contains an array of pointers to init functions
  4075. '@fini_array'
  4076. section contains an array of pointers to finish functions
  4077. '@preinit_array'
  4078. section contains an array of pointers to pre-init functions
  4079. '@<number>'
  4080. a numeric value to be set as the ELF section header's type field.
  4081. '@<target specific>'
  4082. some targets extend this list with their own types
  4083. Many targets only support the first three section types. The type
  4084. may be enclosed in double quotes if necessary.
  4085. Note on targets where the '@' character is the start of a comment (eg
  4086. ARM) then another character is used instead. For example the ARM port
  4087. uses the '%' character.
  4088. Note - some sections, eg '.text' and '.data' are considered to be
  4089. special and have fixed types. Any attempt to declare them with a
  4090. different type will generate an error from the assembler.
  4091. If FLAGS contains the 'M' symbol then the TYPE argument must be
  4092. specified as well as an extra argument--ENTSIZE--like this:
  4093. .section NAME , "FLAGS"M, @TYPE, ENTSIZE
  4094. Sections with the 'M' flag but not 'S' flag must contain fixed size
  4095. constants, each ENTSIZE octets long. Sections with both 'M' and 'S'
  4096. must contain zero terminated strings where each character is ENTSIZE
  4097. bytes long. The linker may remove duplicates within sections with the
  4098. same name, same entity size and same flags. ENTSIZE must be an absolute
  4099. expression. For sections with both 'M' and 'S', a string which is a
  4100. suffix of a larger string is considered a duplicate. Thus '"def"' will
  4101. be merged with '"abcdef"'; A reference to the first '"def"' will be
  4102. changed to a reference to '"abcdef"+3'.
  4103. If FLAGS contains the 'G' symbol then the TYPE argument must be
  4104. present along with an additional field like this:
  4105. .section NAME , "FLAGS"G, @TYPE, GROUPNAME[, LINKAGE]
  4106. The GROUPNAME field specifies the name of the section group to which
  4107. this particular section belongs. The optional linkage field can
  4108. contain:
  4109. 'comdat'
  4110. indicates that only one copy of this section should be retained
  4111. '.gnu.linkonce'
  4112. an alias for comdat
  4113. Note: if both the M and G flags are present then the fields for the
  4114. Merge flag should come first, like this:
  4115. .section NAME , "FLAGS"MG, @TYPE, ENTSIZE, GROUPNAME[, LINKAGE]
  4116. If FLAGS contains the '?' symbol then it may not also contain the 'G'
  4117. symbol and the GROUPNAME or LINKAGE fields should not be present.
  4118. Instead, '?' says to consider the section that's current before this
  4119. directive. If that section used 'G', then the new section will use 'G'
  4120. with those same GROUPNAME and LINKAGE fields implicitly. If not, then
  4121. the '?' symbol has no effect.
  4122. If no flags are specified, the default flags depend upon the section
  4123. name. If the section name is not recognized, the default will be for
  4124. the section to have none of the above flags: it will not be allocated in
  4125. memory, nor writable, nor executable. The section will contain data.
  4126. For ELF targets, the assembler supports another type of '.section'
  4127. directive for compatibility with the Solaris assembler:
  4128. .section "NAME"[, FLAGS...]
  4129. Note that the section name is quoted. There may be a sequence of
  4130. comma separated flags:
  4131. '#alloc'
  4132. section is allocatable
  4133. '#write'
  4134. section is writable
  4135. '#execinstr'
  4136. section is executable
  4137. '#exclude'
  4138. section is excluded from executable and shared library.
  4139. '#tls'
  4140. section is used for thread local storage
  4141. This directive replaces the current section and subsection. See the
  4142. contents of the gas testsuite directory 'gas/testsuite/gas/elf' for some
  4143. examples of how this directive and the other section stack directives
  4144. work.
  4145. 
  4146. File: as.info, Node: Set, Next: Short, Prev: Section, Up: Pseudo Ops
  4147. 7.83 '.set SYMBOL, EXPRESSION'
  4148. ==============================
  4149. Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
  4150. type to conform to EXPRESSION. If SYMBOL was flagged as external, it
  4151. remains flagged (*note Symbol Attributes::).
  4152. You may '.set' a symbol many times in the same assembly provided that
  4153. the values given to the symbol are constants. Values that are based on
  4154. expressions involving other symbols are allowed, but some targets may
  4155. restrict this to only being done once per assembly. This is because
  4156. those targets do not set the addresses of symbols at assembly time, but
  4157. rather delay the assignment until a final link is performed. This
  4158. allows the linker a chance to change the code in the files, changing the
  4159. location of, and the relative distance between, various different
  4160. symbols.
  4161. If you '.set' a global symbol, the value stored in the object file is
  4162. the last value stored into it.
  4163. On Z80 'set' is a real instruction, use 'SYMBOL defl EXPRESSION'
  4164. instead.
  4165. 
  4166. File: as.info, Node: Short, Next: Single, Prev: Set, Up: Pseudo Ops
  4167. 7.84 '.short EXPRESSIONS'
  4168. =========================
  4169. '.short' is normally the same as '.word'. *Note '.word': Word.
  4170. In some configurations, however, '.short' and '.word' generate
  4171. numbers of different lengths. *Note Machine Dependencies::.
  4172. 
  4173. File: as.info, Node: Single, Next: Size, Prev: Short, Up: Pseudo Ops
  4174. 7.85 '.single FLONUMS'
  4175. ======================
  4176. This directive assembles zero or more flonums, separated by commas. It
  4177. has the same effect as '.float'. The exact kind of floating point
  4178. numbers emitted depends on how 'as' is configured. *Note Machine
  4179. Dependencies::.
  4180. 
  4181. File: as.info, Node: Size, Next: Skip, Prev: Single, Up: Pseudo Ops
  4182. 7.86 '.size'
  4183. ============
  4184. This directive is used to set the size associated with a symbol.
  4185. COFF Version
  4186. ------------
  4187. For COFF targets, the '.size' directive is only permitted inside
  4188. '.def'/'.endef' pairs. It is used like this:
  4189. .size EXPRESSION
  4190. ELF Version
  4191. -----------
  4192. For ELF targets, the '.size' directive is used like this:
  4193. .size NAME , EXPRESSION
  4194. This directive sets the size associated with a symbol NAME. The size
  4195. in bytes is computed from EXPRESSION which can make use of label
  4196. arithmetic. This directive is typically used to set the size of
  4197. function symbols.
  4198. 
  4199. File: as.info, Node: Skip, Next: Sleb128, Prev: Size, Up: Pseudo Ops
  4200. 7.87 '.skip SIZE [,FILL]'
  4201. =========================
  4202. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4203. are absolute expressions. If the comma and FILL are omitted, FILL is
  4204. assumed to be zero. This is the same as '.space'.
  4205. 
  4206. File: as.info, Node: Sleb128, Next: Space, Prev: Skip, Up: Pseudo Ops
  4207. 7.88 '.sleb128 EXPRESSIONS'
  4208. ===========================
  4209. SLEB128 stands for "signed little endian base 128." This is a compact,
  4210. variable length representation of numbers used by the DWARF symbolic
  4211. debugging format. *Note '.uleb128': Uleb128.
  4212. 
  4213. File: as.info, Node: Space, Next: Stab, Prev: Sleb128, Up: Pseudo Ops
  4214. 7.89 '.space SIZE [,FILL]'
  4215. ==========================
  4216. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4217. are absolute expressions. If the comma and FILL are omitted, FILL is
  4218. assumed to be zero. This is the same as '.skip'.
  4219. _Warning:_ '.space' has a completely different meaning for HPPA
  4220. targets; use '.block' as a substitute. See 'HP9000 Series 800
  4221. Assembly Language Reference Manual' (HP 92432-90001) for the
  4222. meaning of the '.space' directive. *Note HPPA Assembler
  4223. Directives: HPPA Directives, for a summary.
  4224. 
  4225. File: as.info, Node: Stab, Next: String, Prev: Space, Up: Pseudo Ops
  4226. 7.90 '.stabd, .stabn, .stabs'
  4227. =============================
  4228. There are three directives that begin '.stab'. All emit symbols (*note
  4229. Symbols::), for use by symbolic debuggers. The symbols are not entered
  4230. in the 'as' hash table: they cannot be referenced elsewhere in the
  4231. source file. Up to five fields are required:
  4232. STRING
  4233. This is the symbol's name. It may contain any character except
  4234. '\000', so is more general than ordinary symbol names. Some
  4235. debuggers used to code arbitrarily complex structures into symbol
  4236. names using this field.
  4237. TYPE
  4238. An absolute expression. The symbol's type is set to the low 8 bits
  4239. of this expression. Any bit pattern is permitted, but 'ld' and
  4240. debuggers choke on silly bit patterns.
  4241. OTHER
  4242. An absolute expression. The symbol's "other" attribute is set to
  4243. the low 8 bits of this expression.
  4244. DESC
  4245. An absolute expression. The symbol's descriptor is set to the low
  4246. 16 bits of this expression.
  4247. VALUE
  4248. An absolute expression which becomes the symbol's value.
  4249. If a warning is detected while reading a '.stabd', '.stabn', or
  4250. '.stabs' statement, the symbol has probably already been created; you
  4251. get a half-formed symbol in your object file. This is compatible with
  4252. earlier assemblers!
  4253. '.stabd TYPE , OTHER , DESC'
  4254. The "name" of the symbol generated is not even an empty string. It
  4255. is a null pointer, for compatibility. Older assemblers used a null
  4256. pointer so they didn't waste space in object files with empty
  4257. strings.
  4258. The symbol's value is set to the location counter, relocatably.
  4259. When your program is linked, the value of this symbol is the
  4260. address of the location counter when the '.stabd' was assembled.
  4261. '.stabn TYPE , OTHER , DESC , VALUE'
  4262. The name of the symbol is set to the empty string '""'.
  4263. '.stabs STRING , TYPE , OTHER , DESC , VALUE'
  4264. All five fields are specified.
  4265. 
  4266. File: as.info, Node: String, Next: Struct, Prev: Stab, Up: Pseudo Ops
  4267. 7.91 '.string' "STR", '.string8' "STR", '.string16'
  4268. ===================================================
  4269. "STR", '.string32' "STR", '.string64' "STR"
  4270. Copy the characters in STR to the object file. You may specify more
  4271. than one string to copy, separated by commas. Unless otherwise
  4272. specified for a particular machine, the assembler marks the end of each
  4273. string with a 0 byte. You can use any of the escape sequences described
  4274. in *note Strings: Strings.
  4275. The variants 'string16', 'string32' and 'string64' differ from the
  4276. 'string' pseudo opcode in that each 8-bit character from STR is copied
  4277. and expanded to 16, 32 or 64 bits respectively. The expanded characters
  4278. are stored in target endianness byte order.
  4279. Example:
  4280. .string32 "BYE"
  4281. expands to:
  4282. .string "B\0\0\0Y\0\0\0E\0\0\0" /* On little endian targets. */
  4283. .string "\0\0\0B\0\0\0Y\0\0\0E" /* On big endian targets. */
  4284. 
  4285. File: as.info, Node: Struct, Next: SubSection, Prev: String, Up: Pseudo Ops
  4286. 7.92 '.struct EXPRESSION'
  4287. =========================
  4288. Switch to the absolute section, and set the section offset to
  4289. EXPRESSION, which must be an absolute expression. You might use this as
  4290. follows:
  4291. .struct 0
  4292. field1:
  4293. .struct field1 + 4
  4294. field2:
  4295. .struct field2 + 4
  4296. field3:
  4297. This would define the symbol 'field1' to have the value 0, the symbol
  4298. 'field2' to have the value 4, and the symbol 'field3' to have the value
  4299. 8. Assembly would be left in the absolute section, and you would need
  4300. to use a '.section' directive of some sort to change to some other
  4301. section before further assembly.
  4302. 
  4303. File: as.info, Node: SubSection, Next: Symver, Prev: Struct, Up: Pseudo Ops
  4304. 7.93 '.subsection NAME'
  4305. =======================
  4306. This is one of the ELF section stack manipulation directives. The
  4307. others are '.section' (*note Section::), '.pushsection' (*note
  4308. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4309. (*note Previous::).
  4310. This directive replaces the current subsection with 'name'. The
  4311. current section is not changed. The replaced subsection is put onto the
  4312. section stack in place of the then current top of stack subsection.
  4313. 
  4314. File: as.info, Node: Symver, Next: Tag, Prev: SubSection, Up: Pseudo Ops
  4315. 7.94 '.symver'
  4316. ==============
  4317. Use the '.symver' directive to bind symbols to specific version nodes
  4318. within a source file. This is only supported on ELF platforms, and is
  4319. typically used when assembling files to be linked into a shared library.
  4320. There are cases where it may make sense to use this in objects to be
  4321. bound into an application itself so as to override a versioned symbol
  4322. from a shared library.
  4323. For ELF targets, the '.symver' directive can be used like this:
  4324. .symver NAME, NAME2@NODENAME
  4325. If the symbol NAME is defined within the file being assembled, the
  4326. '.symver' directive effectively creates a symbol alias with the name
  4327. NAME2@NODENAME, and in fact the main reason that we just don't try and
  4328. create a regular alias is that the @ character isn't permitted in symbol
  4329. names. The NAME2 part of the name is the actual name of the symbol by
  4330. which it will be externally referenced. The name NAME itself is merely
  4331. a name of convenience that is used so that it is possible to have
  4332. definitions for multiple versions of a function within a single source
  4333. file, and so that the compiler can unambiguously know which version of a
  4334. function is being mentioned. The NODENAME portion of the alias should
  4335. be the name of a node specified in the version script supplied to the
  4336. linker when building a shared library. If you are attempting to
  4337. override a versioned symbol from a shared library, then NODENAME should
  4338. correspond to the nodename of the symbol you are trying to override.
  4339. If the symbol NAME is not defined within the file being assembled,
  4340. all references to NAME will be changed to NAME2@NODENAME. If no
  4341. reference to NAME is made, NAME2@NODENAME will be removed from the
  4342. symbol table.
  4343. Another usage of the '.symver' directive is:
  4344. .symver NAME, NAME2@@NODENAME
  4345. In this case, the symbol NAME must exist and be defined within the
  4346. file being assembled. It is similar to NAME2@NODENAME. The difference
  4347. is NAME2@@NODENAME will also be used to resolve references to NAME2 by
  4348. the linker.
  4349. The third usage of the '.symver' directive is:
  4350. .symver NAME, NAME2@@@NODENAME
  4351. When NAME is not defined within the file being assembled, it is
  4352. treated as NAME2@NODENAME. When NAME is defined within the file being
  4353. assembled, the symbol name, NAME, will be changed to NAME2@@NODENAME.
  4354. 
  4355. File: as.info, Node: Tag, Next: Text, Prev: Symver, Up: Pseudo Ops
  4356. 7.95 '.tag STRUCTNAME'
  4357. ======================
  4358. This directive is generated by compilers to include auxiliary debugging
  4359. information in the symbol table. It is only permitted inside
  4360. '.def'/'.endef' pairs. Tags are used to link structure definitions in
  4361. the symbol table with instances of those structures.
  4362. 
  4363. File: as.info, Node: Text, Next: Title, Prev: Tag, Up: Pseudo Ops
  4364. 7.96 '.text SUBSECTION'
  4365. =======================
  4366. Tells 'as' to assemble the following statements onto the end of the text
  4367. subsection numbered SUBSECTION, which is an absolute expression. If
  4368. SUBSECTION is omitted, subsection number zero is used.
  4369. 
  4370. File: as.info, Node: Title, Next: Type, Prev: Text, Up: Pseudo Ops
  4371. 7.97 '.title "HEADING"'
  4372. =======================
  4373. Use HEADING as the title (second line, immediately after the source file
  4374. name and pagenumber) when generating assembly listings.
  4375. This directive affects subsequent pages, as well as the current page
  4376. if it appears within ten lines of the top of a page.
  4377. 
  4378. File: as.info, Node: Type, Next: Uleb128, Prev: Title, Up: Pseudo Ops
  4379. 7.98 '.type'
  4380. ============
  4381. This directive is used to set the type of a symbol.
  4382. COFF Version
  4383. ------------
  4384. For COFF targets, this directive is permitted only within
  4385. '.def'/'.endef' pairs. It is used like this:
  4386. .type INT
  4387. This records the integer INT as the type attribute of a symbol table
  4388. entry.
  4389. ELF Version
  4390. -----------
  4391. For ELF targets, the '.type' directive is used like this:
  4392. .type NAME , TYPE DESCRIPTION
  4393. This sets the type of symbol NAME to be either a function symbol or
  4394. an object symbol. There are five different syntaxes supported for the
  4395. TYPE DESCRIPTION field, in order to provide compatibility with various
  4396. other assemblers.
  4397. Because some of the characters used in these syntaxes (such as '@'
  4398. and '#') are comment characters for some architectures, some of the
  4399. syntaxes below do not work on all architectures. The first variant will
  4400. be accepted by the GNU assembler on all architectures so that variant
  4401. should be used for maximum portability, if you do not need to assemble
  4402. your code with other assemblers.
  4403. The syntaxes supported are:
  4404. .type <name> STT_<TYPE_IN_UPPER_CASE>
  4405. .type <name>,#<type>
  4406. .type <name>,@<type>
  4407. .type <name>,%<type>
  4408. .type <name>,"<type>"
  4409. The types supported are:
  4410. 'STT_FUNC'
  4411. 'function'
  4412. Mark the symbol as being a function name.
  4413. 'STT_GNU_IFUNC'
  4414. 'gnu_indirect_function'
  4415. Mark the symbol as an indirect function when evaluated during reloc
  4416. processing. (This is only supported on assemblers targeting GNU
  4417. systems).
  4418. 'STT_OBJECT'
  4419. 'object'
  4420. Mark the symbol as being a data object.
  4421. 'STT_TLS'
  4422. 'tls_object'
  4423. Mark the symbol as being a thread-local data object.
  4424. 'STT_COMMON'
  4425. 'common'
  4426. Mark the symbol as being a common data object.
  4427. 'STT_NOTYPE'
  4428. 'notype'
  4429. Does not mark the symbol in any way. It is supported just for
  4430. completeness.
  4431. 'gnu_unique_object'
  4432. Marks the symbol as being a globally unique data object. The
  4433. dynamic linker will make sure that in the entire process there is
  4434. just one symbol with this name and type in use. (This is only
  4435. supported on assemblers targeting GNU systems).
  4436. Note: Some targets support extra types in addition to those listed
  4437. above.
  4438. 
  4439. File: as.info, Node: Uleb128, Next: Val, Prev: Type, Up: Pseudo Ops
  4440. 7.99 '.uleb128 EXPRESSIONS'
  4441. ===========================
  4442. ULEB128 stands for "unsigned little endian base 128." This is a
  4443. compact, variable length representation of numbers used by the DWARF
  4444. symbolic debugging format. *Note '.sleb128': Sleb128.
  4445. 
  4446. File: as.info, Node: Val, Next: Version, Prev: Uleb128, Up: Pseudo Ops
  4447. 7.100 '.val ADDR'
  4448. =================
  4449. This directive, permitted only within '.def'/'.endef' pairs, records the
  4450. address ADDR as the value attribute of a symbol table entry.
  4451. 
  4452. File: as.info, Node: Version, Next: VTableEntry, Prev: Val, Up: Pseudo Ops
  4453. 7.101 '.version "STRING"'
  4454. =========================
  4455. This directive creates a '.note' section and places into it an ELF
  4456. formatted note of type NT_VERSION. The note's name is set to 'string'.
  4457. 
  4458. File: as.info, Node: VTableEntry, Next: VTableInherit, Prev: Version, Up: Pseudo Ops
  4459. 7.102 '.vtable_entry TABLE, OFFSET'
  4460. ===================================
  4461. This directive finds or creates a symbol 'table' and creates a
  4462. 'VTABLE_ENTRY' relocation for it with an addend of 'offset'.
  4463. 
  4464. File: as.info, Node: VTableInherit, Next: Warning, Prev: VTableEntry, Up: Pseudo Ops
  4465. 7.103 '.vtable_inherit CHILD, PARENT'
  4466. =====================================
  4467. This directive finds the symbol 'child' and finds or creates the symbol
  4468. 'parent' and then creates a 'VTABLE_INHERIT' relocation for the parent
  4469. whose addend is the value of the child symbol. As a special case the
  4470. parent name of '0' is treated as referring to the '*ABS*' section.
  4471. 
  4472. File: as.info, Node: Warning, Next: Weak, Prev: VTableInherit, Up: Pseudo Ops
  4473. 7.104 '.warning "STRING"'
  4474. =========================
  4475. Similar to the directive '.error' (*note '.error "STRING"': Error.), but
  4476. just emits a warning.
  4477. 
  4478. File: as.info, Node: Weak, Next: Weakref, Prev: Warning, Up: Pseudo Ops
  4479. 7.105 '.weak NAMES'
  4480. ===================
  4481. This directive sets the weak attribute on the comma separated list of
  4482. symbol 'names'. If the symbols do not already exist, they will be
  4483. created.
  4484. On COFF targets other than PE, weak symbols are a GNU extension.
  4485. This directive sets the weak attribute on the comma separated list of
  4486. symbol 'names'. If the symbols do not already exist, they will be
  4487. created.
  4488. On the PE target, weak symbols are supported natively as weak
  4489. aliases. When a weak symbol is created that is not an alias, GAS
  4490. creates an alternate symbol to hold the default value.
  4491. 
  4492. File: as.info, Node: Weakref, Next: Word, Prev: Weak, Up: Pseudo Ops
  4493. 7.106 '.weakref ALIAS, TARGET'
  4494. ==============================
  4495. This directive creates an alias to the target symbol that enables the
  4496. symbol to be referenced with weak-symbol semantics, but without actually
  4497. making it weak. If direct references or definitions of the symbol are
  4498. present, then the symbol will not be weak, but if all references to it
  4499. are through weak references, the symbol will be marked as weak in the
  4500. symbol table.
  4501. The effect is equivalent to moving all references to the alias to a
  4502. separate assembly source file, renaming the alias to the symbol in it,
  4503. declaring the symbol as weak there, and running a reloadable link to
  4504. merge the object files resulting from the assembly of the new source
  4505. file and the old source file that had the references to the alias
  4506. removed.
  4507. The alias itself never makes to the symbol table, and is entirely
  4508. handled within the assembler.
  4509. 
  4510. File: as.info, Node: Word, Next: Zero, Prev: Weakref, Up: Pseudo Ops
  4511. 7.107 '.word EXPRESSIONS'
  4512. =========================
  4513. This directive expects zero or more EXPRESSIONS, of any section,
  4514. separated by commas.
  4515. The size of the number emitted, and its byte order, depend on what
  4516. target computer the assembly is for.
  4517. _Warning: Special Treatment to support Compilers_
  4518. Machines with a 32-bit address space, but that do less than 32-bit
  4519. addressing, require the following special treatment. If the machine of
  4520. interest to you does 32-bit addressing (or doesn't require it; *note
  4521. Machine Dependencies::), you can ignore this issue.
  4522. In order to assemble compiler output into something that works, 'as'
  4523. occasionally does strange things to '.word' directives. Directives of
  4524. the form '.word sym1-sym2' are often emitted by compilers as part of
  4525. jump tables. Therefore, when 'as' assembles a directive of the form
  4526. '.word sym1-sym2', and the difference between 'sym1' and 'sym2' does not
  4527. fit in 16 bits, 'as' creates a "secondary jump table", immediately
  4528. before the next label. This secondary jump table is preceded by a
  4529. short-jump to the first byte after the secondary table. This short-jump
  4530. prevents the flow of control from accidentally falling into the new
  4531. table. Inside the table is a long-jump to 'sym2'. The original '.word'
  4532. contains 'sym1' minus the address of the long-jump to 'sym2'.
  4533. If there were several occurrences of '.word sym1-sym2' before the
  4534. secondary jump table, all of them are adjusted. If there was a '.word
  4535. sym3-sym4', that also did not fit in sixteen bits, a long-jump to 'sym4'
  4536. is included in the secondary jump table, and the '.word' directives are
  4537. adjusted to contain 'sym3' minus the address of the long-jump to 'sym4';
  4538. and so on, for as many entries in the original jump table as necessary.
  4539. 
  4540. File: as.info, Node: Zero, Next: 2byte, Prev: Word, Up: Pseudo Ops
  4541. 7.108 '.zero SIZE'
  4542. ==================
  4543. This directive emits SIZE 0-valued bytes. SIZE must be an absolute
  4544. expression. This directive is actually an alias for the '.skip'
  4545. directive so in can take an optional second argument of the value to
  4546. store in the bytes instead of zero. Using '.zero' in this way would be
  4547. confusing however.
  4548. 
  4549. File: as.info, Node: 2byte, Next: 4byte, Prev: Zero, Up: Pseudo Ops
  4550. 7.109 '.2byte EXPRESSION [, EXPRESSION]*'
  4551. =========================================
  4552. This directive expects zero or more expressions, separated by commas.
  4553. If there are no expressions then the directive does nothing. Otherwise
  4554. each expression is evaluated in turn and placed in the next two bytes of
  4555. the current output section, using the endian model of the target. If an
  4556. expression will not fit in two bytes, a warning message is displayed and
  4557. the least significant two bytes of the expression's value are used. If
  4558. an expression cannot be evaluated at assembly time then relocations will
  4559. be generated in order to compute the value at link time.
  4560. This directive does not apply any alignment before or after inserting
  4561. the values. As a result of this, if relocations are generated, they may
  4562. be different from those used for inserting values with a guaranteed
  4563. alignment.
  4564. This directive is only available for ELF targets,
  4565. 
  4566. File: as.info, Node: 4byte, Next: 8byte, Prev: 2byte, Up: Pseudo Ops
  4567. 7.110 '.4byte EXPRESSION [, EXPRESSION]*'
  4568. =========================================
  4569. Like the '.2byte' directive, except that it inserts unaligned, four byte
  4570. long values into the output.
  4571. 
  4572. File: as.info, Node: 8byte, Next: Deprecated, Prev: 4byte, Up: Pseudo Ops
  4573. 7.111 '.8byte EXPRESSION [, EXPRESSION]*'
  4574. =========================================
  4575. Like the '.2byte' directive, except that it inserts unaligned, eight
  4576. byte long bignum values into the output.
  4577. 
  4578. File: as.info, Node: Deprecated, Prev: 8byte, Up: Pseudo Ops
  4579. 7.112 Deprecated Directives
  4580. ===========================
  4581. One day these directives won't work. They are included for
  4582. compatibility with older assemblers.
  4583. .abort
  4584. .line
  4585. 
  4586. File: as.info, Node: Object Attributes, Next: Machine Dependencies, Prev: Pseudo Ops, Up: Top
  4587. 8 Object Attributes
  4588. *******************
  4589. 'as' assembles source files written for a specific architecture into
  4590. object files for that architecture. But not all object files are alike.
  4591. Many architectures support incompatible variations. For instance,
  4592. floating point arguments might be passed in floating point registers if
  4593. the object file requires hardware floating point support--or floating
  4594. point arguments might be passed in integer registers if the object file
  4595. supports processors with no hardware floating point unit. Or, if two
  4596. objects are built for different generations of the same architecture,
  4597. the combination may require the newer generation at run-time.
  4598. This information is useful during and after linking. At link time,
  4599. 'ld' can warn about incompatible object files. After link time, tools
  4600. like 'gdb' can use it to process the linked file correctly.
  4601. Compatibility information is recorded as a series of object
  4602. attributes. Each attribute has a "vendor", "tag", and "value". The
  4603. vendor is a string, and indicates who sets the meaning of the tag. The
  4604. tag is an integer, and indicates what property the attribute describes.
  4605. The value may be a string or an integer, and indicates how the property
  4606. affects this object. Missing attributes are the same as attributes with
  4607. a zero value or empty string value.
  4608. Object attributes were developed as part of the ABI for the ARM
  4609. Architecture. The file format is documented in 'ELF for the ARM
  4610. Architecture'.
  4611. * Menu:
  4612. * GNU Object Attributes:: GNU Object Attributes
  4613. * Defining New Object Attributes:: Defining New Object Attributes
  4614. 
  4615. File: as.info, Node: GNU Object Attributes, Next: Defining New Object Attributes, Up: Object Attributes
  4616. 8.1 GNU Object Attributes
  4617. =========================
  4618. The '.gnu_attribute' directive records an object attribute with vendor
  4619. 'gnu'.
  4620. Except for 'Tag_compatibility', which has both an integer and a
  4621. string for its value, GNU attributes have a string value if the tag
  4622. number is odd and an integer value if the tag number is even. The
  4623. second bit ('TAG & 2' is set for architecture-independent attributes and
  4624. clear for architecture-dependent ones.
  4625. 8.1.1 Common GNU attributes
  4626. ---------------------------
  4627. These attributes are valid on all architectures.
  4628. Tag_compatibility (32)
  4629. The compatibility attribute takes an integer flag value and a
  4630. vendor name. If the flag value is 0, the file is compatible with
  4631. other toolchains. If it is 1, then the file is only compatible
  4632. with the named toolchain. If it is greater than 1, the file can
  4633. only be processed by other toolchains under some private
  4634. arrangement indicated by the flag value and the vendor name.
  4635. 8.1.2 MIPS Attributes
  4636. ---------------------
  4637. Tag_GNU_MIPS_ABI_FP (4)
  4638. The floating-point ABI used by this object file. The value will
  4639. be:
  4640. * 0 for files not affected by the floating-point ABI.
  4641. * 1 for files using the hardware floating-point ABI with a
  4642. standard double-precision FPU.
  4643. * 2 for files using the hardware floating-point ABI with a
  4644. single-precision FPU.
  4645. * 3 for files using the software floating-point ABI.
  4646. * 4 for files using the deprecated hardware floating-point ABI
  4647. which used 64-bit floating-point registers, 32-bit
  4648. general-purpose registers and increased the number of
  4649. callee-saved floating-point registers.
  4650. * 5 for files using the hardware floating-point ABI with a
  4651. double-precision FPU with either 32-bit or 64-bit
  4652. floating-point registers and 32-bit general-purpose registers.
  4653. * 6 for files using the hardware floating-point ABI with 64-bit
  4654. floating-point registers and 32-bit general-purpose registers.
  4655. * 7 for files using the hardware floating-point ABI with 64-bit
  4656. floating-point registers, 32-bit general-purpose registers and
  4657. a rule that forbids the direct use of odd-numbered
  4658. single-precision floating-point registers.
  4659. 8.1.3 PowerPC Attributes
  4660. ------------------------
  4661. Tag_GNU_Power_ABI_FP (4)
  4662. The floating-point ABI used by this object file. The value will
  4663. be:
  4664. * 0 for files not affected by the floating-point ABI.
  4665. * 1 for files using double-precision hardware floating-point
  4666. ABI.
  4667. * 2 for files using the software floating-point ABI.
  4668. * 3 for files using single-precision hardware floating-point
  4669. ABI.
  4670. Tag_GNU_Power_ABI_Vector (8)
  4671. The vector ABI used by this object file. The value will be:
  4672. * 0 for files not affected by the vector ABI.
  4673. * 1 for files using general purpose registers to pass vectors.
  4674. * 2 for files using AltiVec registers to pass vectors.
  4675. * 3 for files using SPE registers to pass vectors.
  4676. 8.1.4 IBM z Systems Attributes
  4677. ------------------------------
  4678. Tag_GNU_S390_ABI_Vector (8)
  4679. The vector ABI used by this object file. The value will be:
  4680. * 0 for files not affected by the vector ABI.
  4681. * 1 for files using software vector ABI.
  4682. * 2 for files using hardware vector ABI.
  4683. 
  4684. File: as.info, Node: Defining New Object Attributes, Prev: GNU Object Attributes, Up: Object Attributes
  4685. 8.2 Defining New Object Attributes
  4686. ==================================
  4687. If you want to define a new GNU object attribute, here are the places
  4688. you will need to modify. New attributes should be discussed on the
  4689. 'binutils' mailing list.
  4690. * This manual, which is the official register of attributes.
  4691. * The header for your architecture 'include/elf', to define the tag.
  4692. * The 'bfd' support file for your architecture, to merge the
  4693. attribute and issue any appropriate link warnings.
  4694. * Test cases in 'ld/testsuite' for merging and link warnings.
  4695. * 'binutils/readelf.c' to display your attribute.
  4696. * GCC, if you want the compiler to mark the attribute automatically.
  4697. 
  4698. File: as.info, Node: Machine Dependencies, Next: Reporting Bugs, Prev: Object Attributes, Up: Top
  4699. 9 Machine Dependent Features
  4700. ****************************
  4701. The machine instruction sets are (almost by definition) different on
  4702. each machine where 'as' runs. Floating point representations vary as
  4703. well, and 'as' often supports a few additional directives or
  4704. command-line options for compatibility with other assemblers on a
  4705. particular platform. Finally, some versions of 'as' support special
  4706. pseudo-instructions for branch optimization.
  4707. This chapter discusses most of these differences, though it does not
  4708. include details on any machine's instruction set. For details on that
  4709. subject, see the hardware manufacturer's manual.
  4710. * Menu:
  4711. * AArch64-Dependent:: AArch64 Dependent Features
  4712. * Alpha-Dependent:: Alpha Dependent Features
  4713. * ARC-Dependent:: ARC Dependent Features
  4714. * ARM-Dependent:: ARM Dependent Features
  4715. * AVR-Dependent:: AVR Dependent Features
  4716. * Blackfin-Dependent:: Blackfin Dependent Features
  4717. * CR16-Dependent:: CR16 Dependent Features
  4718. * CRIS-Dependent:: CRIS Dependent Features
  4719. * C-SKY-Dependent:: C-SKY Dependent Features
  4720. * D10V-Dependent:: D10V Dependent Features
  4721. * D30V-Dependent:: D30V Dependent Features
  4722. * Epiphany-Dependent:: EPIPHANY Dependent Features
  4723. * H8/300-Dependent:: Renesas H8/300 Dependent Features
  4724. * HPPA-Dependent:: HPPA Dependent Features
  4725. * i386-Dependent:: Intel 80386 and AMD x86-64 Dependent Features
  4726. * IA-64-Dependent:: Intel IA-64 Dependent Features
  4727. * IP2K-Dependent:: IP2K Dependent Features
  4728. * LM32-Dependent:: LM32 Dependent Features
  4729. * M32C-Dependent:: M32C Dependent Features
  4730. * M32R-Dependent:: M32R Dependent Features
  4731. * M68K-Dependent:: M680x0 Dependent Features
  4732. * M68HC11-Dependent:: M68HC11 and 68HC12 Dependent Features
  4733. * S12Z-Dependent:: S12Z Dependent Features
  4734. * Meta-Dependent :: Meta Dependent Features
  4735. * MicroBlaze-Dependent:: MICROBLAZE Dependent Features
  4736. * MIPS-Dependent:: MIPS Dependent Features
  4737. * MMIX-Dependent:: MMIX Dependent Features
  4738. * MSP430-Dependent:: MSP430 Dependent Features
  4739. * NDS32-Dependent:: Andes NDS32 Dependent Features
  4740. * NiosII-Dependent:: Altera Nios II Dependent Features
  4741. * NS32K-Dependent:: NS32K Dependent Features
  4742. * OpenRISC-Dependent:: OpenRISC 1000 Features
  4743. * PDP-11-Dependent:: PDP-11 Dependent Features
  4744. * PJ-Dependent:: picoJava Dependent Features
  4745. * PPC-Dependent:: PowerPC Dependent Features
  4746. * PRU-Dependent:: PRU Dependent Features
  4747. * RISC-V-Dependent:: RISC-V Dependent Features
  4748. * RL78-Dependent:: RL78 Dependent Features
  4749. * RX-Dependent:: RX Dependent Features
  4750. * S/390-Dependent:: IBM S/390 Dependent Features
  4751. * SCORE-Dependent:: SCORE Dependent Features
  4752. * SH-Dependent:: Renesas / SuperH SH Dependent Features
  4753. * Sparc-Dependent:: SPARC Dependent Features
  4754. * TIC54X-Dependent:: TI TMS320C54x Dependent Features
  4755. * TIC6X-Dependent :: TI TMS320C6x Dependent Features
  4756. * TILE-Gx-Dependent :: Tilera TILE-Gx Dependent Features
  4757. * TILEPro-Dependent :: Tilera TILEPro Dependent Features
  4758. * V850-Dependent:: V850 Dependent Features
  4759. * Vax-Dependent:: VAX Dependent Features
  4760. * Visium-Dependent:: Visium Dependent Features
  4761. * WebAssembly-Dependent:: WebAssembly Dependent Features
  4762. * XGATE-Dependent:: XGATE Dependent Features
  4763. * XSTORMY16-Dependent:: XStormy16 Dependent Features
  4764. * Xtensa-Dependent:: Xtensa Dependent Features
  4765. * Z80-Dependent:: Z80 Dependent Features
  4766. * Z8000-Dependent:: Z8000 Dependent Features
  4767. 
  4768. File: as.info, Node: AArch64-Dependent, Next: Alpha-Dependent, Up: Machine Dependencies
  4769. 9.1 AArch64 Dependent Features
  4770. ==============================
  4771. * Menu:
  4772. * AArch64 Options:: Options
  4773. * AArch64 Extensions:: Extensions
  4774. * AArch64 Syntax:: Syntax
  4775. * AArch64 Floating Point:: Floating Point
  4776. * AArch64 Directives:: AArch64 Machine Directives
  4777. * AArch64 Opcodes:: Opcodes
  4778. * AArch64 Mapping Symbols:: Mapping Symbols
  4779. 
  4780. File: as.info, Node: AArch64 Options, Next: AArch64 Extensions, Up: AArch64-Dependent
  4781. 9.1.1 Options
  4782. -------------
  4783. '-EB'
  4784. This option specifies that the output generated by the assembler
  4785. should be marked as being encoded for a big-endian processor.
  4786. '-EL'
  4787. This option specifies that the output generated by the assembler
  4788. should be marked as being encoded for a little-endian processor.
  4789. '-mabi=ABI'
  4790. Specify which ABI the source code uses. The recognized arguments
  4791. are: 'ilp32' and 'lp64', which decides the generated object file in
  4792. ELF32 and ELF64 format respectively. The default is 'lp64'.
  4793. '-mcpu=PROCESSOR[+EXTENSION...]'
  4794. This option specifies the target processor. The assembler will
  4795. issue an error message if an attempt is made to assemble an
  4796. instruction which will not execute on the target processor. The
  4797. following processor names are recognized: 'cortex-a35',
  4798. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  4799. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'ares', 'exynos-m1',
  4800. 'falkor', 'qdf24xx', 'saphira', 'thunderx', 'vulcan', 'xgene1' and
  4801. 'xgene2'. The special name 'all' may be used to allow the
  4802. assembler to accept instructions valid for any supported processor,
  4803. including all optional extensions.
  4804. In addition to the basic instruction set, the assembler can be told
  4805. to accept, or restrict, various extension mnemonics that extend the
  4806. processor. *Note AArch64 Extensions::.
  4807. If some implementations of a particular processor can have an
  4808. extension, then then those extensions are automatically enabled.
  4809. Consequently, you will not normally have to specify any additional
  4810. extensions.
  4811. '-march=ARCHITECTURE[+EXTENSION...]'
  4812. This option specifies the target architecture. The assembler will
  4813. issue an error message if an attempt is made to assemble an
  4814. instruction which will not execute on the target architecture. The
  4815. following architecture names are recognized: 'armv8-a',
  4816. 'armv8.1-a', 'armv8.2-a', 'armv8.3-a', 'armv8.4-a' and 'armv8.5-a'.
  4817. If both '-mcpu' and '-march' are specified, the assembler will use
  4818. the setting for '-mcpu'. If neither are specified, the assembler
  4819. will default to '-mcpu=all'.
  4820. The architecture option can be extended with the same instruction
  4821. set extension options as the '-mcpu' option. Unlike '-mcpu',
  4822. extensions are not always enabled by default, *Note AArch64
  4823. Extensions::.
  4824. '-mverbose-error'
  4825. This option enables verbose error messages for AArch64 gas. This
  4826. option is enabled by default.
  4827. '-mno-verbose-error'
  4828. This option disables verbose error messages in AArch64 gas.
  4829. 
  4830. File: as.info, Node: AArch64 Extensions, Next: AArch64 Syntax, Prev: AArch64 Options, Up: AArch64-Dependent
  4831. 9.1.2 Architecture Extensions
  4832. -----------------------------
  4833. The table below lists the permitted architecture extensions that are
  4834. supported by the assembler and the conditions under which they are
  4835. automatically enabled.
  4836. Multiple extensions may be specified, separated by a '+'. Extension
  4837. mnemonics may also be removed from those the assembler accepts. This is
  4838. done by prepending 'no' to the option that adds the extension.
  4839. Extensions that are removed must be listed after all extensions that
  4840. have been added.
  4841. Enabling an extension that requires other extensions will
  4842. automatically cause those extensions to be enabled. Similarly,
  4843. disabling an extension that is required by other extensions will
  4844. automatically cause those extensions to be disabled.
  4845. Extension Minimum Enabled by Description
  4846. Architecture default
  4847. ----------------------------------------------------------------------------
  4848. 'compnum' ARMv8.2-A ARMv8.3-A Enable the complex number SIMD
  4849. or later extensions. This implies 'fp16' and
  4850. 'simd'.
  4851. 'crc' ARMv8-A ARMv8.1-A Enable CRC instructions.
  4852. or later
  4853. 'crypto' ARMv8-A No Enable cryptographic extensions.
  4854. This implies 'fp', 'simd', 'aes' and
  4855. 'sha2'.
  4856. 'aes' ARMv8-A No Enable the AES cryptographic
  4857. extensions. This implies 'fp' and
  4858. 'simd'.
  4859. 'sha2' ARMv8-A No Enable the SHA2 cryptographic
  4860. extensions. This implies 'fp' and
  4861. 'simd'.
  4862. 'sha3' ARMv8.2-A No Enable the ARMv8.2-A SHA2 and SHA3
  4863. cryptographic extensions. This
  4864. implies 'fp', 'simd' and 'sha2'.
  4865. 'sm4' ARMv8.2-A No Enable the ARMv8.2-A SM3 and SM4
  4866. cryptographic extensions. This
  4867. implies 'fp' and 'simd'.
  4868. 'fp' ARMv8-A ARMv8-A or Enable floating-point extensions.
  4869. later
  4870. 'fp16' ARMv8.2-A ARMv8.2-A Enable ARMv8.2 16-bit floating-point
  4871. or later support. This implies 'fp'.
  4872. 'lor' ARMv8-A ARMv8.1-A Enable Limited Ordering Regions
  4873. or later extensions.
  4874. 'lse' ARMv8-A ARMv8.1-A Enable Large System extensions.
  4875. or later
  4876. 'pan' ARMv8-A ARMv8.1-A Enable Privileged Access Never
  4877. or later support.
  4878. 'profile' ARMv8.2-A No Enable statistical profiling
  4879. extensions.
  4880. 'ras' ARMv8-A ARMv8.2-A Enable the Reliability, Availability
  4881. or later and Serviceability extension.
  4882. 'rcpc' ARMv8.2-A ARMv8.3-A Enable the weak release consistency
  4883. or later extension.
  4884. 'rdma' ARMv8-A ARMv8.1-A Enable ARMv8.1 Advanced SIMD
  4885. or later extensions. This implies 'simd'.
  4886. 'simd' ARMv8-A ARMv8-A or Enable Advanced SIMD extensions.
  4887. later This implies 'fp'.
  4888. 'sve' ARMv8.2-A No Enable the Scalable Vector
  4889. Extensions. This implies 'fp16',
  4890. 'simd' and 'compnum'.
  4891. 'dotprod' ARMv8.2-A ARMv8.4-A Enable the Dot Product extension.
  4892. or later This implies 'simd'.
  4893. 'fp16fml' ARMv8.2-A ARMv8.4-A Enable ARMv8.2 16-bit floating-point
  4894. or later multiplication variant support. This
  4895. implies 'fp16'.
  4896. 'sb' ARMv8-A ARMv8.5-A Enable the speculation barrier
  4897. or later instruction sb.
  4898. 'predres' ARMv8-A ARMv8.5-A Enable the Execution and Data and
  4899. or later Prediction instructions.
  4900. 'rng' ARMv8.5-A No Enable ARMv8.5-A random number
  4901. instructions.
  4902. 'ssbs' ARMv8-A ARMv8.5-A Enable Speculative Store Bypassing
  4903. or later Safe state read and write.
  4904. 'memtag' ARMv8.5-A No Enable ARMv8.5-A Memory Tagging
  4905. Extensions.
  4906. 
  4907. File: as.info, Node: AArch64 Syntax, Next: AArch64 Floating Point, Prev: AArch64 Extensions, Up: AArch64-Dependent
  4908. 9.1.3 Syntax
  4909. ------------
  4910. * Menu:
  4911. * AArch64-Chars:: Special Characters
  4912. * AArch64-Regs:: Register Names
  4913. * AArch64-Relocations:: Relocations
  4914. 
  4915. File: as.info, Node: AArch64-Chars, Next: AArch64-Regs, Up: AArch64 Syntax
  4916. 9.1.3.1 Special Characters
  4917. ..........................
  4918. The presence of a '//' on a line indicates the start of a comment that
  4919. extends to the end of the current line. If a '#' appears as the first
  4920. character of a line, the whole line is treated as a comment.
  4921. The ';' character can be used instead of a newline to separate
  4922. statements.
  4923. The '#' can be optionally used to indicate immediate operands.
  4924. 
  4925. File: as.info, Node: AArch64-Regs, Next: AArch64-Relocations, Prev: AArch64-Chars, Up: AArch64 Syntax
  4926. 9.1.3.2 Register Names
  4927. ......................
  4928. Please refer to the section '4.4 Register Names' of 'ARMv8 Instruction
  4929. Set Overview', which is available at <http://infocenter.arm.com>.
  4930. 
  4931. File: as.info, Node: AArch64-Relocations, Prev: AArch64-Regs, Up: AArch64 Syntax
  4932. 9.1.3.3 Relocations
  4933. ...................
  4934. Relocations for 'MOVZ' and 'MOVK' instructions can be generated by
  4935. prefixing the label with '#:abs_g2:' etc. For example to load the
  4936. 48-bit absolute address of FOO into x0:
  4937. movz x0, #:abs_g2:foo // bits 32-47, overflow check
  4938. movk x0, #:abs_g1_nc:foo // bits 16-31, no overflow check
  4939. movk x0, #:abs_g0_nc:foo // bits 0-15, no overflow check
  4940. Relocations for 'ADRP', and 'ADD', 'LDR' or 'STR' instructions can be
  4941. generated by prefixing the label with ':pg_hi21:' and '#:lo12:'
  4942. respectively.
  4943. For example to use 33-bit (+/-4GB) pc-relative addressing to load the
  4944. address of FOO into x0:
  4945. adrp x0, :pg_hi21:foo
  4946. add x0, x0, #:lo12:foo
  4947. Or to load the value of FOO into x0:
  4948. adrp x0, :pg_hi21:foo
  4949. ldr x0, [x0, #:lo12:foo]
  4950. Note that ':pg_hi21:' is optional.
  4951. adrp x0, foo
  4952. is equivalent to
  4953. adrp x0, :pg_hi21:foo
  4954. 
  4955. File: as.info, Node: AArch64 Floating Point, Next: AArch64 Directives, Prev: AArch64 Syntax, Up: AArch64-Dependent
  4956. 9.1.4 Floating Point
  4957. --------------------
  4958. The AArch64 architecture uses IEEE floating-point numbers.
  4959. 
  4960. File: as.info, Node: AArch64 Directives, Next: AArch64 Opcodes, Prev: AArch64 Floating Point, Up: AArch64-Dependent
  4961. 9.1.5 AArch64 Machine Directives
  4962. --------------------------------
  4963. '.arch NAME'
  4964. Select the target architecture. Valid values for NAME are the same
  4965. as for the '-march' command-line option.
  4966. Specifying '.arch' clears any previously selected architecture
  4967. extensions.
  4968. '.arch_extension NAME'
  4969. Add or remove an architecture extension to the target architecture.
  4970. Valid values for NAME are the same as those accepted as
  4971. architectural extensions by the '-mcpu' command-line option.
  4972. '.arch_extension' may be used multiple times to add or remove
  4973. extensions incrementally to the architecture being compiled for.
  4974. '.bss'
  4975. This directive switches to the '.bss' section.
  4976. '.cpu NAME'
  4977. Set the target processor. Valid values for NAME are the same as
  4978. those accepted by the '-mcpu=' command-line option.
  4979. '.dword EXPRESSIONS'
  4980. The '.dword' directive produces 64 bit values.
  4981. '.even'
  4982. The '.even' directive aligns the output on the next even byte
  4983. boundary.
  4984. '.inst EXPRESSIONS'
  4985. Inserts the expressions into the output as if they were
  4986. instructions, rather than data.
  4987. '.ltorg'
  4988. This directive causes the current contents of the literal pool to
  4989. be dumped into the current section (which is assumed to be the
  4990. .text section) at the current location (aligned to a word
  4991. boundary). GAS maintains a separate literal pool for each section
  4992. and each sub-section. The '.ltorg' directive will only affect the
  4993. literal pool of the current section and sub-section. At the end of
  4994. assembly all remaining, un-empty literal pools will automatically
  4995. be dumped.
  4996. Note - older versions of GAS would dump the current literal pool
  4997. any time a section change occurred. This is no longer done, since
  4998. it prevents accurate control of the placement of literal pools.
  4999. '.pool'
  5000. This is a synonym for .ltorg.
  5001. 'NAME .req REGISTER NAME'
  5002. This creates an alias for REGISTER NAME called NAME. For example:
  5003. foo .req w0
  5004. ip0, ip1, lr and fp are automatically defined to alias to X16, X17,
  5005. X30 and X29 respectively.
  5006. '.tlsdescadd'
  5007. Emits a TLSDESC_ADD reloc on the next instruction.
  5008. '.tlsdesccall'
  5009. Emits a TLSDESC_CALL reloc on the next instruction.
  5010. '.tlsdescldr'
  5011. Emits a TLSDESC_LDR reloc on the next instruction.
  5012. '.unreq ALIAS-NAME'
  5013. This undefines a register alias which was previously defined using
  5014. the 'req' directive. For example:
  5015. foo .req w0
  5016. .unreq foo
  5017. An error occurs if the name is undefined. Note - this pseudo op
  5018. can be used to delete builtin in register name aliases (eg 'w0').
  5019. This should only be done if it is really necessary.
  5020. '.xword EXPRESSIONS'
  5021. The '.xword' directive produces 64 bit values. This is the same as
  5022. the '.dword' directive.
  5023. '.cfi_b_key_frame'
  5024. The '.cfi_b_key_frame' directive inserts a 'B' character into the
  5025. CIE corresponding to the current frame's FDE, meaning that its
  5026. return address has been signed with the B-key. If two frames are
  5027. signed with differing keys then they will not share the same CIE.
  5028. This information is intended to be used by the stack unwinder in
  5029. order to properly authenticate return addresses.
  5030. 
  5031. File: as.info, Node: AArch64 Opcodes, Next: AArch64 Mapping Symbols, Prev: AArch64 Directives, Up: AArch64-Dependent
  5032. 9.1.6 Opcodes
  5033. -------------
  5034. GAS implements all the standard AArch64 opcodes. It also implements
  5035. several pseudo opcodes, including several synthetic load instructions.
  5036. 'LDR ='
  5037. ldr <register> , =<expression>
  5038. The constant expression will be placed into the nearest literal
  5039. pool (if it not already there) and a PC-relative LDR instruction
  5040. will be generated.
  5041. For more information on the AArch64 instruction set and assembly
  5042. language notation, see 'ARMv8 Instruction Set Overview' available at
  5043. <http://infocenter.arm.com>.
  5044. 
  5045. File: as.info, Node: AArch64 Mapping Symbols, Prev: AArch64 Opcodes, Up: AArch64-Dependent
  5046. 9.1.7 Mapping Symbols
  5047. ---------------------
  5048. The AArch64 ELF specification requires that special symbols be inserted
  5049. into object files to mark certain features:
  5050. '$x'
  5051. At the start of a region of code containing AArch64 instructions.
  5052. '$d'
  5053. At the start of a region of data.
  5054. 
  5055. File: as.info, Node: Alpha-Dependent, Next: ARC-Dependent, Prev: AArch64-Dependent, Up: Machine Dependencies
  5056. 9.2 Alpha Dependent Features
  5057. ============================
  5058. * Menu:
  5059. * Alpha Notes:: Notes
  5060. * Alpha Options:: Options
  5061. * Alpha Syntax:: Syntax
  5062. * Alpha Floating Point:: Floating Point
  5063. * Alpha Directives:: Alpha Machine Directives
  5064. * Alpha Opcodes:: Opcodes
  5065. 
  5066. File: as.info, Node: Alpha Notes, Next: Alpha Options, Up: Alpha-Dependent
  5067. 9.2.1 Notes
  5068. -----------
  5069. The documentation here is primarily for the ELF object format. 'as'
  5070. also supports the ECOFF and EVAX formats, but features specific to these
  5071. formats are not yet documented.
  5072. 
  5073. File: as.info, Node: Alpha Options, Next: Alpha Syntax, Prev: Alpha Notes, Up: Alpha-Dependent
  5074. 9.2.2 Options
  5075. -------------
  5076. '-mCPU'
  5077. This option specifies the target processor. If an attempt is made
  5078. to assemble an instruction which will not execute on the target
  5079. processor, the assembler may either expand the instruction as a
  5080. macro or issue an error message. This option is equivalent to the
  5081. '.arch' directive.
  5082. The following processor names are recognized: '21064', '21064a',
  5083. '21066', '21068', '21164', '21164a', '21164pc', '21264', '21264a',
  5084. '21264b', 'ev4', 'ev5', 'lca45', 'ev5', 'ev56', 'pca56', 'ev6',
  5085. 'ev67', 'ev68'. The special name 'all' may be used to allow the
  5086. assembler to accept instructions valid for any Alpha processor.
  5087. In order to support existing practice in OSF/1 with respect to
  5088. '.arch', and existing practice within 'MILO' (the Linux ARC
  5089. bootloader), the numbered processor names (e.g. 21064) enable the
  5090. processor-specific PALcode instructions, while the "electro-vlasic"
  5091. names (e.g. 'ev4') do not.
  5092. '-mdebug'
  5093. '-no-mdebug'
  5094. Enables or disables the generation of '.mdebug' encapsulation for
  5095. stabs directives and procedure descriptors. The default is to
  5096. automatically enable '.mdebug' when the first stabs directive is
  5097. seen.
  5098. '-relax'
  5099. This option forces all relocations to be put into the object file,
  5100. instead of saving space and resolving some relocations at assembly
  5101. time. Note that this option does not propagate all symbol
  5102. arithmetic into the object file, because not all symbol arithmetic
  5103. can be represented. However, the option can still be useful in
  5104. specific applications.
  5105. '-replace'
  5106. '-noreplace'
  5107. Enables or disables the optimization of procedure calls, both at
  5108. assemblage and at link time. These options are only available for
  5109. VMS targets and '-replace' is the default. See section 1.4.1 of
  5110. the OpenVMS Linker Utility Manual.
  5111. '-g'
  5112. This option is used when the compiler generates debug information.
  5113. When 'gcc' is using 'mips-tfile' to generate debug information for
  5114. ECOFF, local labels must be passed through to the object file.
  5115. Otherwise this option has no effect.
  5116. '-GSIZE'
  5117. A local common symbol larger than SIZE is placed in '.bss', while
  5118. smaller symbols are placed in '.sbss'.
  5119. '-F'
  5120. '-32addr'
  5121. These options are ignored for backward compatibility.
  5122. 
  5123. File: as.info, Node: Alpha Syntax, Next: Alpha Floating Point, Prev: Alpha Options, Up: Alpha-Dependent
  5124. 9.2.3 Syntax
  5125. ------------
  5126. The assembler syntax closely follow the Alpha Reference Manual;
  5127. assembler directives and general syntax closely follow the OSF/1 and
  5128. OpenVMS syntax, with a few differences for ELF.
  5129. * Menu:
  5130. * Alpha-Chars:: Special Characters
  5131. * Alpha-Regs:: Register Names
  5132. * Alpha-Relocs:: Relocations
  5133. 
  5134. File: as.info, Node: Alpha-Chars, Next: Alpha-Regs, Up: Alpha Syntax
  5135. 9.2.3.1 Special Characters
  5136. ..........................
  5137. '#' is the line comment character. Note that if '#' is the first
  5138. character on a line then it can also be a logical line number directive
  5139. (*note Comments::) or a preprocessor control command (*note
  5140. Preprocessing::).
  5141. ';' can be used instead of a newline to separate statements.
  5142. 
  5143. File: as.info, Node: Alpha-Regs, Next: Alpha-Relocs, Prev: Alpha-Chars, Up: Alpha Syntax
  5144. 9.2.3.2 Register Names
  5145. ......................
  5146. The 32 integer registers are referred to as '$N' or '$rN'. In addition,
  5147. registers 15, 28, 29, and 30 may be referred to by the symbols '$fp',
  5148. '$at', '$gp', and '$sp' respectively.
  5149. The 32 floating-point registers are referred to as '$fN'.
  5150. 
  5151. File: as.info, Node: Alpha-Relocs, Prev: Alpha-Regs, Up: Alpha Syntax
  5152. 9.2.3.3 Relocations
  5153. ...................
  5154. Some of these relocations are available for ECOFF, but mostly only for
  5155. ELF. They are modeled after the relocation format introduced in Digital
  5156. Unix 4.0, but there are additions.
  5157. The format is '!TAG' or '!TAG!NUMBER' where TAG is the name of the
  5158. relocation. In some cases NUMBER is used to relate specific
  5159. instructions.
  5160. The relocation is placed at the end of the instruction like so:
  5161. ldah $0,a($29) !gprelhigh
  5162. lda $0,a($0) !gprellow
  5163. ldq $1,b($29) !literal!100
  5164. ldl $2,0($1) !lituse_base!100
  5165. '!literal'
  5166. '!literal!N'
  5167. Used with an 'ldq' instruction to load the address of a symbol from
  5168. the GOT.
  5169. A sequence number N is optional, and if present is used to pair
  5170. 'lituse' relocations with this 'literal' relocation. The 'lituse'
  5171. relocations are used by the linker to optimize the code based on
  5172. the final location of the symbol.
  5173. Note that these optimizations are dependent on the data flow of the
  5174. program. Therefore, if _any_ 'lituse' is paired with a 'literal'
  5175. relocation, then _all_ uses of the register set by the 'literal'
  5176. instruction must also be marked with 'lituse' relocations. This is
  5177. because the original 'literal' instruction may be deleted or
  5178. transformed into another instruction.
  5179. Also note that there may be a one-to-many relationship between
  5180. 'literal' and 'lituse', but not a many-to-one. That is, if there
  5181. are two code paths that load up the same address and feed the value
  5182. to a single use, then the use may not use a 'lituse' relocation.
  5183. '!lituse_base!N'
  5184. Used with any memory format instruction (e.g. 'ldl') to indicate
  5185. that the literal is used for an address load. The offset field of
  5186. the instruction must be zero. During relaxation, the code may be
  5187. altered to use a gp-relative load.
  5188. '!lituse_jsr!N'
  5189. Used with a register branch format instruction (e.g. 'jsr') to
  5190. indicate that the literal is used for a call. During relaxation,
  5191. the code may be altered to use a direct branch (e.g. 'bsr').
  5192. '!lituse_jsrdirect!N'
  5193. Similar to 'lituse_jsr', but also that this call cannot be vectored
  5194. through a PLT entry. This is useful for functions with special
  5195. calling conventions which do not allow the normal call-clobbered
  5196. registers to be clobbered.
  5197. '!lituse_bytoff!N'
  5198. Used with a byte mask instruction (e.g. 'extbl') to indicate that
  5199. only the low 3 bits of the address are relevant. During
  5200. relaxation, the code may be altered to use an immediate instead of
  5201. a register shift.
  5202. '!lituse_addr!N'
  5203. Used with any other instruction to indicate that the original
  5204. address is in fact used, and the original 'ldq' instruction may not
  5205. be altered or deleted. This is useful in conjunction with
  5206. 'lituse_jsr' to test whether a weak symbol is defined.
  5207. ldq $27,foo($29) !literal!1
  5208. beq $27,is_undef !lituse_addr!1
  5209. jsr $26,($27),foo !lituse_jsr!1
  5210. '!lituse_tlsgd!N'
  5211. Used with a register branch format instruction to indicate that the
  5212. literal is the call to '__tls_get_addr' used to compute the address
  5213. of the thread-local storage variable whose descriptor was loaded
  5214. with '!tlsgd!N'.
  5215. '!lituse_tlsldm!N'
  5216. Used with a register branch format instruction to indicate that the
  5217. literal is the call to '__tls_get_addr' used to compute the address
  5218. of the base of the thread-local storage block for the current
  5219. module. The descriptor for the module must have been loaded with
  5220. '!tlsldm!N'.
  5221. '!gpdisp!N'
  5222. Used with 'ldah' and 'lda' to load the GP from the current address,
  5223. a-la the 'ldgp' macro. The source register for the 'ldah'
  5224. instruction must contain the address of the 'ldah' instruction.
  5225. There must be exactly one 'lda' instruction paired with the 'ldah'
  5226. instruction, though it may appear anywhere in the instruction
  5227. stream. The immediate operands must be zero.
  5228. bsr $26,foo
  5229. ldah $29,0($26) !gpdisp!1
  5230. lda $29,0($29) !gpdisp!1
  5231. '!gprelhigh'
  5232. Used with an 'ldah' instruction to add the high 16 bits of a 32-bit
  5233. displacement from the GP.
  5234. '!gprellow'
  5235. Used with any memory format instruction to add the low 16 bits of a
  5236. 32-bit displacement from the GP.
  5237. '!gprel'
  5238. Used with any memory format instruction to add a 16-bit
  5239. displacement from the GP.
  5240. '!samegp'
  5241. Used with any branch format instruction to skip the GP load at the
  5242. target address. The referenced symbol must have the same GP as the
  5243. source object file, and it must be declared to either not use '$27'
  5244. or perform a standard GP load in the first two instructions via the
  5245. '.prologue' directive.
  5246. '!tlsgd'
  5247. '!tlsgd!N'
  5248. Used with an 'lda' instruction to load the address of a TLS
  5249. descriptor for a symbol in the GOT.
  5250. The sequence number N is optional, and if present it used to pair
  5251. the descriptor load with both the 'literal' loading the address of
  5252. the '__tls_get_addr' function and the 'lituse_tlsgd' marking the
  5253. call to that function.
  5254. For proper relaxation, both the 'tlsgd', 'literal' and 'lituse'
  5255. relocations must be in the same extended basic block. That is, the
  5256. relocation with the lowest address must be executed first at
  5257. runtime.
  5258. '!tlsldm'
  5259. '!tlsldm!N'
  5260. Used with an 'lda' instruction to load the address of a TLS
  5261. descriptor for the current module in the GOT.
  5262. Similar in other respects to 'tlsgd'.
  5263. '!gotdtprel'
  5264. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5265. within its module's thread-local storage block. Also known as the
  5266. dynamic thread pointer offset or dtp-relative offset.
  5267. '!dtprelhi'
  5268. '!dtprello'
  5269. '!dtprel'
  5270. Like 'gprel' relocations except they compute dtp-relative offsets.
  5271. '!gottprel'
  5272. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5273. from the thread pointer. Also known as the tp-relative offset.
  5274. '!tprelhi'
  5275. '!tprello'
  5276. '!tprel'
  5277. Like 'gprel' relocations except they compute tp-relative offsets.
  5278. 
  5279. File: as.info, Node: Alpha Floating Point, Next: Alpha Directives, Prev: Alpha Syntax, Up: Alpha-Dependent
  5280. 9.2.4 Floating Point
  5281. --------------------
  5282. The Alpha family uses both IEEE and VAX floating-point numbers.
  5283. 
  5284. File: as.info, Node: Alpha Directives, Next: Alpha Opcodes, Prev: Alpha Floating Point, Up: Alpha-Dependent
  5285. 9.2.5 Alpha Assembler Directives
  5286. --------------------------------
  5287. 'as' for the Alpha supports many additional directives for compatibility
  5288. with the native assembler. This section describes them only briefly.
  5289. These are the additional directives in 'as' for the Alpha:
  5290. '.arch CPU'
  5291. Specifies the target processor. This is equivalent to the '-mCPU'
  5292. command-line option. *Note Options: Alpha Options, for a list of
  5293. values for CPU.
  5294. '.ent FUNCTION[, N]'
  5295. Mark the beginning of FUNCTION. An optional number may follow for
  5296. compatibility with the OSF/1 assembler, but is ignored. When
  5297. generating '.mdebug' information, this will create a procedure
  5298. descriptor for the function. In ELF, it will mark the symbol as a
  5299. function a-la the generic '.type' directive.
  5300. '.end FUNCTION'
  5301. Mark the end of FUNCTION. In ELF, it will set the size of the
  5302. symbol a-la the generic '.size' directive.
  5303. '.mask MASK, OFFSET'
  5304. Indicate which of the integer registers are saved in the current
  5305. function's stack frame. MASK is interpreted a bit mask in which
  5306. bit N set indicates that register N is saved. The registers are
  5307. saved in a block located OFFSET bytes from the "canonical frame
  5308. address" (CFA) which is the value of the stack pointer on entry to
  5309. the function. The registers are saved sequentially, except that
  5310. the return address register (normally '$26') is saved first.
  5311. This and the other directives that describe the stack frame are
  5312. currently only used when generating '.mdebug' information. They
  5313. may in the future be used to generate DWARF2 '.debug_frame' unwind
  5314. information for hand written assembly.
  5315. '.fmask MASK, OFFSET'
  5316. Indicate which of the floating-point registers are saved in the
  5317. current stack frame. The MASK and OFFSET parameters are
  5318. interpreted as with '.mask'.
  5319. '.frame FRAMEREG, FRAMEOFFSET, RETREG[, ARGOFFSET]'
  5320. Describes the shape of the stack frame. The frame pointer in use
  5321. is FRAMEREG; normally this is either '$fp' or '$sp'. The frame
  5322. pointer is FRAMEOFFSET bytes below the CFA. The return address is
  5323. initially located in RETREG until it is saved as indicated in
  5324. '.mask'. For compatibility with OSF/1 an optional ARGOFFSET
  5325. parameter is accepted and ignored. It is believed to indicate the
  5326. offset from the CFA to the saved argument registers.
  5327. '.prologue N'
  5328. Indicate that the stack frame is set up and all registers have been
  5329. spilled. The argument N indicates whether and how the function
  5330. uses the incoming "procedure vector" (the address of the called
  5331. function) in '$27'. 0 indicates that '$27' is not used; 1
  5332. indicates that the first two instructions of the function use '$27'
  5333. to perform a load of the GP register; 2 indicates that '$27' is
  5334. used in some non-standard way and so the linker cannot elide the
  5335. load of the procedure vector during relaxation.
  5336. '.usepv FUNCTION, WHICH'
  5337. Used to indicate the use of the '$27' register, similar to
  5338. '.prologue', but without the other semantics of needing to be
  5339. inside an open '.ent'/'.end' block.
  5340. The WHICH argument should be either 'no', indicating that '$27' is
  5341. not used, or 'std', indicating that the first two instructions of
  5342. the function perform a GP load.
  5343. One might use this directive instead of '.prologue' if you are also
  5344. using dwarf2 CFI directives.
  5345. '.gprel32 EXPRESSION'
  5346. Computes the difference between the address in EXPRESSION and the
  5347. GP for the current object file, and stores it in 4 bytes. In
  5348. addition to being smaller than a full 8 byte address, this also
  5349. does not require a dynamic relocation when used in a shared
  5350. library.
  5351. '.t_floating EXPRESSION'
  5352. Stores EXPRESSION as an IEEE double precision value.
  5353. '.s_floating EXPRESSION'
  5354. Stores EXPRESSION as an IEEE single precision value.
  5355. '.f_floating EXPRESSION'
  5356. Stores EXPRESSION as a VAX F format value.
  5357. '.g_floating EXPRESSION'
  5358. Stores EXPRESSION as a VAX G format value.
  5359. '.d_floating EXPRESSION'
  5360. Stores EXPRESSION as a VAX D format value.
  5361. '.set FEATURE'
  5362. Enables or disables various assembler features. Using the positive
  5363. name of the feature enables while using 'noFEATURE' disables.
  5364. 'at'
  5365. Indicates that macro expansions may clobber the "assembler
  5366. temporary" ('$at' or '$28') register. Some macros may not be
  5367. expanded without this and will generate an error message if
  5368. 'noat' is in effect. When 'at' is in effect, a warning will
  5369. be generated if '$at' is used by the programmer.
  5370. 'macro'
  5371. Enables the expansion of macro instructions. Note that
  5372. variants of real instructions, such as 'br label' vs 'br
  5373. $31,label' are considered alternate forms and not macros.
  5374. 'move'
  5375. 'reorder'
  5376. 'volatile'
  5377. These control whether and how the assembler may re-order
  5378. instructions. Accepted for compatibility with the OSF/1
  5379. assembler, but 'as' does not do instruction scheduling, so
  5380. these features are ignored.
  5381. The following directives are recognized for compatibility with the
  5382. OSF/1 assembler but are ignored.
  5383. .proc .aproc
  5384. .reguse .livereg
  5385. .option .aent
  5386. .ugen .eflag
  5387. .alias .noalias
  5388. 
  5389. File: as.info, Node: Alpha Opcodes, Prev: Alpha Directives, Up: Alpha-Dependent
  5390. 9.2.6 Opcodes
  5391. -------------
  5392. For detailed information on the Alpha machine instruction set, see the
  5393. Alpha Architecture Handbook
  5394. (ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf).
  5395. 
  5396. File: as.info, Node: ARC-Dependent, Next: ARM-Dependent, Prev: Alpha-Dependent, Up: Machine Dependencies
  5397. 9.3 ARC Dependent Features
  5398. ==========================
  5399. * Menu:
  5400. * ARC Options:: Options
  5401. * ARC Syntax:: Syntax
  5402. * ARC Directives:: ARC Machine Directives
  5403. * ARC Modifiers:: ARC Assembler Modifiers
  5404. * ARC Symbols:: ARC Pre-defined Symbols
  5405. * ARC Opcodes:: Opcodes
  5406. 
  5407. File: as.info, Node: ARC Options, Next: ARC Syntax, Up: ARC-Dependent
  5408. 9.3.1 Options
  5409. -------------
  5410. The following options control the type of CPU for which code is
  5411. assembled, and generic constraints on the code generated:
  5412. '-mcpu=CPU'
  5413. Set architecture type and register usage for CPU. There are also
  5414. shortcut alias options available for backward compatibility and
  5415. convenience. Supported values for CPU are
  5416. 'arc600'
  5417. Assemble for ARC 600. Aliases: '-mA6', '-mARC600'.
  5418. 'arc600_norm'
  5419. Assemble for ARC 600 with norm instructions.
  5420. 'arc600_mul64'
  5421. Assemble for ARC 600 with mul64 instructions.
  5422. 'arc600_mul32x16'
  5423. Assemble for ARC 600 with mul32x16 instructions.
  5424. 'arc601'
  5425. Assemble for ARC 601. Alias: '-mARC601'.
  5426. 'arc601_norm'
  5427. Assemble for ARC 601 with norm instructions.
  5428. 'arc601_mul64'
  5429. Assemble for ARC 601 with mul64 instructions.
  5430. 'arc601_mul32x16'
  5431. Assemble for ARC 601 with mul32x16 instructions.
  5432. 'arc700'
  5433. Assemble for ARC 700. Aliases: '-mA7', '-mARC700'.
  5434. 'arcem'
  5435. Assemble for ARC EM. Aliases: '-mEM'
  5436. 'em'
  5437. Assemble for ARC EM, identical as arcem variant.
  5438. 'em4'
  5439. Assemble for ARC EM with code-density instructions.
  5440. 'em4_dmips'
  5441. Assemble for ARC EM with code-density instructions.
  5442. 'em4_fpus'
  5443. Assemble for ARC EM with code-density instructions.
  5444. 'em4_fpuda'
  5445. Assemble for ARC EM with code-density, and double-precision
  5446. assist instructions.
  5447. 'quarkse_em'
  5448. Assemble for QuarkSE-EM cpu.
  5449. 'archs'
  5450. Assemble for ARC HS. Aliases: '-mHS', '-mav2hs'.
  5451. 'hs'
  5452. Assemble for ARC HS.
  5453. 'hs34'
  5454. Assemble for ARC HS34.
  5455. 'hs38'
  5456. Assemble for ARC HS38.
  5457. 'hs38_linux'
  5458. Assemble for ARC HS38 with floating point support on.
  5459. 'nps400'
  5460. Assemble for ARC 700 with NPS-400 extended instructions.
  5461. Note: the '.cpu' directive (*note ARC Directives::) can to be used
  5462. to select a core variant from within assembly code.
  5463. '-EB'
  5464. This option specifies that the output generated by the assembler
  5465. should be marked as being encoded for a big-endian processor.
  5466. '-EL'
  5467. This option specifies that the output generated by the assembler
  5468. should be marked as being encoded for a little-endian processor -
  5469. this is the default.
  5470. '-mcode-density'
  5471. This option turns on Code Density instructions. Only valid for ARC
  5472. EM processors.
  5473. '-mrelax'
  5474. Enable support for assembly-time relaxation. The assembler will
  5475. replace a longer version of an instruction with a shorter one,
  5476. whenever it is possible.
  5477. '-mnps400'
  5478. Enable support for NPS-400 extended instructions.
  5479. '-mspfp'
  5480. Enable support for single-precision floating point instructions.
  5481. '-mdpfp'
  5482. Enable support for double-precision floating point instructions.
  5483. '-mfpuda'
  5484. Enable support for double-precision assist floating point
  5485. instructions. Only valid for ARC EM processors.
  5486. 
  5487. File: as.info, Node: ARC Syntax, Next: ARC Directives, Prev: ARC Options, Up: ARC-Dependent
  5488. 9.3.2 Syntax
  5489. ------------
  5490. * Menu:
  5491. * ARC-Chars:: Special Characters
  5492. * ARC-Regs:: Register Names
  5493. 
  5494. File: as.info, Node: ARC-Chars, Next: ARC-Regs, Up: ARC Syntax
  5495. 9.3.2.1 Special Characters
  5496. ..........................
  5497. '%'
  5498. A register name can optionally be prefixed by a '%' character. So
  5499. register '%r0' is equivalent to 'r0' in the assembly code.
  5500. '#'
  5501. The presence of a '#' character within a line (but not at the start
  5502. of a line) indicates the start of a comment that extends to the end
  5503. of the current line.
  5504. _Note:_ if a line starts with a '#' character then it can also be a
  5505. logical line number directive (*note Comments::) or a preprocessor
  5506. control command (*note Preprocessing::).
  5507. '@'
  5508. Prefixing an operand with an '@' specifies that the operand is a
  5509. symbol and not a register. This is how the assembler disambiguates
  5510. the use of an ARC register name as a symbol. So the instruction
  5511. mov r0, @r0
  5512. moves the address of symbol 'r0' into register 'r0'.
  5513. '`'
  5514. The '`' (backtick) character is used to separate statements on a
  5515. single line.
  5516. '-'
  5517. Used as a separator to obtain a sequence of commands from a C
  5518. preprocessor macro.
  5519. 
  5520. File: as.info, Node: ARC-Regs, Prev: ARC-Chars, Up: ARC Syntax
  5521. 9.3.2.2 Register Names
  5522. ......................
  5523. The ARC assembler uses the following register names for its core
  5524. registers:
  5525. 'r0-r31'
  5526. The core general registers. Registers 'r26' through 'r31' have
  5527. special functions, and are usually referred to by those synonyms.
  5528. 'gp'
  5529. The global pointer and a synonym for 'r26'.
  5530. 'fp'
  5531. The frame pointer and a synonym for 'r27'.
  5532. 'sp'
  5533. The stack pointer and a synonym for 'r28'.
  5534. 'ilink1'
  5535. For ARC 600 and ARC 700, the level 1 interrupt link register and a
  5536. synonym for 'r29'. Not supported for ARCv2.
  5537. 'ilink'
  5538. For ARCv2, the interrupt link register and a synonym for 'r29'.
  5539. Not supported for ARC 600 and ARC 700.
  5540. 'ilink2'
  5541. For ARC 600 and ARC 700, the level 2 interrupt link register and a
  5542. synonym for 'r30'. Not supported for ARC v2.
  5543. 'blink'
  5544. The link register and a synonym for 'r31'.
  5545. 'r32-r59'
  5546. The extension core registers.
  5547. 'lp_count'
  5548. The loop count register.
  5549. 'pcl'
  5550. The word aligned program counter.
  5551. In addition the ARC processor has a large number of _auxiliary
  5552. registers_. The precise set depends on the extensions being supported,
  5553. but the following baseline set are always defined:
  5554. 'identity'
  5555. Processor Identification register. Auxiliary register address 0x4.
  5556. 'pc'
  5557. Program Counter. Auxiliary register address 0x6.
  5558. 'status32'
  5559. Status register. Auxiliary register address 0x0a.
  5560. 'bta'
  5561. Branch Target Address. Auxiliary register address 0x412.
  5562. 'ecr'
  5563. Exception Cause Register. Auxiliary register address 0x403.
  5564. 'int_vector_base'
  5565. Interrupt Vector Base address. Auxiliary register address 0x25.
  5566. 'status32_p0'
  5567. Stored STATUS32 register on entry to level P0 interrupts.
  5568. Auxiliary register address 0xb.
  5569. 'aux_user_sp'
  5570. Saved User Stack Pointer. Auxiliary register address 0xd.
  5571. 'eret'
  5572. Exception Return Address. Auxiliary register address 0x400.
  5573. 'erbta'
  5574. BTA saved on exception entry. Auxiliary register address 0x401.
  5575. 'erstatus'
  5576. STATUS32 saved on exception. Auxiliary register address 0x402.
  5577. 'bcr_ver'
  5578. Build Configuration Registers Version. Auxiliary register address
  5579. 0x60.
  5580. 'bta_link_build'
  5581. Build configuration for: BTA Registers. Auxiliary register address
  5582. 0x63.
  5583. 'vecbase_ac_build'
  5584. Build configuration for: Interrupts. Auxiliary register address
  5585. 0x68.
  5586. 'rf_build'
  5587. Build configuration for: Core Registers. Auxiliary register
  5588. address 0x6e.
  5589. 'dccm_build'
  5590. DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  5591. Additional auxiliary register names are defined according to the
  5592. processor architecture version and extensions selected by the options.
  5593. 
  5594. File: as.info, Node: ARC Directives, Next: ARC Modifiers, Prev: ARC Syntax, Up: ARC-Dependent
  5595. 9.3.3 ARC Machine Directives
  5596. ----------------------------
  5597. The ARC version of 'as' supports the following additional machine
  5598. directives:
  5599. '.lcomm SYMBOL, LENGTH[, ALIGNMENT]'
  5600. Reserve LENGTH (an absolute expression) bytes for a local common
  5601. denoted by SYMBOL. The section and value of SYMBOL are those of
  5602. the new local common. The addresses are allocated in the bss
  5603. section, so that at run-time the bytes start off zeroed. Since
  5604. SYMBOL is not declared global, it is normally not visible to 'ld'.
  5605. The optional third parameter, ALIGNMENT, specifies the desired
  5606. alignment of the symbol in the bss section, specified as a byte
  5607. boundary (for example, an alignment of 16 means that the least
  5608. significant 4 bits of the address should be zero). The alignment
  5609. must be an absolute expression, and it must be a power of two. If
  5610. no alignment is specified, as will set the alignment to the largest
  5611. power of two less than or equal to the size of the symbol, up to a
  5612. maximum of 16.
  5613. '.lcommon SYMBOL, LENGTH[, ALIGNMENT]'
  5614. The same as 'lcomm' directive.
  5615. '.cpu CPU'
  5616. The '.cpu' directive must be followed by the desired core version.
  5617. Permitted values for CPU are:
  5618. 'ARC600'
  5619. Assemble for the ARC600 instruction set.
  5620. 'arc600_norm'
  5621. Assemble for ARC 600 with norm instructions.
  5622. 'arc600_mul64'
  5623. Assemble for ARC 600 with mul64 instructions.
  5624. 'arc600_mul32x16'
  5625. Assemble for ARC 600 with mul32x16 instructions.
  5626. 'arc601'
  5627. Assemble for ARC 601 instruction set.
  5628. 'arc601_norm'
  5629. Assemble for ARC 601 with norm instructions.
  5630. 'arc601_mul64'
  5631. Assemble for ARC 601 with mul64 instructions.
  5632. 'arc601_mul32x16'
  5633. Assemble for ARC 601 with mul32x16 instructions.
  5634. 'ARC700'
  5635. Assemble for the ARC700 instruction set.
  5636. 'NPS400'
  5637. Assemble for the NPS400 instruction set.
  5638. 'EM'
  5639. Assemble for the ARC EM instruction set.
  5640. 'arcem'
  5641. Assemble for ARC EM instruction set
  5642. 'em4'
  5643. Assemble for ARC EM with code-density instructions.
  5644. 'em4_dmips'
  5645. Assemble for ARC EM with code-density instructions.
  5646. 'em4_fpus'
  5647. Assemble for ARC EM with code-density instructions.
  5648. 'em4_fpuda'
  5649. Assemble for ARC EM with code-density, and double-precision
  5650. assist instructions.
  5651. 'quarkse_em'
  5652. Assemble for QuarkSE-EM instruction set.
  5653. 'HS'
  5654. Assemble for the ARC HS instruction set.
  5655. 'archs'
  5656. Assemble for ARC HS instruction set.
  5657. 'hs'
  5658. Assemble for ARC HS instruction set.
  5659. 'hs34'
  5660. Assemble for ARC HS34 instruction set.
  5661. 'hs38'
  5662. Assemble for ARC HS38 instruction set.
  5663. 'hs38_linux'
  5664. Assemble for ARC HS38 with floating point support on.
  5665. Note: the '.cpu' directive overrides the command-line option
  5666. '-mcpu=CPU'; a warning is emitted when the version is not
  5667. consistent between the two.
  5668. '.extAuxRegister NAME, ADDR, MODE'
  5669. Auxiliary registers can be defined in the assembler source code by
  5670. using this directive. The first parameter, NAME, is the name of
  5671. the new auxiliary register. The second parameter, ADDR, is address
  5672. the of the auxiliary register. The third parameter, MODE,
  5673. specifies whether the register is readable and/or writable and is
  5674. one of:
  5675. 'r'
  5676. Read only;
  5677. 'w'
  5678. Write only;
  5679. 'r|w'
  5680. Read and write.
  5681. For example:
  5682. .extAuxRegister mulhi, 0x12, w
  5683. specifies a write only extension auxiliary register, MULHI at
  5684. address 0x12.
  5685. '.extCondCode SUFFIX, VAL'
  5686. ARC supports extensible condition codes. This directive defines a
  5687. new condition code, to be known by the suffix, SUFFIX and will
  5688. depend on the value, VAL in the condition code.
  5689. For example:
  5690. .extCondCode is_busy,0x14
  5691. add.is_busy r1,r2,r3
  5692. will only execute the 'add' instruction if the condition code value
  5693. is 0x14.
  5694. '.extCoreRegister NAME, REGNUM, MODE, SHORTCUT'
  5695. Specifies an extension core register named NAME as a synonym for
  5696. the register numbered REGNUM. The register number must be between
  5697. 32 and 59. The third argument, MODE, indicates whether the
  5698. register is readable and/or writable and is one of:
  5699. 'r'
  5700. Read only;
  5701. 'w'
  5702. Write only;
  5703. 'r|w'
  5704. Read and write.
  5705. The final parameter, SHORTCUT indicates whether the register has a
  5706. short cut in the pipeline. The valid values are:
  5707. 'can_shortcut'
  5708. The register has a short cut in the pipeline;
  5709. 'cannot_shortcut'
  5710. The register does not have a short cut in the pipeline.
  5711. For example:
  5712. .extCoreRegister mlo, 57, r , can_shortcut
  5713. defines a read only extension core register, 'mlo', which is
  5714. register 57, and can short cut the pipeline.
  5715. '.extInstruction NAME, OPCODE, SUBOPCODE, SUFFIXCLASS, SYNTAXCLASS'
  5716. ARC allows the user to specify extension instructions. These
  5717. extension instructions are not macros; the assembler creates
  5718. encodings for use of these instructions according to the
  5719. specification by the user.
  5720. The first argument, NAME, gives the name of the instruction.
  5721. The second argument, OPCODE, is the opcode to be used (bits 31:27
  5722. in the encoding).
  5723. The third argument, SUBOPCODE, is the sub-opcode to be used, but
  5724. the correct value also depends on the fifth argument, SYNTAXCLASS
  5725. The fourth argument, SUFFIXCLASS, determines the kinds of suffixes
  5726. to be allowed. Valid values are:
  5727. 'SUFFIX_NONE'
  5728. No suffixes are permitted;
  5729. 'SUFFIX_COND'
  5730. Conditional suffixes are permitted;
  5731. 'SUFFIX_FLAG'
  5732. Flag setting suffixes are permitted.
  5733. 'SUFFIX_COND|SUFFIX_FLAG'
  5734. Both conditional and flag setting suffices are permitted.
  5735. The fifth and final argument, SYNTAXCLASS, determines the syntax
  5736. class for the instruction. It can have the following values:
  5737. 'SYNTAX_2OP'
  5738. Two Operand Instruction;
  5739. 'SYNTAX_3OP'
  5740. Three Operand Instruction.
  5741. 'SYNTAX_1OP'
  5742. One Operand Instruction.
  5743. 'SYNTAX_NOP'
  5744. No Operand Instruction.
  5745. The syntax class may be followed by '|' and one of the following
  5746. modifiers.
  5747. 'OP1_MUST_BE_IMM'
  5748. Modifies syntax class 'SYNTAX_3OP', specifying that the first
  5749. operand of a three-operand instruction must be an immediate
  5750. (i.e., the result is discarded). This is usually used to set
  5751. the flags using specific instructions and not retain results.
  5752. 'OP1_IMM_IMPLIED'
  5753. Modifies syntax class 'SYNTAX_20P', specifying that there is
  5754. an implied immediate destination operand which does not appear
  5755. in the syntax.
  5756. For example, if the source code contains an instruction like:
  5757. inst r1,r2
  5758. the first argument is an implied immediate (that is, the
  5759. result is discarded). This is the same as though the source
  5760. code were: inst 0,r1,r2.
  5761. For example, defining a 64-bit multiplier with immediate operands:
  5762. .extInstruction mp64, 0x07, 0x2d, SUFFIX_COND|SUFFIX_FLAG,
  5763. SYNTAX_3OP|OP1_MUST_BE_IMM
  5764. which specifies an extension instruction named 'mp64' with 3
  5765. operands. It sets the flags and can be used with a condition code,
  5766. for which the first operand is an immediate, i.e. equivalent to
  5767. discarding the result of the operation.
  5768. A two operands instruction variant would be:
  5769. .extInstruction mul64, 0x07, 0x2d, SUFFIX_COND,
  5770. SYNTAX_2OP|OP1_IMM_IMPLIED
  5771. which describes a two operand instruction with an implicit first
  5772. immediate operand. The result of this operation would be
  5773. discarded.
  5774. '.arc_attribute TAG, VALUE'
  5775. Set the ARC object attribute TAG to VALUE.
  5776. The TAG is either an attribute number, or one of the following:
  5777. 'Tag_ARC_PCS_config', 'Tag_ARC_CPU_base', 'Tag_ARC_CPU_variation',
  5778. 'Tag_ARC_CPU_name', 'Tag_ARC_ABI_rf16', 'Tag_ARC_ABI_osver',
  5779. 'Tag_ARC_ABI_sda', 'Tag_ARC_ABI_pic', 'Tag_ARC_ABI_tls',
  5780. 'Tag_ARC_ABI_enumsize', 'Tag_ARC_ABI_exceptions',
  5781. 'Tag_ARC_ABI_double_size', 'Tag_ARC_ISA_config',
  5782. 'Tag_ARC_ISA_apex', 'Tag_ARC_ISA_mpy_option'
  5783. The VALUE is either a 'number', '"string"', or 'number, "string"'
  5784. depending on the tag.
  5785. 
  5786. File: as.info, Node: ARC Modifiers, Next: ARC Symbols, Prev: ARC Directives, Up: ARC-Dependent
  5787. 9.3.4 ARC Assembler Modifiers
  5788. -----------------------------
  5789. The following additional assembler modifiers have been added for
  5790. position-independent code. These modifiers are available only with the
  5791. ARC 700 and above processors and generate relocation entries, which are
  5792. interpreted by the linker as follows:
  5793. '@pcl(SYMBOL)'
  5794. Relative distance of SYMBOL's from the current program counter
  5795. location.
  5796. '@gotpc(SYMBOL)'
  5797. Relative distance of SYMBOL's Global Offset Table entry from the
  5798. current program counter location.
  5799. '@gotoff(SYMBOL)'
  5800. Distance of SYMBOL from the base of the Global Offset Table.
  5801. '@plt(SYMBOL)'
  5802. Distance of SYMBOL's Procedure Linkage Table entry from the current
  5803. program counter. This is valid only with branch and link
  5804. instructions and PC-relative calls.
  5805. '@sda(SYMBOL)'
  5806. Relative distance of SYMBOL from the base of the Small Data
  5807. Pointer.
  5808. 
  5809. File: as.info, Node: ARC Symbols, Next: ARC Opcodes, Prev: ARC Modifiers, Up: ARC-Dependent
  5810. 9.3.5 ARC Pre-defined Symbols
  5811. -----------------------------
  5812. The following assembler symbols will prove useful when developing
  5813. position-independent code. These symbols are available only with the
  5814. ARC 700 and above processors.
  5815. '__GLOBAL_OFFSET_TABLE__'
  5816. Symbol referring to the base of the Global Offset Table.
  5817. '__DYNAMIC__'
  5818. An alias for the Global Offset Table 'Base__GLOBAL_OFFSET_TABLE__'.
  5819. It can be used only with '@gotpc' modifiers.
  5820. 
  5821. File: as.info, Node: ARC Opcodes, Prev: ARC Symbols, Up: ARC-Dependent
  5822. 9.3.6 Opcodes
  5823. -------------
  5824. For information on the ARC instruction set, see 'ARC Programmers
  5825. Reference Manual', available where you download the processor IP
  5826. library.
  5827. 
  5828. File: as.info, Node: ARM-Dependent, Next: AVR-Dependent, Prev: ARC-Dependent, Up: Machine Dependencies
  5829. 9.4 ARM Dependent Features
  5830. ==========================
  5831. * Menu:
  5832. * ARM Options:: Options
  5833. * ARM Syntax:: Syntax
  5834. * ARM Floating Point:: Floating Point
  5835. * ARM Directives:: ARM Machine Directives
  5836. * ARM Opcodes:: Opcodes
  5837. * ARM Mapping Symbols:: Mapping Symbols
  5838. * ARM Unwinding Tutorial:: Unwinding
  5839. 
  5840. File: as.info, Node: ARM Options, Next: ARM Syntax, Up: ARM-Dependent
  5841. 9.4.1 Options
  5842. -------------
  5843. '-mcpu=PROCESSOR[+EXTENSION...]'
  5844. This option specifies the target processor. The assembler will
  5845. issue an error message if an attempt is made to assemble an
  5846. instruction which will not execute on the target processor. The
  5847. following processor names are recognized: 'arm1', 'arm2', 'arm250',
  5848. 'arm3', 'arm6', 'arm60', 'arm600', 'arm610', 'arm620', 'arm7',
  5849. 'arm7m', 'arm7d', 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700',
  5850. 'arm700i', 'arm710', 'arm710t', 'arm720', 'arm720t', 'arm740t',
  5851. 'arm710c', 'arm7100', 'arm7500', 'arm7500fe', 'arm7t', 'arm7tdmi',
  5852. 'arm7tdmi-s', 'arm8', 'arm810', 'strongarm', 'strongarm1',
  5853. 'strongarm110', 'strongarm1100', 'strongarm1110', 'arm9', 'arm920',
  5854. 'arm920t', 'arm922t', 'arm940t', 'arm9tdmi', 'fa526' (Faraday FA526
  5855. processor), 'fa626' (Faraday FA626 processor), 'arm9e', 'arm926e',
  5856. 'arm926ej-s', 'arm946e-r0', 'arm946e', 'arm946e-s', 'arm966e-r0',
  5857. 'arm966e', 'arm966e-s', 'arm968e-s', 'arm10t', 'arm10tdmi',
  5858. 'arm10e', 'arm1020', 'arm1020t', 'arm1020e', 'arm1022e',
  5859. 'arm1026ej-s', 'fa606te' (Faraday FA606TE processor), 'fa616te'
  5860. (Faraday FA616TE processor), 'fa626te' (Faraday FA626TE processor),
  5861. 'fmp626' (Faraday FMP626 processor), 'fa726te' (Faraday FA726TE
  5862. processor), 'arm1136j-s', 'arm1136jf-s', 'arm1156t2-s',
  5863. 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s', 'mpcore',
  5864. 'mpcorenovfp', 'cortex-a5', 'cortex-a7', 'cortex-a8', 'cortex-a9',
  5865. 'cortex-a15', 'cortex-a17', 'cortex-a32', 'cortex-a35',
  5866. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  5867. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'ares', 'cortex-r4',
  5868. 'cortex-r4f', 'cortex-r5', 'cortex-r7', 'cortex-r8', 'cortex-r52',
  5869. 'cortex-m33', 'cortex-m23', 'cortex-m7', 'cortex-m4', 'cortex-m3',
  5870. 'cortex-m1', 'cortex-m0', 'cortex-m0plus', 'exynos-m1',
  5871. 'marvell-pj4', 'marvell-whitney', 'xgene1', 'xgene2', 'ep9312'
  5872. (ARM920 with Cirrus Maverick coprocessor), 'i80200' (Intel XScale
  5873. processor) 'iwmmxt' (Intel(r) XScale processor with Wireless
  5874. MMX(tm) technology coprocessor) and 'xscale'. The special name
  5875. 'all' may be used to allow the assembler to accept instructions
  5876. valid for any ARM processor.
  5877. In addition to the basic instruction set, the assembler can be told
  5878. to accept various extension mnemonics that extend the processor
  5879. using the co-processor instruction space. For example,
  5880. '-mcpu=arm920+maverick' is equivalent to specifying '-mcpu=ep9312'.
  5881. Multiple extensions may be specified, separated by a '+'. The
  5882. extensions should be specified in ascending alphabetical order.
  5883. Some extensions may be restricted to particular architectures; this
  5884. is documented in the list of extensions below.
  5885. Extension mnemonics may also be removed from those the assembler
  5886. accepts. This is done be prepending 'no' to the option that adds
  5887. the extension. Extensions that are removed should be listed after
  5888. all extensions which have been added, again in ascending
  5889. alphabetical order. For example, '-mcpu=ep9312+nomaverick' is
  5890. equivalent to specifying '-mcpu=arm920'.
  5891. The following extensions are currently supported: 'crc' 'crypto'
  5892. (Cryptography Extensions for v8-A architecture, implies 'fp+simd'),
  5893. 'dotprod' (Dot Product Extensions for v8.2-A architecture, implies
  5894. 'fp+simd'), 'fp' (Floating Point Extensions for v8-A architecture),
  5895. 'fp16' (FP16 Extensions for v8.2-A architecture, implies 'fp'),
  5896. 'fp16fml' (FP16 Floating Point Multiplication Variant Extensions
  5897. for v8.2-A architecture, implies 'fp16'), 'idiv' (Integer Divide
  5898. Extensions for v7-A and v7-R architectures), 'iwmmxt', 'iwmmxt2',
  5899. 'xscale', 'maverick', 'mp' (Multiprocessing Extensions for v7-A and
  5900. v7-R architectures), 'os' (Operating System for v6M architecture),
  5901. 'predres' (Execution and Data Prediction Restriction Instruction
  5902. for v8-A architectures, added by default from v8.5-A), 'sb'
  5903. (Speculation Barrier Instruction for v8-A architectures, added by
  5904. default from v8.5-A), 'sec' (Security Extensions for v6K and v7-A
  5905. architectures), 'simd' (Advanced SIMD Extensions for v8-A
  5906. architecture, implies 'fp'), 'virt' (Virtualization Extensions for
  5907. v7-A architecture, implies 'idiv'), 'pan' (Privileged Access Never
  5908. Extensions for v8-A architecture), 'ras' (Reliability, Availability
  5909. and Serviceability extensions for v8-A architecture), 'rdma'
  5910. (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  5911. 'simd') and 'xscale'.
  5912. '-march=ARCHITECTURE[+EXTENSION...]'
  5913. This option specifies the target architecture. The assembler will
  5914. issue an error message if an attempt is made to assemble an
  5915. instruction which will not execute on the target architecture. The
  5916. following architecture names are recognized: 'armv1', 'armv2',
  5917. 'armv2a', 'armv2s', 'armv3', 'armv3m', 'armv4', 'armv4xm',
  5918. 'armv4t', 'armv4txm', 'armv5', 'armv5t', 'armv5txm', 'armv5te',
  5919. 'armv5texp', 'armv6', 'armv6j', 'armv6k', 'armv6z', 'armv6kz',
  5920. 'armv6-m', 'armv6s-m', 'armv7', 'armv7-a', 'armv7ve', 'armv7-r',
  5921. 'armv7-m', 'armv7e-m', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  5922. 'armv8.3-a', 'armv8-r', 'armv8.4-a', 'armv8.5-a', 'iwmmxt'
  5923. 'iwmmxt2' and 'xscale'. If both '-mcpu' and '-march' are
  5924. specified, the assembler will use the setting for '-mcpu'.
  5925. The architecture option can be extended with the same instruction
  5926. set extension options as the '-mcpu' option.
  5927. '-mfpu=FLOATING-POINT-FORMAT'
  5928. This option specifies the floating point format to assemble for.
  5929. The assembler will issue an error message if an attempt is made to
  5930. assemble an instruction which will not execute on the target
  5931. floating point unit. The following format options are recognized:
  5932. 'softfpa', 'fpe', 'fpe2', 'fpe3', 'fpa', 'fpa10', 'fpa11',
  5933. 'arm7500fe', 'softvfp', 'softvfp+vfp', 'vfp', 'vfp10', 'vfp10-r0',
  5934. 'vfp9', 'vfpxd', 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16',
  5935. 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-d16', 'vfpv4', 'vfpv4-d16',
  5936. 'fpv4-sp-d16', 'fpv5-sp-d16', 'fpv5-d16', 'fp-armv8', 'arm1020t',
  5937. 'arm1020e', 'arm1136jf-s', 'maverick', 'neon', 'neon-vfpv3',
  5938. 'neon-fp16', 'neon-vfpv4', 'neon-fp-armv8', 'crypto-neon-fp-armv8',
  5939. 'neon-fp-armv8.1' and 'crypto-neon-fp-armv8.1'.
  5940. In addition to determining which instructions are assembled, this
  5941. option also affects the way in which the '.double' assembler
  5942. directive behaves when assembling little-endian code.
  5943. The default is dependent on the processor selected. For
  5944. Architecture 5 or later, the default is to assemble for VFP
  5945. instructions; for earlier architectures the default is to assemble
  5946. for FPA instructions.
  5947. '-mthumb'
  5948. This option specifies that the assembler should start assembling
  5949. Thumb instructions; that is, it should behave as though the file
  5950. starts with a '.code 16' directive.
  5951. '-mthumb-interwork'
  5952. This option specifies that the output generated by the assembler
  5953. should be marked as supporting interworking. It also affects the
  5954. behaviour of the 'ADR' and 'ADRL' pseudo opcodes.
  5955. '-mimplicit-it=never'
  5956. '-mimplicit-it=always'
  5957. '-mimplicit-it=arm'
  5958. '-mimplicit-it=thumb'
  5959. The '-mimplicit-it' option controls the behavior of the assembler
  5960. when conditional instructions are not enclosed in IT blocks. There
  5961. are four possible behaviors. If 'never' is specified, such
  5962. constructs cause a warning in ARM code and an error in Thumb-2
  5963. code. If 'always' is specified, such constructs are accepted in
  5964. both ARM and Thumb-2 code, where the IT instruction is added
  5965. implicitly. If 'arm' is specified, such constructs are accepted in
  5966. ARM code and cause an error in Thumb-2 code. If 'thumb' is
  5967. specified, such constructs cause a warning in ARM code and are
  5968. accepted in Thumb-2 code. If you omit this option, the behavior is
  5969. equivalent to '-mimplicit-it=arm'.
  5970. '-mapcs-26'
  5971. '-mapcs-32'
  5972. These options specify that the output generated by the assembler
  5973. should be marked as supporting the indicated version of the Arm
  5974. Procedure. Calling Standard.
  5975. '-matpcs'
  5976. This option specifies that the output generated by the assembler
  5977. should be marked as supporting the Arm/Thumb Procedure Calling
  5978. Standard. If enabled this option will cause the assembler to
  5979. create an empty debugging section in the object file called
  5980. .arm.atpcs. Debuggers can use this to determine the ABI being used
  5981. by.
  5982. '-mapcs-float'
  5983. This indicates the floating point variant of the APCS should be
  5984. used. In this variant floating point arguments are passed in FP
  5985. registers rather than integer registers.
  5986. '-mapcs-reentrant'
  5987. This indicates that the reentrant variant of the APCS should be
  5988. used. This variant supports position independent code.
  5989. '-mfloat-abi=ABI'
  5990. This option specifies that the output generated by the assembler
  5991. should be marked as using specified floating point ABI. The
  5992. following values are recognized: 'soft', 'softfp' and 'hard'.
  5993. '-meabi=VER'
  5994. This option specifies which EABI version the produced object files
  5995. should conform to. The following values are recognized: 'gnu', '4'
  5996. and '5'.
  5997. '-EB'
  5998. This option specifies that the output generated by the assembler
  5999. should be marked as being encoded for a big-endian processor.
  6000. Note: If a program is being built for a system with big-endian data
  6001. and little-endian instructions then it should be assembled with the
  6002. '-EB' option, (all of it, code and data) and then linked with the
  6003. '--be8' option. This will reverse the endianness of the
  6004. instructions back to little-endian, but leave the data as
  6005. big-endian.
  6006. '-EL'
  6007. This option specifies that the output generated by the assembler
  6008. should be marked as being encoded for a little-endian processor.
  6009. '-k'
  6010. This option specifies that the output of the assembler should be
  6011. marked as position-independent code (PIC).
  6012. '--fix-v4bx'
  6013. Allow 'BX' instructions in ARMv4 code. This is intended for use
  6014. with the linker option of the same name.
  6015. '-mwarn-deprecated'
  6016. '-mno-warn-deprecated'
  6017. Enable or disable warnings about using deprecated options or
  6018. features. The default is to warn.
  6019. '-mccs'
  6020. Turns on CodeComposer Studio assembly syntax compatibility mode.
  6021. '-mwarn-syms'
  6022. '-mno-warn-syms'
  6023. Enable or disable warnings about symbols that match the names of
  6024. ARM instructions. The default is to warn.
  6025. 
  6026. File: as.info, Node: ARM Syntax, Next: ARM Floating Point, Prev: ARM Options, Up: ARM-Dependent
  6027. 9.4.2 Syntax
  6028. ------------
  6029. * Menu:
  6030. * ARM-Instruction-Set:: Instruction Set
  6031. * ARM-Chars:: Special Characters
  6032. * ARM-Regs:: Register Names
  6033. * ARM-Relocations:: Relocations
  6034. * ARM-Neon-Alignment:: NEON Alignment Specifiers
  6035. 
  6036. File: as.info, Node: ARM-Instruction-Set, Next: ARM-Chars, Up: ARM Syntax
  6037. 9.4.2.1 Instruction Set Syntax
  6038. ..............................
  6039. Two slightly different syntaxes are support for ARM and THUMB
  6040. instructions. The default, 'divided', uses the old style where ARM and
  6041. THUMB instructions had their own, separate syntaxes. The new, 'unified'
  6042. syntax, which can be selected via the '.syntax' directive, and has the
  6043. following main features:
  6044. * Immediate operands do not require a '#' prefix.
  6045. * The 'IT' instruction may appear, and if it does it is validated
  6046. against subsequent conditional affixes. In ARM mode it does not
  6047. generate machine code, in THUMB mode it does.
  6048. * For ARM instructions the conditional affixes always appear at the
  6049. end of the instruction. For THUMB instructions conditional affixes
  6050. can be used, but only inside the scope of an 'IT' instruction.
  6051. * All of the instructions new to the V6T2 architecture (and later)
  6052. are available. (Only a few such instructions can be written in the
  6053. 'divided' syntax).
  6054. * The '.N' and '.W' suffixes are recognized and honored.
  6055. * All instructions set the flags if and only if they have an 's'
  6056. affix.
  6057. 
  6058. File: as.info, Node: ARM-Chars, Next: ARM-Regs, Prev: ARM-Instruction-Set, Up: ARM Syntax
  6059. 9.4.2.2 Special Characters
  6060. ..........................
  6061. The presence of a '@' anywhere on a line indicates the start of a
  6062. comment that extends to the end of that line.
  6063. If a '#' appears as the first character of a line then the whole line
  6064. is treated as a comment, but in this case the line could also be a
  6065. logical line number directive (*note Comments::) or a preprocessor
  6066. control command (*note Preprocessing::).
  6067. The ';' character can be used instead of a newline to separate
  6068. statements.
  6069. Either '#' or '$' can be used to indicate immediate operands.
  6070. *TODO* Explain about /data modifier on symbols.
  6071. 
  6072. File: as.info, Node: ARM-Regs, Next: ARM-Relocations, Prev: ARM-Chars, Up: ARM Syntax
  6073. 9.4.2.3 Register Names
  6074. ......................
  6075. *TODO* Explain about ARM register naming, and the predefined names.
  6076. 
  6077. File: as.info, Node: ARM-Relocations, Next: ARM-Neon-Alignment, Prev: ARM-Regs, Up: ARM Syntax
  6078. 9.4.2.4 ARM relocation generation
  6079. .................................
  6080. Specific data relocations can be generated by putting the relocation
  6081. name in parentheses after the symbol name. For example:
  6082. .word foo(TARGET1)
  6083. This will generate an 'R_ARM_TARGET1' relocation against the symbol
  6084. FOO. The following relocations are supported: 'GOT', 'GOTOFF',
  6085. 'TARGET1', 'TARGET2', 'SBREL', 'TLSGD', 'TLSLDM', 'TLSLDO', 'TLSDESC',
  6086. 'TLSCALL', 'GOTTPOFF', 'GOT_PREL' and 'TPOFF'.
  6087. For compatibility with older toolchains the assembler also accepts
  6088. '(PLT)' after branch targets. On legacy targets this will generate the
  6089. deprecated 'R_ARM_PLT32' relocation. On EABI targets it will encode
  6090. either the 'R_ARM_CALL' or 'R_ARM_JUMP24' relocation, as appropriate.
  6091. Relocations for 'MOVW' and 'MOVT' instructions can be generated by
  6092. prefixing the value with '#:lower16:' and '#:upper16' respectively. For
  6093. example to load the 32-bit address of foo into r0:
  6094. MOVW r0, #:lower16:foo
  6095. MOVT r0, #:upper16:foo
  6096. Relocations 'R_ARM_THM_ALU_ABS_G0_NC', 'R_ARM_THM_ALU_ABS_G1_NC',
  6097. 'R_ARM_THM_ALU_ABS_G2_NC' and 'R_ARM_THM_ALU_ABS_G3_NC' can be generated
  6098. by prefixing the value with '#:lower0_7:#', '#:lower8_15:#',
  6099. '#:upper0_7:#' and '#:upper8_15:#' respectively. For example to load
  6100. the 32-bit address of foo into r0:
  6101. MOVS r0, #:upper8_15:#foo
  6102. LSLS r0, r0, #8
  6103. ADDS r0, #:upper0_7:#foo
  6104. LSLS r0, r0, #8
  6105. ADDS r0, #:lower8_15:#foo
  6106. LSLS r0, r0, #8
  6107. ADDS r0, #:lower0_7:#foo
  6108. 
  6109. File: as.info, Node: ARM-Neon-Alignment, Prev: ARM-Relocations, Up: ARM Syntax
  6110. 9.4.2.5 NEON Alignment Specifiers
  6111. .................................
  6112. Some NEON load/store instructions allow an optional address alignment
  6113. qualifier. The ARM documentation specifies that this is indicated by '@
  6114. ALIGN'. However GAS already interprets the '@' character as a "line
  6115. comment" start, so ': ALIGN' is used instead. For example:
  6116. vld1.8 {q0}, [r0, :128]
  6117. 
  6118. File: as.info, Node: ARM Floating Point, Next: ARM Directives, Prev: ARM Syntax, Up: ARM-Dependent
  6119. 9.4.3 Floating Point
  6120. --------------------
  6121. The ARM family uses IEEE floating-point numbers.
  6122. 
  6123. File: as.info, Node: ARM Directives, Next: ARM Opcodes, Prev: ARM Floating Point, Up: ARM-Dependent
  6124. 9.4.4 ARM Machine Directives
  6125. ----------------------------
  6126. '.align EXPRESSION [, EXPRESSION]'
  6127. This is the generic .ALIGN directive. For the ARM however if the
  6128. first argument is zero (ie no alignment is needed) the assembler
  6129. will behave as if the argument had been 2 (ie pad to the next four
  6130. byte boundary). This is for compatibility with ARM's own
  6131. assembler.
  6132. '.arch NAME'
  6133. Select the target architecture. Valid values for NAME are the same
  6134. as for the '-march' command-line option without the instruction set
  6135. extension.
  6136. Specifying '.arch' clears any previously selected architecture
  6137. extensions.
  6138. '.arch_extension NAME'
  6139. Add or remove an architecture extension to the target architecture.
  6140. Valid values for NAME are the same as those accepted as
  6141. architectural extensions by the '-mcpu' and '-march' command-line
  6142. options.
  6143. '.arch_extension' may be used multiple times to add or remove
  6144. extensions incrementally to the architecture being compiled for.
  6145. '.arm'
  6146. This performs the same action as .CODE 32.
  6147. '.bss'
  6148. This directive switches to the '.bss' section.
  6149. '.cantunwind'
  6150. Prevents unwinding through the current function. No personality
  6151. routine or exception table data is required or permitted.
  6152. '.code [16|32]'
  6153. This directive selects the instruction set being generated. The
  6154. value 16 selects Thumb, with the value 32 selecting ARM.
  6155. '.cpu NAME'
  6156. Select the target processor. Valid values for NAME are the same as
  6157. for the '-mcpu' command-line option without the instruction set
  6158. extension.
  6159. Specifying '.cpu' clears any previously selected architecture
  6160. extensions.
  6161. 'NAME .dn REGISTER NAME [.TYPE] [[INDEX]]'
  6162. 'NAME .qn REGISTER NAME [.TYPE] [[INDEX]]'
  6163. The 'dn' and 'qn' directives are used to create typed and/or
  6164. indexed register aliases for use in Advanced SIMD Extension (Neon)
  6165. instructions. The former should be used to create aliases of
  6166. double-precision registers, and the latter to create aliases of
  6167. quad-precision registers.
  6168. If these directives are used to create typed aliases, those aliases
  6169. can be used in Neon instructions instead of writing types after the
  6170. mnemonic or after each operand. For example:
  6171. x .dn d2.f32
  6172. y .dn d3.f32
  6173. z .dn d4.f32[1]
  6174. vmul x,y,z
  6175. This is equivalent to writing the following:
  6176. vmul.f32 d2,d3,d4[1]
  6177. Aliases created using 'dn' or 'qn' can be destroyed using 'unreq'.
  6178. '.eabi_attribute TAG, VALUE'
  6179. Set the EABI object attribute TAG to VALUE.
  6180. The TAG is either an attribute number, or one of the following:
  6181. 'Tag_CPU_raw_name', 'Tag_CPU_name', 'Tag_CPU_arch',
  6182. 'Tag_CPU_arch_profile', 'Tag_ARM_ISA_use', 'Tag_THUMB_ISA_use',
  6183. 'Tag_FP_arch', 'Tag_WMMX_arch', 'Tag_Advanced_SIMD_arch',
  6184. 'Tag_PCS_config', 'Tag_ABI_PCS_R9_use', 'Tag_ABI_PCS_RW_data',
  6185. 'Tag_ABI_PCS_RO_data', 'Tag_ABI_PCS_GOT_use',
  6186. 'Tag_ABI_PCS_wchar_t', 'Tag_ABI_FP_rounding',
  6187. 'Tag_ABI_FP_denormal', 'Tag_ABI_FP_exceptions',
  6188. 'Tag_ABI_FP_user_exceptions', 'Tag_ABI_FP_number_model',
  6189. 'Tag_ABI_align_needed', 'Tag_ABI_align_preserved',
  6190. 'Tag_ABI_enum_size', 'Tag_ABI_HardFP_use', 'Tag_ABI_VFP_args',
  6191. 'Tag_ABI_WMMX_args', 'Tag_ABI_optimization_goals',
  6192. 'Tag_ABI_FP_optimization_goals', 'Tag_compatibility',
  6193. 'Tag_CPU_unaligned_access', 'Tag_FP_HP_extension',
  6194. 'Tag_ABI_FP_16bit_format', 'Tag_MPextension_use', 'Tag_DIV_use',
  6195. 'Tag_nodefaults', 'Tag_also_compatible_with', 'Tag_conformance',
  6196. 'Tag_T2EE_use', 'Tag_Virtualization_use'
  6197. The VALUE is either a 'number', '"string"', or 'number, "string"'
  6198. depending on the tag.
  6199. Note - the following legacy values are also accepted by TAG:
  6200. 'Tag_VFP_arch', 'Tag_ABI_align8_needed',
  6201. 'Tag_ABI_align8_preserved', 'Tag_VFP_HP_extension',
  6202. '.even'
  6203. This directive aligns to an even-numbered address.
  6204. '.extend EXPRESSION [, EXPRESSION]*'
  6205. '.ldouble EXPRESSION [, EXPRESSION]*'
  6206. These directives write 12byte long double floating-point values to
  6207. the output section. These are not compatible with current ARM
  6208. processors or ABIs.
  6209. '.fnend'
  6210. Marks the end of a function with an unwind table entry. The unwind
  6211. index table entry is created when this directive is processed.
  6212. If no personality routine has been specified then standard
  6213. personality routine 0 or 1 will be used, depending on the number of
  6214. unwind opcodes required.
  6215. '.fnstart'
  6216. Marks the start of a function with an unwind table entry.
  6217. '.force_thumb'
  6218. This directive forces the selection of Thumb instructions, even if
  6219. the target processor does not support those instructions
  6220. '.fpu NAME'
  6221. Select the floating-point unit to assemble for. Valid values for
  6222. NAME are the same as for the '-mfpu' command-line option.
  6223. '.handlerdata'
  6224. Marks the end of the current function, and the start of the
  6225. exception table entry for that function. Anything between this
  6226. directive and the '.fnend' directive will be added to the exception
  6227. table entry.
  6228. Must be preceded by a '.personality' or '.personalityindex'
  6229. directive.
  6230. '.inst OPCODE [ , ... ]'
  6231. '.inst.n OPCODE [ , ... ]'
  6232. '.inst.w OPCODE [ , ... ]'
  6233. Generates the instruction corresponding to the numerical value
  6234. OPCODE. '.inst.n' and '.inst.w' allow the Thumb instruction size
  6235. to be specified explicitly, overriding the normal encoding rules.
  6236. '.ldouble EXPRESSION [, EXPRESSION]*'
  6237. See '.extend'.
  6238. '.ltorg'
  6239. This directive causes the current contents of the literal pool to
  6240. be dumped into the current section (which is assumed to be the
  6241. .text section) at the current location (aligned to a word
  6242. boundary). 'GAS' maintains a separate literal pool for each
  6243. section and each sub-section. The '.ltorg' directive will only
  6244. affect the literal pool of the current section and sub-section. At
  6245. the end of assembly all remaining, un-empty literal pools will
  6246. automatically be dumped.
  6247. Note - older versions of 'GAS' would dump the current literal pool
  6248. any time a section change occurred. This is no longer done, since
  6249. it prevents accurate control of the placement of literal pools.
  6250. '.movsp REG [, #OFFSET]'
  6251. Tell the unwinder that REG contains an offset from the current
  6252. stack pointer. If OFFSET is not specified then it is assumed to be
  6253. zero.
  6254. '.object_arch NAME'
  6255. Override the architecture recorded in the EABI object attribute
  6256. section. Valid values for NAME are the same as for the '.arch'
  6257. directive. Typically this is useful when code uses runtime
  6258. detection of CPU features.
  6259. '.packed EXPRESSION [, EXPRESSION]*'
  6260. This directive writes 12-byte packed floating-point values to the
  6261. output section. These are not compatible with current ARM
  6262. processors or ABIs.
  6263. '.pad #COUNT'
  6264. Generate unwinder annotations for a stack adjustment of COUNT
  6265. bytes. A positive value indicates the function prologue allocated
  6266. stack space by decrementing the stack pointer.
  6267. '.personality NAME'
  6268. Sets the personality routine for the current function to NAME.
  6269. '.personalityindex INDEX'
  6270. Sets the personality routine for the current function to the EABI
  6271. standard routine number INDEX
  6272. '.pool'
  6273. This is a synonym for .ltorg.
  6274. 'NAME .req REGISTER NAME'
  6275. This creates an alias for REGISTER NAME called NAME. For example:
  6276. foo .req r0
  6277. '.save REGLIST'
  6278. Generate unwinder annotations to restore the registers in REGLIST.
  6279. The format of REGLIST is the same as the corresponding
  6280. store-multiple instruction.
  6281. _core registers_
  6282. .save {r4, r5, r6, lr}
  6283. stmfd sp!, {r4, r5, r6, lr}
  6284. _FPA registers_
  6285. .save f4, 2
  6286. sfmfd f4, 2, [sp]!
  6287. _VFP registers_
  6288. .save {d8, d9, d10}
  6289. fstmdx sp!, {d8, d9, d10}
  6290. _iWMMXt registers_
  6291. .save {wr10, wr11}
  6292. wstrd wr11, [sp, #-8]!
  6293. wstrd wr10, [sp, #-8]!
  6294. or
  6295. .save wr11
  6296. wstrd wr11, [sp, #-8]!
  6297. .save wr10
  6298. wstrd wr10, [sp, #-8]!
  6299. '.setfp FPREG, SPREG [, #OFFSET]'
  6300. Make all unwinder annotations relative to a frame pointer. Without
  6301. this the unwinder will use offsets from the stack pointer.
  6302. The syntax of this directive is the same as the 'add' or 'mov'
  6303. instruction used to set the frame pointer. SPREG must be either
  6304. 'sp' or mentioned in a previous '.movsp' directive.
  6305. .movsp ip
  6306. mov ip, sp
  6307. ...
  6308. .setfp fp, ip, #4
  6309. add fp, ip, #4
  6310. '.secrel32 EXPRESSION [, EXPRESSION]*'
  6311. This directive emits relocations that evaluate to the
  6312. section-relative offset of each expression's symbol. This
  6313. directive is only supported for PE targets.
  6314. '.syntax [unified | divided]'
  6315. This directive sets the Instruction Set Syntax as described in the
  6316. *note ARM-Instruction-Set:: section.
  6317. '.thumb'
  6318. This performs the same action as .CODE 16.
  6319. '.thumb_func'
  6320. This directive specifies that the following symbol is the name of a
  6321. Thumb encoded function. This information is necessary in order to
  6322. allow the assembler and linker to generate correct code for
  6323. interworking between Arm and Thumb instructions and should be used
  6324. even if interworking is not going to be performed. The presence of
  6325. this directive also implies '.thumb'
  6326. This directive is not necessary when generating EABI objects. On
  6327. these targets the encoding is implicit when generating Thumb code.
  6328. '.thumb_set'
  6329. This performs the equivalent of a '.set' directive in that it
  6330. creates a symbol which is an alias for another symbol (possibly not
  6331. yet defined). This directive also has the added property in that
  6332. it marks the aliased symbol as being a thumb function entry point,
  6333. in the same way that the '.thumb_func' directive does.
  6334. '.tlsdescseq TLS-VARIABLE'
  6335. This directive is used to annotate parts of an inlined TLS
  6336. descriptor trampoline. Normally the trampoline is provided by the
  6337. linker, and this directive is not needed.
  6338. '.unreq ALIAS-NAME'
  6339. This undefines a register alias which was previously defined using
  6340. the 'req', 'dn' or 'qn' directives. For example:
  6341. foo .req r0
  6342. .unreq foo
  6343. An error occurs if the name is undefined. Note - this pseudo op
  6344. can be used to delete builtin in register name aliases (eg 'r0').
  6345. This should only be done if it is really necessary.
  6346. '.unwind_raw OFFSET, BYTE1, ...'
  6347. Insert one of more arbitrary unwind opcode bytes, which are known
  6348. to adjust the stack pointer by OFFSET bytes.
  6349. For example '.unwind_raw 4, 0xb1, 0x01' is equivalent to '.save
  6350. {r0}'
  6351. '.vsave VFP-REGLIST'
  6352. Generate unwinder annotations to restore the VFP registers in
  6353. VFP-REGLIST using FLDMD. Also works for VFPv3 registers that are to
  6354. be restored using VLDM. The format of VFP-REGLIST is the same as
  6355. the corresponding store-multiple instruction.
  6356. _VFP registers_
  6357. .vsave {d8, d9, d10}
  6358. fstmdd sp!, {d8, d9, d10}
  6359. _VFPv3 registers_
  6360. .vsave {d15, d16, d17}
  6361. vstm sp!, {d15, d16, d17}
  6362. Since FLDMX and FSTMX are now deprecated, this directive should be
  6363. used in favour of '.save' for saving VFP registers for ARMv6 and
  6364. above.
  6365. 
  6366. File: as.info, Node: ARM Opcodes, Next: ARM Mapping Symbols, Prev: ARM Directives, Up: ARM-Dependent
  6367. 9.4.5 Opcodes
  6368. -------------
  6369. 'as' implements all the standard ARM opcodes. It also implements
  6370. several pseudo opcodes, including several synthetic load instructions.
  6371. 'NOP'
  6372. nop
  6373. This pseudo op will always evaluate to a legal ARM instruction that
  6374. does nothing. Currently it will evaluate to MOV r0, r0.
  6375. 'LDR'
  6376. ldr <register> , = <expression>
  6377. If expression evaluates to a numeric constant then a MOV or MVN
  6378. instruction will be used in place of the LDR instruction, if the
  6379. constant can be generated by either of these instructions.
  6380. Otherwise the constant will be placed into the nearest literal pool
  6381. (if it not already there) and a PC relative LDR instruction will be
  6382. generated.
  6383. 'ADR'
  6384. adr <register> <label>
  6385. This instruction will load the address of LABEL into the indicated
  6386. register. The instruction will evaluate to a PC relative ADD or
  6387. SUB instruction depending upon where the label is located. If the
  6388. label is out of range, or if it is not defined in the same file
  6389. (and section) as the ADR instruction, then an error will be
  6390. generated. This instruction will not make use of the literal pool.
  6391. If LABEL is a thumb function symbol, and thumb interworking has
  6392. been enabled via the '-mthumb-interwork' option then the bottom bit
  6393. of the value stored into REGISTER will be set. This allows the
  6394. following sequence to work as expected:
  6395. adr r0, thumb_function
  6396. blx r0
  6397. 'ADRL'
  6398. adrl <register> <label>
  6399. This instruction will load the address of LABEL into the indicated
  6400. register. The instruction will evaluate to one or two PC relative
  6401. ADD or SUB instructions depending upon where the label is located.
  6402. If a second instruction is not needed a NOP instruction will be
  6403. generated in its place, so that this instruction is always 8 bytes
  6404. long.
  6405. If the label is out of range, or if it is not defined in the same
  6406. file (and section) as the ADRL instruction, then an error will be
  6407. generated. This instruction will not make use of the literal pool.
  6408. If LABEL is a thumb function symbol, and thumb interworking has
  6409. been enabled via the '-mthumb-interwork' option then the bottom bit
  6410. of the value stored into REGISTER will be set.
  6411. For information on the ARM or Thumb instruction sets, see 'ARM
  6412. Software Development Toolkit Reference Manual', Advanced RISC Machines
  6413. Ltd.
  6414. 
  6415. File: as.info, Node: ARM Mapping Symbols, Next: ARM Unwinding Tutorial, Prev: ARM Opcodes, Up: ARM-Dependent
  6416. 9.4.6 Mapping Symbols
  6417. ---------------------
  6418. The ARM ELF specification requires that special symbols be inserted into
  6419. object files to mark certain features:
  6420. '$a'
  6421. At the start of a region of code containing ARM instructions.
  6422. '$t'
  6423. At the start of a region of code containing THUMB instructions.
  6424. '$d'
  6425. At the start of a region of data.
  6426. The assembler will automatically insert these symbols for you - there
  6427. is no need to code them yourself. Support for tagging symbols ($b, $f,
  6428. $p and $m) which is also mentioned in the current ARM ELF specification
  6429. is not implemented. This is because they have been dropped from the new
  6430. EABI and so tools cannot rely upon their presence.
  6431. 
  6432. File: as.info, Node: ARM Unwinding Tutorial, Prev: ARM Mapping Symbols, Up: ARM-Dependent
  6433. 9.4.7 Unwinding
  6434. ---------------
  6435. The ABI for the ARM Architecture specifies a standard format for
  6436. exception unwind information. This information is used when an
  6437. exception is thrown to determine where control should be transferred.
  6438. In particular, the unwind information is used to determine which
  6439. function called the function that threw the exception, and which
  6440. function called that one, and so forth. This information is also used
  6441. to restore the values of callee-saved registers in the function catching
  6442. the exception.
  6443. If you are writing functions in assembly code, and those functions
  6444. call other functions that throw exceptions, you must use assembly pseudo
  6445. ops to ensure that appropriate exception unwind information is
  6446. generated. Otherwise, if one of the functions called by your assembly
  6447. code throws an exception, the run-time library will be unable to unwind
  6448. the stack through your assembly code and your program will not behave
  6449. correctly.
  6450. To illustrate the use of these pseudo ops, we will examine the code
  6451. that G++ generates for the following C++ input:
  6452. void callee (int *);
  6453. int
  6454. caller ()
  6455. {
  6456. int i;
  6457. callee (&i);
  6458. return i;
  6459. }
  6460. This example does not show how to throw or catch an exception from
  6461. assembly code. That is a much more complex operation and should always
  6462. be done in a high-level language, such as C++, that directly supports
  6463. exceptions.
  6464. The code generated by one particular version of G++ when compiling
  6465. the example above is:
  6466. _Z6callerv:
  6467. .fnstart
  6468. .LFB2:
  6469. @ Function supports interworking.
  6470. @ args = 0, pretend = 0, frame = 8
  6471. @ frame_needed = 1, uses_anonymous_args = 0
  6472. stmfd sp!, {fp, lr}
  6473. .save {fp, lr}
  6474. .LCFI0:
  6475. .setfp fp, sp, #4
  6476. add fp, sp, #4
  6477. .LCFI1:
  6478. .pad #8
  6479. sub sp, sp, #8
  6480. .LCFI2:
  6481. sub r3, fp, #8
  6482. mov r0, r3
  6483. bl _Z6calleePi
  6484. ldr r3, [fp, #-8]
  6485. mov r0, r3
  6486. sub sp, fp, #4
  6487. ldmfd sp!, {fp, lr}
  6488. bx lr
  6489. .LFE2:
  6490. .fnend
  6491. Of course, the sequence of instructions varies based on the options
  6492. you pass to GCC and on the version of GCC in use. The exact
  6493. instructions are not important since we are focusing on the pseudo ops
  6494. that are used to generate unwind information.
  6495. An important assumption made by the unwinder is that the stack frame
  6496. does not change during the body of the function. In particular, since
  6497. we assume that the assembly code does not itself throw an exception, the
  6498. only point where an exception can be thrown is from a call, such as the
  6499. 'bl' instruction above. At each call site, the same saved registers
  6500. (including 'lr', which indicates the return address) must be located in
  6501. the same locations relative to the frame pointer.
  6502. The '.fnstart' (*note .fnstart pseudo op: arm_fnstart.) pseudo op
  6503. appears immediately before the first instruction of the function while
  6504. the '.fnend' (*note .fnend pseudo op: arm_fnend.) pseudo op appears
  6505. immediately after the last instruction of the function. These pseudo
  6506. ops specify the range of the function.
  6507. Only the order of the other pseudos ops (e.g., '.setfp' or '.pad')
  6508. matters; their exact locations are irrelevant. In the example above,
  6509. the compiler emits the pseudo ops with particular instructions. That
  6510. makes it easier to understand the code, but it is not required for
  6511. correctness. It would work just as well to emit all of the pseudo ops
  6512. other than '.fnend' in the same order, but immediately after '.fnstart'.
  6513. The '.save' (*note .save pseudo op: arm_save.) pseudo op indicates
  6514. registers that have been saved to the stack so that they can be restored
  6515. before the function returns. The argument to the '.save' pseudo op is a
  6516. list of registers to save. If a register is "callee-saved" (as
  6517. specified by the ABI) and is modified by the function you are writing,
  6518. then your code must save the value before it is modified and restore the
  6519. original value before the function returns. If an exception is thrown,
  6520. the run-time library restores the values of these registers from their
  6521. locations on the stack before returning control to the exception
  6522. handler. (Of course, if an exception is not thrown, the function that
  6523. contains the '.save' pseudo op restores these registers in the function
  6524. epilogue, as is done with the 'ldmfd' instruction above.)
  6525. You do not have to save callee-saved registers at the very beginning
  6526. of the function and you do not need to use the '.save' pseudo op
  6527. immediately following the point at which the registers are saved.
  6528. However, if you modify a callee-saved register, you must save it on the
  6529. stack before modifying it and before calling any functions which might
  6530. throw an exception. And, you must use the '.save' pseudo op to indicate
  6531. that you have done so.
  6532. The '.pad' (*note .pad: arm_pad.) pseudo op indicates a modification
  6533. of the stack pointer that does not save any registers. The argument is
  6534. the number of bytes (in decimal) that are subtracted from the stack
  6535. pointer. (On ARM CPUs, the stack grows downwards, so subtracting from
  6536. the stack pointer increases the size of the stack.)
  6537. The '.setfp' (*note .setfp pseudo op: arm_setfp.) pseudo op indicates
  6538. the register that contains the frame pointer. The first argument is the
  6539. register that is set, which is typically 'fp'. The second argument
  6540. indicates the register from which the frame pointer takes its value.
  6541. The third argument, if present, is the value (in decimal) added to the
  6542. register specified by the second argument to compute the value of the
  6543. frame pointer. You should not modify the frame pointer in the body of
  6544. the function.
  6545. If you do not use a frame pointer, then you should not use the
  6546. '.setfp' pseudo op. If you do not use a frame pointer, then you should
  6547. avoid modifying the stack pointer outside of the function prologue.
  6548. Otherwise, the run-time library will be unable to find saved registers
  6549. when it is unwinding the stack.
  6550. The pseudo ops described above are sufficient for writing assembly
  6551. code that calls functions which may throw exceptions. If you need to
  6552. know more about the object-file format used to represent unwind
  6553. information, you may consult the 'Exception Handling ABI for the ARM
  6554. Architecture' available from <http://infocenter.arm.com>.
  6555. 
  6556. File: as.info, Node: AVR-Dependent, Next: Blackfin-Dependent, Prev: ARM-Dependent, Up: Machine Dependencies
  6557. 9.5 AVR Dependent Features
  6558. ==========================
  6559. * Menu:
  6560. * AVR Options:: Options
  6561. * AVR Syntax:: Syntax
  6562. * AVR Opcodes:: Opcodes
  6563. * AVR Pseudo Instructions:: Pseudo Instructions
  6564. 
  6565. File: as.info, Node: AVR Options, Next: AVR Syntax, Up: AVR-Dependent
  6566. 9.5.1 Options
  6567. -------------
  6568. '-mmcu=MCU'
  6569. Specify ATMEL AVR instruction set or MCU type.
  6570. Instruction set avr1 is for the minimal AVR core, not supported by
  6571. the C compiler, only for assembler programs (MCU types: at90s1200,
  6572. attiny11, attiny12, attiny15, attiny28).
  6573. Instruction set avr2 (default) is for the classic AVR core with up
  6574. to 8K program memory space (MCU types: at90s2313, at90s2323,
  6575. at90s2333, at90s2343, attiny22, attiny26, at90s4414, at90s4433,
  6576. at90s4434, at90s8515, at90c8534, at90s8535).
  6577. Instruction set avr25 is for the classic AVR core with up to 8K
  6578. program memory space plus the MOVW instruction (MCU types:
  6579. attiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a,
  6580. attiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25,
  6581. attiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a,
  6582. attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
  6583. attiny828, at86rf401, ata6289, ata5272).
  6584. Instruction set avr3 is for the classic AVR core with up to 128K
  6585. program memory space (MCU types: at43usb355, at76c711).
  6586. Instruction set avr31 is for the classic AVR core with exactly 128K
  6587. program memory space (MCU types: atmega103, at43usb320).
  6588. Instruction set avr35 is for classic AVR core plus MOVW, CALL, and
  6589. JMP instructions (MCU types: attiny167, attiny1634, at90usb82,
  6590. at90usb162, atmega8u2, atmega16u2, atmega32u2, ata5505).
  6591. Instruction set avr4 is for the enhanced AVR core with up to 8K
  6592. program memory space (MCU types: atmega48, atmega48a, atmega48pa,
  6593. atmega48p, atmega8, atmega8a, atmega88, atmega88a, atmega88p,
  6594. atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1, at90pwm2,
  6595. at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6285, ata6286).
  6596. Instruction set avr5 is for the enhanced AVR core with up to 128K
  6597. program memory space (MCU types: at90pwm161, atmega16, atmega16a,
  6598. atmega161, atmega162, atmega163, atmega164a, atmega164p,
  6599. atmega164pa, atmega165, atmega165a, atmega165p, atmega165pa,
  6600. atmega168, atmega168a, atmega168p, atmega168pa, atmega169,
  6601. atmega169a, atmega169p, atmega169pa, atmega32, atmega323,
  6602. atmega324a, atmega324p, atmega324pa, atmega325, atmega325a,
  6603. atmega32, atmega32a, atmega323, atmega324a, atmega324p,
  6604. atmega324pa, atmega325, atmega325a, atmega325p, atmega325p,
  6605. atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
  6606. atmega328, atmega328p, atmega329, atmega329a, atmega329p,
  6607. atmega329pa, atmega3290a, atmega3290p, atmega3290pa, atmega406,
  6608. atmega64, atmega64a, atmega64rfr2, atmega644rfr2, atmega640,
  6609. atmega644, atmega644a, atmega644p, atmega644pa, atmega645,
  6610. atmega645a, atmega645p, atmega6450, atmega6450a, atmega6450p,
  6611. atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
  6612. atmega6490p, atmega16hva, atmega16hva2, atmega16hvb,
  6613. atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, atmega64hve,
  6614. at90can32, at90can64, at90pwm161, at90pwm216, at90pwm316,
  6615. atmega32c1, atmega64c1, atmega16m1, atmega32m1, atmega64m1,
  6616. atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
  6617. at90scr100, ata5790, ata5795).
  6618. Instruction set avr51 is for the enhanced AVR core with exactly
  6619. 128K program memory space (MCU types: atmega128, atmega128a,
  6620. atmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1,
  6621. atmega128rfr2, atmega1284rfr2, at90can128, at90usb1286,
  6622. at90usb1287, m3000).
  6623. Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
  6624. (MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
  6625. Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
  6626. program memory space and less than 64K data space (MCU types:
  6627. atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
  6628. atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
  6629. atxmega8e5, atxmega32e5, atxmega32x1).
  6630. Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
  6631. of combined program memory and RAM, and with program memory visible
  6632. in the RAM address space (MCU types: attiny212, attiny214,
  6633. attiny412, attiny414, attiny416, attiny417, attiny814, attiny816,
  6634. attiny817, attiny1614, attiny1616, attiny1617, attiny3214,
  6635. attiny3216, attiny3217).
  6636. Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
  6637. program memory space and less than 64K data space (MCU types:
  6638. atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
  6639. atxmega64c3, atxmega64d3, atxmega64d4).
  6640. Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
  6641. program memory space and greater than 64K data space (MCU types:
  6642. atxmega64a1, atxmega64a1u).
  6643. Instruction set avrxmega6 is for the XMEGA AVR core with larger
  6644. than 64K program memory space and less than 64K data space (MCU
  6645. types: atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3,
  6646. atxmega128d4, atxmega192a3, atxmega192a3u, atxmega128b1,
  6647. atxmega128b3, atxmega192c3, atxmega192d3, atxmega256a3,
  6648. atxmega256a3u, atxmega256a3b, atxmega256a3bu, atxmega256c3,
  6649. atxmega256d3, atxmega384c3, atxmega256d3).
  6650. Instruction set avrxmega7 is for the XMEGA AVR core with larger
  6651. than 64K program memory space and greater than 64K data space (MCU
  6652. types: atxmega128a1, atxmega128a1u, atxmega128a4u).
  6653. Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
  6654. microcontrollers.
  6655. '-mall-opcodes'
  6656. Accept all AVR opcodes, even if not supported by '-mmcu'.
  6657. '-mno-skip-bug'
  6658. This option disable warnings for skipping two-word instructions.
  6659. '-mno-wrap'
  6660. This option reject 'rjmp/rcall' instructions with 8K wrap-around.
  6661. '-mrmw'
  6662. Accept Read-Modify-Write ('XCH,LAC,LAS,LAT') instructions.
  6663. '-mlink-relax'
  6664. Enable support for link-time relaxation. This is now on by default
  6665. and this flag no longer has any effect.
  6666. '-mno-link-relax'
  6667. Disable support for link-time relaxation. The assembler will
  6668. resolve relocations when it can, and may be able to better compress
  6669. some debug information.
  6670. '-mgcc-isr'
  6671. Enable the '__gcc_isr' pseudo instruction.
  6672. 
  6673. File: as.info, Node: AVR Syntax, Next: AVR Opcodes, Prev: AVR Options, Up: AVR-Dependent
  6674. 9.5.2 Syntax
  6675. ------------
  6676. * Menu:
  6677. * AVR-Chars:: Special Characters
  6678. * AVR-Regs:: Register Names
  6679. * AVR-Modifiers:: Relocatable Expression Modifiers
  6680. 
  6681. File: as.info, Node: AVR-Chars, Next: AVR-Regs, Up: AVR Syntax
  6682. 9.5.2.1 Special Characters
  6683. ..........................
  6684. The presence of a ';' anywhere on a line indicates the start of a
  6685. comment that extends to the end of that line.
  6686. If a '#' appears as the first character of a line, the whole line is
  6687. treated as a comment, but in this case the line can also be a logical
  6688. line number directive (*note Comments::) or a preprocessor control
  6689. command (*note Preprocessing::).
  6690. The '$' character can be used instead of a newline to separate
  6691. statements.
  6692. 
  6693. File: as.info, Node: AVR-Regs, Next: AVR-Modifiers, Prev: AVR-Chars, Up: AVR Syntax
  6694. 9.5.2.2 Register Names
  6695. ......................
  6696. The AVR has 32 x 8-bit general purpose working registers 'r0', 'r1', ...
  6697. 'r31'. Six of the 32 registers can be used as three 16-bit indirect
  6698. address register pointers for Data Space addressing. One of the these
  6699. address pointers can also be used as an address pointer for look up
  6700. tables in Flash program memory. These added function registers are the
  6701. 16-bit 'X', 'Y' and 'Z' - registers.
  6702. X = r26:r27
  6703. Y = r28:r29
  6704. Z = r30:r31
  6705. 
  6706. File: as.info, Node: AVR-Modifiers, Prev: AVR-Regs, Up: AVR Syntax
  6707. 9.5.2.3 Relocatable Expression Modifiers
  6708. ........................................
  6709. The assembler supports several modifiers when using relocatable
  6710. addresses in AVR instruction operands. The general syntax is the
  6711. following:
  6712. modifier(relocatable-expression)
  6713. 'lo8'
  6714. This modifier allows you to use bits 0 through 7 of an address
  6715. expression as 8 bit relocatable expression.
  6716. 'hi8'
  6717. This modifier allows you to use bits 7 through 15 of an address
  6718. expression as 8 bit relocatable expression. This is useful with,
  6719. for example, the AVR 'ldi' instruction and 'lo8' modifier.
  6720. For example
  6721. ldi r26, lo8(sym+10)
  6722. ldi r27, hi8(sym+10)
  6723. 'hh8'
  6724. This modifier allows you to use bits 16 through 23 of an address
  6725. expression as 8 bit relocatable expression. Also, can be useful
  6726. for loading 32 bit constants.
  6727. 'hlo8'
  6728. Synonym of 'hh8'.
  6729. 'hhi8'
  6730. This modifier allows you to use bits 24 through 31 of an expression
  6731. as 8 bit expression. This is useful with, for example, the AVR
  6732. 'ldi' instruction and 'lo8', 'hi8', 'hlo8', 'hhi8', modifier.
  6733. For example
  6734. ldi r26, lo8(285774925)
  6735. ldi r27, hi8(285774925)
  6736. ldi r28, hlo8(285774925)
  6737. ldi r29, hhi8(285774925)
  6738. ; r29,r28,r27,r26 = 285774925
  6739. 'pm_lo8'
  6740. This modifier allows you to use bits 0 through 7 of an address
  6741. expression as 8 bit relocatable expression. This modifier useful
  6742. for addressing data or code from Flash/Program memory. The using
  6743. of 'pm_lo8' similar to 'lo8'.
  6744. 'pm_hi8'
  6745. This modifier allows you to use bits 8 through 15 of an address
  6746. expression as 8 bit relocatable expression. This modifier useful
  6747. for addressing data or code from Flash/Program memory.
  6748. 'pm_hh8'
  6749. This modifier allows you to use bits 15 through 23 of an address
  6750. expression as 8 bit relocatable expression. This modifier useful
  6751. for addressing data or code from Flash/Program memory.
  6752. 
  6753. File: as.info, Node: AVR Opcodes, Next: AVR Pseudo Instructions, Prev: AVR Syntax, Up: AVR-Dependent
  6754. 9.5.3 Opcodes
  6755. -------------
  6756. For detailed information on the AVR machine instruction set, see
  6757. <www.atmel.com/products/AVR>.
  6758. 'as' implements all the standard AVR opcodes. The following table
  6759. summarizes the AVR opcodes, and their arguments.
  6760. Legend:
  6761. r any register
  6762. d 'ldi' register (r16-r31)
  6763. v 'movw' even register (r0, r2, ..., r28, r30)
  6764. a 'fmul' register (r16-r23)
  6765. w 'adiw' register (r24,r26,r28,r30)
  6766. e pointer registers (X,Y,Z)
  6767. b base pointer register and displacement ([YZ]+disp)
  6768. z Z pointer register (for [e]lpm Rd,Z[+])
  6769. M immediate value from 0 to 255
  6770. n immediate value from 0 to 255 ( n = ~M ). Relocation impossible
  6771. s immediate value from 0 to 7
  6772. P Port address value from 0 to 63. (in, out)
  6773. p Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
  6774. K immediate value from 0 to 63 (used in 'adiw', 'sbiw')
  6775. i immediate value
  6776. l signed pc relative offset from -64 to 63
  6777. L signed pc relative offset from -2048 to 2047
  6778. h absolute code address (call, jmp)
  6779. S immediate value from 0 to 7 (S = s << 4)
  6780. ? use this opcode entry if no parameters, else use next opcode entry
  6781. 1001010010001000 clc
  6782. 1001010011011000 clh
  6783. 1001010011111000 cli
  6784. 1001010010101000 cln
  6785. 1001010011001000 cls
  6786. 1001010011101000 clt
  6787. 1001010010111000 clv
  6788. 1001010010011000 clz
  6789. 1001010000001000 sec
  6790. 1001010001011000 seh
  6791. 1001010001111000 sei
  6792. 1001010000101000 sen
  6793. 1001010001001000 ses
  6794. 1001010001101000 set
  6795. 1001010000111000 sev
  6796. 1001010000011000 sez
  6797. 100101001SSS1000 bclr S
  6798. 100101000SSS1000 bset S
  6799. 1001010100001001 icall
  6800. 1001010000001001 ijmp
  6801. 1001010111001000 lpm ?
  6802. 1001000ddddd010+ lpm r,z
  6803. 1001010111011000 elpm ?
  6804. 1001000ddddd011+ elpm r,z
  6805. 0000000000000000 nop
  6806. 1001010100001000 ret
  6807. 1001010100011000 reti
  6808. 1001010110001000 sleep
  6809. 1001010110011000 break
  6810. 1001010110101000 wdr
  6811. 1001010111101000 spm
  6812. 000111rdddddrrrr adc r,r
  6813. 000011rdddddrrrr add r,r
  6814. 001000rdddddrrrr and r,r
  6815. 000101rdddddrrrr cp r,r
  6816. 000001rdddddrrrr cpc r,r
  6817. 000100rdddddrrrr cpse r,r
  6818. 001001rdddddrrrr eor r,r
  6819. 001011rdddddrrrr mov r,r
  6820. 100111rdddddrrrr mul r,r
  6821. 001010rdddddrrrr or r,r
  6822. 000010rdddddrrrr sbc r,r
  6823. 000110rdddddrrrr sub r,r
  6824. 001001rdddddrrrr clr r
  6825. 000011rdddddrrrr lsl r
  6826. 000111rdddddrrrr rol r
  6827. 001000rdddddrrrr tst r
  6828. 0111KKKKddddKKKK andi d,M
  6829. 0111KKKKddddKKKK cbr d,n
  6830. 1110KKKKddddKKKK ldi d,M
  6831. 11101111dddd1111 ser d
  6832. 0110KKKKddddKKKK ori d,M
  6833. 0110KKKKddddKKKK sbr d,M
  6834. 0011KKKKddddKKKK cpi d,M
  6835. 0100KKKKddddKKKK sbci d,M
  6836. 0101KKKKddddKKKK subi d,M
  6837. 1111110rrrrr0sss sbrc r,s
  6838. 1111111rrrrr0sss sbrs r,s
  6839. 1111100ddddd0sss bld r,s
  6840. 1111101ddddd0sss bst r,s
  6841. 10110PPdddddPPPP in r,P
  6842. 10111PPrrrrrPPPP out P,r
  6843. 10010110KKddKKKK adiw w,K
  6844. 10010111KKddKKKK sbiw w,K
  6845. 10011000pppppsss cbi p,s
  6846. 10011010pppppsss sbi p,s
  6847. 10011001pppppsss sbic p,s
  6848. 10011011pppppsss sbis p,s
  6849. 111101lllllll000 brcc l
  6850. 111100lllllll000 brcs l
  6851. 111100lllllll001 breq l
  6852. 111101lllllll100 brge l
  6853. 111101lllllll101 brhc l
  6854. 111100lllllll101 brhs l
  6855. 111101lllllll111 brid l
  6856. 111100lllllll111 brie l
  6857. 111100lllllll000 brlo l
  6858. 111100lllllll100 brlt l
  6859. 111100lllllll010 brmi l
  6860. 111101lllllll001 brne l
  6861. 111101lllllll010 brpl l
  6862. 111101lllllll000 brsh l
  6863. 111101lllllll110 brtc l
  6864. 111100lllllll110 brts l
  6865. 111101lllllll011 brvc l
  6866. 111100lllllll011 brvs l
  6867. 111101lllllllsss brbc s,l
  6868. 111100lllllllsss brbs s,l
  6869. 1101LLLLLLLLLLLL rcall L
  6870. 1100LLLLLLLLLLLL rjmp L
  6871. 1001010hhhhh111h call h
  6872. 1001010hhhhh110h jmp h
  6873. 1001010rrrrr0101 asr r
  6874. 1001010rrrrr0000 com r
  6875. 1001010rrrrr1010 dec r
  6876. 1001010rrrrr0011 inc r
  6877. 1001010rrrrr0110 lsr r
  6878. 1001010rrrrr0001 neg r
  6879. 1001000rrrrr1111 pop r
  6880. 1001001rrrrr1111 push r
  6881. 1001010rrrrr0111 ror r
  6882. 1001010rrrrr0010 swap r
  6883. 00000001ddddrrrr movw v,v
  6884. 00000010ddddrrrr muls d,d
  6885. 000000110ddd0rrr mulsu a,a
  6886. 000000110ddd1rrr fmul a,a
  6887. 000000111ddd0rrr fmuls a,a
  6888. 000000111ddd1rrr fmulsu a,a
  6889. 1001001ddddd0000 sts i,r
  6890. 1001000ddddd0000 lds r,i
  6891. 10o0oo0dddddbooo ldd r,b
  6892. 100!000dddddee-+ ld r,e
  6893. 10o0oo1rrrrrbooo std b,r
  6894. 100!001rrrrree-+ st e,r
  6895. 1001010100011001 eicall
  6896. 1001010000011001 eijmp
  6897. 
  6898. File: as.info, Node: AVR Pseudo Instructions, Prev: AVR Opcodes, Up: AVR-Dependent
  6899. 9.5.4 Pseudo Instructions
  6900. -------------------------
  6901. The only available pseudo-instruction '__gcc_isr' can be activated by
  6902. option '-mgcc-isr'.
  6903. '__gcc_isr 1'
  6904. Emit code chunk to be used in avr-gcc ISR prologue. It will expand
  6905. to at most six 1-word instructions, all optional: push of
  6906. 'tmp_reg', push of 'SREG', push and clear of 'zero_reg', push of
  6907. REG.
  6908. '__gcc_isr 2'
  6909. Emit code chunk to be used in an avr-gcc ISR epilogue. It will
  6910. expand to at most five 1-word instructions, all optional: pop of
  6911. REG, pop of 'zero_reg', pop of 'SREG', pop of 'tmp_reg'.
  6912. '__gcc_isr 0, REG'
  6913. Finish avr-gcc ISR function. Scan code since the last prologue for
  6914. usage of: 'SREG', 'tmp_reg', 'zero_reg'. Prologue chunk and
  6915. epilogue chunks will be replaced by appropriate code to save /
  6916. restore 'SREG', 'tmp_reg', 'zero_reg' and REG.
  6917. Example input:
  6918. __vector1:
  6919. __gcc_isr 1
  6920. lds r24, var
  6921. inc r24
  6922. sts var, r24
  6923. __gcc_isr 2
  6924. reti
  6925. __gcc_isr 0, r24
  6926. Example output:
  6927. 00000000 <__vector1>:
  6928. 0: 8f 93 push r24
  6929. 2: 8f b7 in r24, 0x3f
  6930. 4: 8f 93 push r24
  6931. 6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <var>
  6932. a: 83 95 inc r24
  6933. c: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <var>
  6934. 10: 8f 91 pop r24
  6935. 12: 8f bf out 0x3f, r24
  6936. 14: 8f 91 pop r24
  6937. 16: 18 95 reti
  6938. 
  6939. File: as.info, Node: Blackfin-Dependent, Next: CR16-Dependent, Prev: AVR-Dependent, Up: Machine Dependencies
  6940. 9.6 Blackfin Dependent Features
  6941. ===============================
  6942. * Menu:
  6943. * Blackfin Options:: Blackfin Options
  6944. * Blackfin Syntax:: Blackfin Syntax
  6945. * Blackfin Directives:: Blackfin Directives
  6946. 
  6947. File: as.info, Node: Blackfin Options, Next: Blackfin Syntax, Up: Blackfin-Dependent
  6948. 9.6.1 Options
  6949. -------------
  6950. '-mcpu=PROCESSOR[-SIREVISION]'
  6951. This option specifies the target processor. The optional
  6952. SIREVISION is not used in assembler. It's here such that GCC can
  6953. easily pass down its '-mcpu=' option. The assembler will issue an
  6954. error message if an attempt is made to assemble an instruction
  6955. which will not execute on the target processor. The following
  6956. processor names are recognized: 'bf504', 'bf506', 'bf512', 'bf514',
  6957. 'bf516', 'bf518', 'bf522', 'bf523', 'bf524', 'bf525', 'bf526',
  6958. 'bf527', 'bf531', 'bf532', 'bf533', 'bf534', 'bf535' (not
  6959. implemented yet), 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  6960. 'bf542m', 'bf544', 'bf544m', 'bf547', 'bf547m', 'bf548', 'bf548m',
  6961. 'bf549', 'bf549m', 'bf561', and 'bf592'.
  6962. '-mfdpic'
  6963. Assemble for the FDPIC ABI.
  6964. '-mno-fdpic'
  6965. '-mnopic'
  6966. Disable -mfdpic.
  6967. 
  6968. File: as.info, Node: Blackfin Syntax, Next: Blackfin Directives, Prev: Blackfin Options, Up: Blackfin-Dependent
  6969. 9.6.2 Syntax
  6970. ------------
  6971. 'Special Characters'
  6972. Assembler input is free format and may appear anywhere on the line.
  6973. One instruction may extend across multiple lines or more than one
  6974. instruction may appear on the same line. White space (space, tab,
  6975. comments or newline) may appear anywhere between tokens. A token
  6976. must not have embedded spaces. Tokens include numbers, register
  6977. names, keywords, user identifiers, and also some multicharacter
  6978. special symbols like "+=", "/*" or "||".
  6979. Comments are introduced by the '#' character and extend to the end
  6980. of the current line. If the '#' appears as the first character of
  6981. a line, the whole line is treated as a comment, but in this case
  6982. the line can also be a logical line number directive (*note
  6983. Comments::) or a preprocessor control command (*note
  6984. Preprocessing::).
  6985. 'Instruction Delimiting'
  6986. A semicolon must terminate every instruction. Sometimes a complete
  6987. instruction will consist of more than one operation. There are two
  6988. cases where this occurs. The first is when two general operations
  6989. are combined. Normally a comma separates the different parts, as
  6990. in
  6991. a0= r3.h * r2.l, a1 = r3.l * r2.h ;
  6992. The second case occurs when a general instruction is combined with
  6993. one or two memory references for joint issue. The latter portions
  6994. are set off by a "||" token.
  6995. a0 = r3.h * r2.l || r1 = [p3++] || r4 = [i2++];
  6996. Multiple instructions can occur on the same line. Each must be
  6997. terminated by a semicolon character.
  6998. 'Register Names'
  6999. The assembler treats register names and instruction keywords in a
  7000. case insensitive manner. User identifiers are case sensitive.
  7001. Thus, R3.l, R3.L, r3.l and r3.L are all equivalent input to the
  7002. assembler.
  7003. Register names are reserved and may not be used as program
  7004. identifiers.
  7005. Some operations (such as "Move Register") require a register pair.
  7006. Register pairs are always data registers and are denoted using a
  7007. colon, eg., R3:2. The larger number must be written firsts. Note
  7008. that the hardware only supports odd-even pairs, eg., R7:6, R5:4,
  7009. R3:2, and R1:0.
  7010. Some instructions (such as -SP (Push Multiple)) require a group of
  7011. adjacent registers. Adjacent registers are denoted in the syntax
  7012. by the range enclosed in parentheses and separated by a colon, eg.,
  7013. (R7:3). Again, the larger number appears first.
  7014. Portions of a particular register may be individually specified.
  7015. This is written with a dot (".") following the register name and
  7016. then a letter denoting the desired portion. For 32-bit registers,
  7017. ".H" denotes the most significant ("High") portion. ".L" denotes
  7018. the least-significant portion. The subdivisions of the 40-bit
  7019. registers are described later.
  7020. 'Accumulators'
  7021. The set of 40-bit registers A1 and A0 that normally contain data
  7022. that is being manipulated. Each accumulator can be accessed in
  7023. four ways.
  7024. 'one 40-bit register'
  7025. The register will be referred to as A1 or A0.
  7026. 'one 32-bit register'
  7027. The registers are designated as A1.W or A0.W.
  7028. 'two 16-bit registers'
  7029. The registers are designated as A1.H, A1.L, A0.H or A0.L.
  7030. 'one 8-bit register'
  7031. The registers are designated as A1.X or A0.X for the bits that
  7032. extend beyond bit 31.
  7033. 'Data Registers'
  7034. The set of 32-bit registers (R0, R1, R2, R3, R4, R5, R6 and R7)
  7035. that normally contain data for manipulation. These are abbreviated
  7036. as D-register or Dreg. Data registers can be accessed as 32-bit
  7037. registers or as two independent 16-bit registers. The least
  7038. significant 16 bits of each register is called the "low" half and
  7039. is designated with ".L" following the register name. The most
  7040. significant 16 bits are called the "high" half and is designated
  7041. with ".H" following the name.
  7042. R7.L, r2.h, r4.L, R0.H
  7043. 'Pointer Registers'
  7044. The set of 32-bit registers (P0, P1, P2, P3, P4, P5, SP and FP)
  7045. that normally contain byte addresses of data structures. These are
  7046. abbreviated as P-register or Preg.
  7047. p2, p5, fp, sp
  7048. 'Stack Pointer SP'
  7049. The stack pointer contains the 32-bit address of the last occupied
  7050. byte location in the stack. The stack grows by decrementing the
  7051. stack pointer.
  7052. 'Frame Pointer FP'
  7053. The frame pointer contains the 32-bit address of the previous frame
  7054. pointer in the stack. It is located at the top of a frame.
  7055. 'Loop Top'
  7056. LT0 and LT1. These registers contain the 32-bit address of the top
  7057. of a zero overhead loop.
  7058. 'Loop Count'
  7059. LC0 and LC1. These registers contain the 32-bit counter of the
  7060. zero overhead loop executions.
  7061. 'Loop Bottom'
  7062. LB0 and LB1. These registers contain the 32-bit address of the
  7063. bottom of a zero overhead loop.
  7064. 'Index Registers'
  7065. The set of 32-bit registers (I0, I1, I2, I3) that normally contain
  7066. byte addresses of data structures. Abbreviated I-register or Ireg.
  7067. 'Modify Registers'
  7068. The set of 32-bit registers (M0, M1, M2, M3) that normally contain
  7069. offset values that are added and subtracted to one of the index
  7070. registers. Abbreviated as Mreg.
  7071. 'Length Registers'
  7072. The set of 32-bit registers (L0, L1, L2, L3) that normally contain
  7073. the length in bytes of the circular buffer. Abbreviated as Lreg.
  7074. Clear the Lreg to disable circular addressing for the corresponding
  7075. Ireg.
  7076. 'Base Registers'
  7077. The set of 32-bit registers (B0, B1, B2, B3) that normally contain
  7078. the base address in bytes of the circular buffer. Abbreviated as
  7079. Breg.
  7080. 'Floating Point'
  7081. The Blackfin family has no hardware floating point but the .float
  7082. directive generates ieee floating point numbers for use with
  7083. software floating point libraries.
  7084. 'Blackfin Opcodes'
  7085. For detailed information on the Blackfin machine instruction set,
  7086. see the Blackfin(r) Processor Instruction Set Reference.
  7087. 
  7088. File: as.info, Node: Blackfin Directives, Prev: Blackfin Syntax, Up: Blackfin-Dependent
  7089. 9.6.3 Directives
  7090. ----------------
  7091. The following directives are provided for compatibility with the VDSP
  7092. assembler.
  7093. '.byte2'
  7094. Initializes a two byte data object.
  7095. This maps to the '.short' directive.
  7096. '.byte4'
  7097. Initializes a four byte data object.
  7098. This maps to the '.int' directive.
  7099. '.db'
  7100. Initializes a single byte data object.
  7101. This directive is a synonym for '.byte'.
  7102. '.dw'
  7103. Initializes a two byte data object.
  7104. This directive is a synonym for '.byte2'.
  7105. '.dd'
  7106. Initializes a four byte data object.
  7107. This directive is a synonym for '.byte4'.
  7108. '.var'
  7109. Define and initialize a 32 bit data object.
  7110. 
  7111. File: as.info, Node: CR16-Dependent, Next: CRIS-Dependent, Prev: Blackfin-Dependent, Up: Machine Dependencies
  7112. 9.7 CR16 Dependent Features
  7113. ===========================
  7114. * Menu:
  7115. * CR16 Operand Qualifiers:: CR16 Machine Operand Qualifiers
  7116. * CR16 Syntax:: Syntax for the CR16
  7117. 
  7118. File: as.info, Node: CR16 Operand Qualifiers, Next: CR16 Syntax, Up: CR16-Dependent
  7119. 9.7.1 CR16 Operand Qualifiers
  7120. -----------------------------
  7121. The National Semiconductor CR16 target of 'as' has a few machine
  7122. dependent operand qualifiers.
  7123. Operand expression type qualifier is an optional field in the
  7124. instruction operand, to determines the type of the expression field of
  7125. an operand. The '@' is required. CR16 architecture uses one of the
  7126. following expression qualifiers:
  7127. 's'
  7128. - 'Specifies expression operand type as small'
  7129. 'm'
  7130. - 'Specifies expression operand type as medium'
  7131. 'l'
  7132. - 'Specifies expression operand type as large'
  7133. 'c'
  7134. - 'Specifies the CR16 Assembler generates a relocation entry for
  7135. the operand, where pc has implied bit, the expression is adjusted
  7136. accordingly. The linker uses the relocation entry to update the
  7137. operand address at link time.'
  7138. 'got/GOT'
  7139. - 'Specifies the CR16 Assembler generates a relocation entry for
  7140. the operand, offset from Global Offset Table. The linker uses this
  7141. relocation entry to update the operand address at link time'
  7142. 'cgot/cGOT'
  7143. - 'Specifies the CompactRISC Assembler generates a relocation entry
  7144. for the operand, where pc has implied bit, the expression is
  7145. adjusted accordingly. The linker uses the relocation entry to
  7146. update the operand address at link time.'
  7147. CR16 target operand qualifiers and its size (in bits):
  7148. 'Immediate Operand: s'
  7149. 4 bits.
  7150. 'Immediate Operand: m'
  7151. 16 bits, for movb and movw instructions.
  7152. 'Immediate Operand: m'
  7153. 20 bits, movd instructions.
  7154. 'Immediate Operand: l'
  7155. 32 bits.
  7156. 'Absolute Operand: s'
  7157. Illegal specifier for this operand.
  7158. 'Absolute Operand: m'
  7159. 20 bits, movd instructions.
  7160. 'Displacement Operand: s'
  7161. 8 bits.
  7162. 'Displacement Operand: m'
  7163. 16 bits.
  7164. 'Displacement Operand: l'
  7165. 24 bits.
  7166. For example:
  7167. 1 movw $_myfun@c,r1
  7168. This loads the address of _myfun, shifted right by 1, into r1.
  7169. 2 movd $_myfun@c,(r2,r1)
  7170. This loads the address of _myfun, shifted right by 1, into register-pair r2-r1.
  7171. 3 _myfun_ptr:
  7172. .long _myfun@c
  7173. loadd _myfun_ptr, (r1,r0)
  7174. jal (r1,r0)
  7175. This .long directive, the address of _myfunc, shifted right by 1 at link time.
  7176. 4 loadd _data1@GOT(r12), (r1,r0)
  7177. This loads the address of _data1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r2-r1.
  7178. 5 loadd _myfunc@cGOT(r12), (r1,r0)
  7179. 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.
  7180. 
  7181. File: as.info, Node: CR16 Syntax, Prev: CR16 Operand Qualifiers, Up: CR16-Dependent
  7182. 9.7.2 CR16 Syntax
  7183. -----------------
  7184. * Menu:
  7185. * CR16-Chars:: Special Characters
  7186. 
  7187. File: as.info, Node: CR16-Chars, Up: CR16 Syntax
  7188. 9.7.2.1 Special Characters
  7189. ..........................
  7190. The presence of a '#' on a line indicates the start of a comment that
  7191. extends to the end of the current line. If the '#' appears as the first
  7192. character of a line, the whole line is treated as a comment, but in this
  7193. case the line can also be a logical line number directive (*note
  7194. Comments::) or a preprocessor control command (*note Preprocessing::).
  7195. The ';' character can be used to separate statements on the same
  7196. line.
  7197. 
  7198. File: as.info, Node: CRIS-Dependent, Next: C-SKY-Dependent, Prev: CR16-Dependent, Up: Machine Dependencies
  7199. 9.8 CRIS Dependent Features
  7200. ===========================
  7201. * Menu:
  7202. * CRIS-Opts:: Command-line Options
  7203. * CRIS-Expand:: Instruction expansion
  7204. * CRIS-Symbols:: Symbols
  7205. * CRIS-Syntax:: Syntax
  7206. 
  7207. File: as.info, Node: CRIS-Opts, Next: CRIS-Expand, Up: CRIS-Dependent
  7208. 9.8.1 Command-line Options
  7209. --------------------------
  7210. The CRIS version of 'as' has these machine-dependent command-line
  7211. options.
  7212. The format of the generated object files can be either ELF or a.out,
  7213. specified by the command-line options '--emulation=crisaout' and
  7214. '--emulation=criself'. The default is ELF (criself), unless 'as' has
  7215. been configured specifically for a.out by using the configuration name
  7216. 'cris-axis-aout'.
  7217. There are two different link-incompatible ELF object file variants
  7218. for CRIS, for use in environments where symbols are expected to be
  7219. prefixed by a leading '_' character and for environments without such a
  7220. symbol prefix. The variant used for GNU/Linux port has no symbol
  7221. prefix. Which variant to produce is specified by either of the options
  7222. '--underscore' and '--no-underscore'. The default is '--underscore'.
  7223. Since symbols in CRIS a.out objects are expected to have a '_' prefix,
  7224. specifying '--no-underscore' when generating a.out objects is an error.
  7225. Besides the object format difference, the effect of this option is to
  7226. parse register names differently (*note crisnous::). The
  7227. '--no-underscore' option makes a '$' register prefix mandatory.
  7228. The option '--pic' must be passed to 'as' in order to recognize the
  7229. symbol syntax used for ELF (SVR4 PIC) position-independent-code (*note
  7230. crispic::). This will also affect expansion of instructions. The
  7231. expansion with '--pic' will use PC-relative rather than (slightly
  7232. faster) absolute addresses in those expansions. This option is only
  7233. valid when generating ELF format object files.
  7234. The option '--march=ARCHITECTURE' specifies the recognized
  7235. instruction set and recognized register names. It also controls the
  7236. architecture type of the object file. Valid values for ARCHITECTURE
  7237. are:
  7238. 'v0_v10'
  7239. All instructions and register names for any architecture variant in
  7240. the set v0...v10 are recognized. This is the default if the target
  7241. is configured as cris-*.
  7242. 'v10'
  7243. Only instructions and register names for CRIS v10 (as found in
  7244. ETRAX 100 LX) are recognized. This is the default if the target is
  7245. configured as crisv10-*.
  7246. 'v32'
  7247. Only instructions and register names for CRIS v32 (code name
  7248. Guinness) are recognized. This is the default if the target is
  7249. configured as crisv32-*. This value implies '--no-mul-bug-abort'.
  7250. (A subsequent '--mul-bug-abort' will turn it back on.)
  7251. 'common_v10_v32'
  7252. Only instructions with register names and addressing modes with
  7253. opcodes common to the v10 and v32 are recognized.
  7254. When '-N' is specified, 'as' will emit a warning when a 16-bit branch
  7255. instruction is expanded into a 32-bit multiple-instruction construct
  7256. (*note CRIS-Expand::).
  7257. Some versions of the CRIS v10, for example in the Etrax 100 LX,
  7258. contain a bug that causes destabilizing memory accesses when a multiply
  7259. instruction is executed with certain values in the first operand just
  7260. before a cache-miss. When the '--mul-bug-abort' command-line option is
  7261. active (the default value), 'as' will refuse to assemble a file
  7262. containing a multiply instruction at a dangerous offset, one that could
  7263. be the last on a cache-line, or is in a section with insufficient
  7264. alignment. This placement checking does not catch any case where the
  7265. multiply instruction is dangerously placed because it is located in a
  7266. delay-slot. The '--mul-bug-abort' command-line option turns off the
  7267. checking.
  7268. 
  7269. File: as.info, Node: CRIS-Expand, Next: CRIS-Symbols, Prev: CRIS-Opts, Up: CRIS-Dependent
  7270. 9.8.2 Instruction expansion
  7271. ---------------------------
  7272. 'as' will silently choose an instruction that fits the operand size for
  7273. '[register+constant]' operands. For example, the offset '127' in
  7274. 'move.d [r3+127],r4' fits in an instruction using a signed-byte offset.
  7275. Similarly, 'move.d [r2+32767],r1' will generate an instruction using a
  7276. 16-bit offset. For symbolic expressions and constants that do not fit
  7277. in 16 bits including the sign bit, a 32-bit offset is generated.
  7278. For branches, 'as' will expand from a 16-bit branch instruction into
  7279. a sequence of instructions that can reach a full 32-bit address. Since
  7280. this does not correspond to a single instruction, such expansions can
  7281. optionally be warned about. *Note CRIS-Opts::.
  7282. If the operand is found to fit the range, a 'lapc' mnemonic will
  7283. translate to a 'lapcq' instruction. Use 'lapc.d' to force the 32-bit
  7284. 'lapc' instruction.
  7285. Similarly, the 'addo' mnemonic will translate to the shortest fitting
  7286. instruction of 'addoq', 'addo.w' and 'addo.d', when used with a operand
  7287. that is a constant known at assembly time.
  7288. 
  7289. File: as.info, Node: CRIS-Symbols, Next: CRIS-Syntax, Prev: CRIS-Expand, Up: CRIS-Dependent
  7290. 9.8.3 Symbols
  7291. -------------
  7292. Some symbols are defined by the assembler. They're intended to be used
  7293. in conditional assembly, for example:
  7294. .if ..asm.arch.cris.v32
  7295. CODE FOR CRIS V32
  7296. .elseif ..asm.arch.cris.common_v10_v32
  7297. CODE COMMON TO CRIS V32 AND CRIS V10
  7298. .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
  7299. CODE FOR V10
  7300. .else
  7301. .error "Code needs to be added here."
  7302. .endif
  7303. These symbols are defined in the assembler, reflecting command-line
  7304. options, either when specified or the default. They are always defined,
  7305. to 0 or 1.
  7306. '..asm.arch.cris.any_v0_v10'
  7307. This symbol is non-zero when '--march=v0_v10' is specified or the
  7308. default.
  7309. '..asm.arch.cris.common_v10_v32'
  7310. Set according to the option '--march=common_v10_v32'.
  7311. '..asm.arch.cris.v10'
  7312. Reflects the option '--march=v10'.
  7313. '..asm.arch.cris.v32'
  7314. Corresponds to '--march=v10'.
  7315. Speaking of symbols, when a symbol is used in code, it can have a
  7316. suffix modifying its value for use in position-independent code. *Note
  7317. CRIS-Pic::.
  7318. 
  7319. File: as.info, Node: CRIS-Syntax, Prev: CRIS-Symbols, Up: CRIS-Dependent
  7320. 9.8.4 Syntax
  7321. ------------
  7322. There are different aspects of the CRIS assembly syntax.
  7323. * Menu:
  7324. * CRIS-Chars:: Special Characters
  7325. * CRIS-Pic:: Position-Independent Code Symbols
  7326. * CRIS-Regs:: Register Names
  7327. * CRIS-Pseudos:: Assembler Directives
  7328. 
  7329. File: as.info, Node: CRIS-Chars, Next: CRIS-Pic, Up: CRIS-Syntax
  7330. 9.8.4.1 Special Characters
  7331. ..........................
  7332. The character '#' is a line comment character. It starts a comment if
  7333. and only if it is placed at the beginning of a line.
  7334. A ';' character starts a comment anywhere on the line, causing all
  7335. characters up to the end of the line to be ignored.
  7336. A '@' character is handled as a line separator equivalent to a
  7337. logical new-line character (except in a comment), so separate
  7338. instructions can be specified on a single line.
  7339. 
  7340. File: as.info, Node: CRIS-Pic, Next: CRIS-Regs, Prev: CRIS-Chars, Up: CRIS-Syntax
  7341. 9.8.4.2 Symbols in position-independent code
  7342. ............................................
  7343. When generating position-independent code (SVR4 PIC) for use in
  7344. cris-axis-linux-gnu or crisv32-axis-linux-gnu shared libraries, symbol
  7345. suffixes are used to specify what kind of run-time symbol lookup will be
  7346. used, expressed in the object as different _relocation types_. Usually,
  7347. all absolute symbol values must be located in a table, the _global
  7348. offset table_, leaving the code position-independent; independent of
  7349. values of global symbols and independent of the address of the code.
  7350. The suffix modifies the value of the symbol, into for example an index
  7351. into the global offset table where the real symbol value is entered, or
  7352. a PC-relative value, or a value relative to the start of the global
  7353. offset table. All symbol suffixes start with the character ':' (omitted
  7354. in the list below). Every symbol use in code or a read-only section
  7355. must therefore have a PIC suffix to enable a useful shared library to be
  7356. created. Usually, these constructs must not be used with an additive
  7357. constant offset as is usually allowed, i.e. no 4 as in 'symbol + 4' is
  7358. allowed. This restriction is checked at link-time, not at
  7359. assembly-time.
  7360. 'GOT'
  7361. Attaching this suffix to a symbol in an instruction causes the
  7362. symbol to be entered into the global offset table. The value is a
  7363. 32-bit index for that symbol into the global offset table. The
  7364. name of the corresponding relocation is 'R_CRIS_32_GOT'. Example:
  7365. 'move.d [$r0+extsym:GOT],$r9'
  7366. 'GOT16'
  7367. Same as for 'GOT', but the value is a 16-bit index into the global
  7368. offset table. The corresponding relocation is 'R_CRIS_16_GOT'.
  7369. Example: 'move.d [$r0+asymbol:GOT16],$r10'
  7370. 'PLT'
  7371. This suffix is used for function symbols. It causes a _procedure
  7372. linkage table_, an array of code stubs, to be created at the time
  7373. the shared object is created or linked against, together with a
  7374. global offset table entry. The value is a pc-relative offset to
  7375. the corresponding stub code in the procedure linkage table. This
  7376. arrangement causes the run-time symbol resolver to be called to
  7377. look up and set the value of the symbol the first time the function
  7378. is called (at latest; depending environment variables). It is only
  7379. safe to leave the symbol unresolved this way if all references are
  7380. function calls. The name of the relocation is
  7381. 'R_CRIS_32_PLT_PCREL'. Example: 'add.d fnname:PLT,$pc'
  7382. 'PLTG'
  7383. Like PLT, but the value is relative to the beginning of the global
  7384. offset table. The relocation is 'R_CRIS_32_PLT_GOTREL'. Example:
  7385. 'move.d fnname:PLTG,$r3'
  7386. 'GOTPLT'
  7387. Similar to 'PLT', but the value of the symbol is a 32-bit index
  7388. into the global offset table. This is somewhat of a mix between
  7389. the effect of the 'GOT' and the 'PLT' suffix; the difference to
  7390. 'GOT' is that there will be a procedure linkage table entry
  7391. created, and that the symbol is assumed to be a function entry and
  7392. will be resolved by the run-time resolver as with 'PLT'. The
  7393. relocation is 'R_CRIS_32_GOTPLT'. Example: 'jsr
  7394. [$r0+fnname:GOTPLT]'
  7395. 'GOTPLT16'
  7396. A variant of 'GOTPLT' giving a 16-bit value. Its relocation name
  7397. is 'R_CRIS_16_GOTPLT'. Example: 'jsr [$r0+fnname:GOTPLT16]'
  7398. 'GOTOFF'
  7399. This suffix must only be attached to a local symbol, but may be
  7400. used in an expression adding an offset. The value is the address
  7401. of the symbol relative to the start of the global offset table.
  7402. The relocation name is 'R_CRIS_32_GOTREL'. Example: 'move.d
  7403. [$r0+localsym:GOTOFF],r3'
  7404. 
  7405. File: as.info, Node: CRIS-Regs, Next: CRIS-Pseudos, Prev: CRIS-Pic, Up: CRIS-Syntax
  7406. 9.8.4.3 Register names
  7407. ......................
  7408. A '$' character may always prefix a general or special register name in
  7409. an instruction operand but is mandatory when the option
  7410. '--no-underscore' is specified or when the '.syntax register_prefix'
  7411. directive is in effect (*note crisnous::). Register names are
  7412. case-insensitive.
  7413. 
  7414. File: as.info, Node: CRIS-Pseudos, Prev: CRIS-Regs, Up: CRIS-Syntax
  7415. 9.8.4.4 Assembler Directives
  7416. ............................
  7417. There are a few CRIS-specific pseudo-directives in addition to the
  7418. generic ones. *Note Pseudo Ops::. Constants emitted by
  7419. pseudo-directives are in little-endian order for CRIS. There is no
  7420. support for floating-point-specific directives for CRIS.
  7421. '.dword EXPRESSIONS'
  7422. The '.dword' directive is a synonym for '.int', expecting zero or
  7423. more EXPRESSIONS, separated by commas. For each expression, a
  7424. 32-bit little-endian constant is emitted.
  7425. '.syntax ARGUMENT'
  7426. The '.syntax' directive takes as ARGUMENT one of the following
  7427. case-sensitive choices.
  7428. 'no_register_prefix'
  7429. The '.syntax no_register_prefix' directive makes a '$'
  7430. character prefix on all registers optional. It overrides a
  7431. previous setting, including the corresponding effect of the
  7432. option '--no-underscore'. If this directive is used when
  7433. ordinary symbols do not have a '_' character prefix, care must
  7434. be taken to avoid ambiguities whether an operand is a register
  7435. or a symbol; using symbols with names the same as general or
  7436. special registers then invoke undefined behavior.
  7437. 'register_prefix'
  7438. This directive makes a '$' character prefix on all registers
  7439. mandatory. It overrides a previous setting, including the
  7440. corresponding effect of the option '--underscore'.
  7441. 'leading_underscore'
  7442. This is an assertion directive, emitting an error if the
  7443. '--no-underscore' option is in effect.
  7444. 'no_leading_underscore'
  7445. This is the opposite of the '.syntax leading_underscore'
  7446. directive and emits an error if the option '--underscore' is
  7447. in effect.
  7448. '.arch ARGUMENT'
  7449. This is an assertion directive, giving an error if the specified
  7450. ARGUMENT is not the same as the specified or default value for the
  7451. '--march=ARCHITECTURE' option (*note march-option::).
  7452. 
  7453. File: as.info, Node: C-SKY-Dependent, Next: D10V-Dependent, Prev: CRIS-Dependent, Up: Machine Dependencies
  7454. 9.9 C-SKY Dependent Features
  7455. ============================
  7456. * Menu:
  7457. * C-SKY Options:: Options
  7458. * C-SKY Syntax:: Syntax
  7459. 
  7460. File: as.info, Node: C-SKY Options, Next: C-SKY Syntax, Up: C-SKY-Dependent
  7461. 9.9.1 Options
  7462. -------------
  7463. '-march=ARCHNAME'
  7464. Assemble for architecture ARCHNAME. The '--help' option lists
  7465. valid values for ARCHNAME.
  7466. '-mcpu=CPUNAME'
  7467. Assemble for architecture CPUNAME. The '--help' option lists valid
  7468. values for CPUNAME.
  7469. '-EL'
  7470. '-mlittle-endian'
  7471. Generate little-endian output.
  7472. '-EB'
  7473. '-mbig-endian'
  7474. Generate big-endian output.
  7475. '-fpic'
  7476. '-pic'
  7477. Generate position-independent code.
  7478. '-mljump'
  7479. '-mno-ljump'
  7480. Enable/disable transformation of the short branch instructions
  7481. 'jbf', 'jbt', and 'jbr' to 'jmpi'. This option is for V2
  7482. processors only. It is ignored on CK801 and CK802 targets, which
  7483. do not support the 'jmpi' instruction, and is enabled by default
  7484. for other processors.
  7485. '-mbranch-stub'
  7486. '-mno-branch-stub'
  7487. Pass through 'R_CKCORE_PCREL_IMM26BY2' relocations for 'bsr'
  7488. instructions to the linker.
  7489. This option is only available for bare-metal C-SKY V2 ELF targets,
  7490. where it is enabled by default. It cannot be used in code that
  7491. will be dynamically linked against shared libraries.
  7492. '-force2bsr'
  7493. '-mforce2bsr'
  7494. '-no-force2bsr'
  7495. '-mno-force2bsr'
  7496. Enable/disable transformation of 'jbsr' instructions to 'bsr'.
  7497. This option is always enabled (and '-mno-force2bsr' is ignored) for
  7498. CK801/CK802 targets. It is also always enabled when
  7499. '-mbranch-stub' is in effect.
  7500. '-jsri2bsr'
  7501. '-mjsri2bsr'
  7502. '-no-jsri2bsr'
  7503. '-mno-jsri2bsr'
  7504. Enable/disable transformation of 'jsri' instructions to 'bsr'.
  7505. This option is enabled by default.
  7506. '-mnolrw'
  7507. '-mno-lrw'
  7508. Enable/disable transformation of 'lrw' instructions into a
  7509. 'movih'/'ori' pair.
  7510. '-melrw'
  7511. '-mno-elrw'
  7512. Enable/disable extended 'lrw' instructions. This option is enabled
  7513. by default for CK800-series processors.
  7514. '-mlaf'
  7515. '-mliterals-after-func'
  7516. '-mno-laf'
  7517. '-mno-literals-after-func'
  7518. Enable/disable placement of literal pools after each function.
  7519. '-mlabr'
  7520. '-mliterals-after-br'
  7521. '-mno-labr'
  7522. '-mnoliterals-after-br'
  7523. Enable/disable placement of literal pools after unconditional
  7524. branches. This option is enabled by default.
  7525. '-mistack'
  7526. '-mno-istack'
  7527. Enable/disable interrupt stack instructions. This option is
  7528. enabled by default on CK801, CK802, and CK802 processors.
  7529. The following options explicitly enable certain optional
  7530. instructions. These features are also enabled implicitly by using
  7531. '-mcpu=' to specify a processor that supports it.
  7532. '-mhard-float'
  7533. Enable hard float instructions.
  7534. '-mmp'
  7535. Enable multiprocessor instructions.
  7536. '-mcp'
  7537. Enable coprocessor instructions.
  7538. '-mcache'
  7539. Enable cache prefetch instruction.
  7540. '-msecurity'
  7541. Enable C-SKY security instructions.
  7542. '-mtrust'
  7543. Enable C-SKY trust instructions.
  7544. '-mdsp'
  7545. Enable DSP instructions.
  7546. '-medsp'
  7547. Enable enhanced DSP instructions.
  7548. '-mvdsp'
  7549. Enable vector DSP instructions.
  7550. 
  7551. File: as.info, Node: C-SKY Syntax, Prev: C-SKY Options, Up: C-SKY-Dependent
  7552. 9.9.2 Syntax
  7553. ------------
  7554. 'as' implements the standard C-SKY assembler syntax documented in the
  7555. 'C-SKY V2 CPU Applications Binary Interface Standards Manual'.
  7556. 
  7557. File: as.info, Node: D10V-Dependent, Next: D30V-Dependent, Prev: C-SKY-Dependent, Up: Machine Dependencies
  7558. 9.10 D10V Dependent Features
  7559. ============================
  7560. * Menu:
  7561. * D10V-Opts:: D10V Options
  7562. * D10V-Syntax:: Syntax
  7563. * D10V-Float:: Floating Point
  7564. * D10V-Opcodes:: Opcodes
  7565. 
  7566. File: as.info, Node: D10V-Opts, Next: D10V-Syntax, Up: D10V-Dependent
  7567. 9.10.1 D10V Options
  7568. -------------------
  7569. The Mitsubishi D10V version of 'as' has a few machine dependent options.
  7570. '-O'
  7571. The D10V can often execute two sub-instructions in parallel. When
  7572. this option is used, 'as' will attempt to optimize its output by
  7573. detecting when instructions can be executed in parallel.
  7574. '--nowarnswap'
  7575. To optimize execution performance, 'as' will sometimes swap the
  7576. order of instructions. Normally this generates a warning. When
  7577. this option is used, no warning will be generated when instructions
  7578. are swapped.
  7579. '--gstabs-packing'
  7580. '--no-gstabs-packing'
  7581. 'as' packs adjacent short instructions into a single packed
  7582. instruction. '--no-gstabs-packing' turns instruction packing off
  7583. if '--gstabs' is specified as well; '--gstabs-packing' (the
  7584. default) turns instruction packing on even when '--gstabs' is
  7585. specified.
  7586. 
  7587. File: as.info, Node: D10V-Syntax, Next: D10V-Float, Prev: D10V-Opts, Up: D10V-Dependent
  7588. 9.10.2 Syntax
  7589. -------------
  7590. The D10V syntax is based on the syntax in Mitsubishi's D10V architecture
  7591. manual. The differences are detailed below.
  7592. * Menu:
  7593. * D10V-Size:: Size Modifiers
  7594. * D10V-Subs:: Sub-Instructions
  7595. * D10V-Chars:: Special Characters
  7596. * D10V-Regs:: Register Names
  7597. * D10V-Addressing:: Addressing Modes
  7598. * D10V-Word:: @WORD Modifier
  7599. 
  7600. File: as.info, Node: D10V-Size, Next: D10V-Subs, Up: D10V-Syntax
  7601. 9.10.2.1 Size Modifiers
  7602. .......................
  7603. The D10V version of 'as' uses the instruction names in the D10V
  7604. Architecture Manual. However, the names in the manual are sometimes
  7605. ambiguous. There are instruction names that can assemble to a short or
  7606. long form opcode. How does the assembler pick the correct form? 'as'
  7607. will always pick the smallest form if it can. When dealing with a
  7608. symbol that is not defined yet when a line is being assembled, it will
  7609. always use the long form. If you need to force the assembler to use
  7610. either the short or long form of the instruction, you can append either
  7611. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  7612. assembly program and you want to do a branch to a symbol that is defined
  7613. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  7614. always append '.s' or '.l' to instructions which have both short and
  7615. long forms.
  7616. 
  7617. File: as.info, Node: D10V-Subs, Next: D10V-Chars, Prev: D10V-Size, Up: D10V-Syntax
  7618. 9.10.2.2 Sub-Instructions
  7619. .........................
  7620. The D10V assembler takes as input a series of instructions, either
  7621. one-per-line, or in the special two-per-line format described in the
  7622. next section. Some of these instructions will be short-form or
  7623. sub-instructions. These sub-instructions can be packed into a single
  7624. instruction. The assembler will do this automatically. It will also
  7625. detect when it should not pack instructions. For example, when a label
  7626. is defined, the next instruction will never be packaged with the
  7627. previous one. Whenever a branch and link instruction is called, it will
  7628. not be packaged with the next instruction so the return address will be
  7629. valid. Nops are automatically inserted when necessary.
  7630. If you do not want the assembler automatically making these
  7631. decisions, you can control the packaging and execution type (parallel or
  7632. sequential) with the special execution symbols described in the next
  7633. section.
  7634. 
  7635. File: as.info, Node: D10V-Chars, Next: D10V-Regs, Prev: D10V-Subs, Up: D10V-Syntax
  7636. 9.10.2.3 Special Characters
  7637. ...........................
  7638. A semicolon (';') can be used anywhere on a line to start a comment that
  7639. extends to the end of the line.
  7640. If a '#' appears as the first character of a line, the whole line is
  7641. treated as a comment, but in this case the line could also be a logical
  7642. line number directive (*note Comments::) or a preprocessor control
  7643. command (*note Preprocessing::).
  7644. Sub-instructions may be executed in order, in reverse-order, or in
  7645. parallel. Instructions listed in the standard one-per-line format will
  7646. be executed sequentially. To specify the executing order, use the
  7647. following symbols:
  7648. '->'
  7649. Sequential with instruction on the left first.
  7650. '<-'
  7651. Sequential with instruction on the right first.
  7652. '||'
  7653. Parallel
  7654. The D10V syntax allows either one instruction per line, one
  7655. instruction per line with the execution symbol, or two instructions per
  7656. line. For example
  7657. 'abs a1 -> abs r0'
  7658. Execute these sequentially. The instruction on the right is in the
  7659. right container and is executed second.
  7660. 'abs r0 <- abs a1'
  7661. Execute these reverse-sequentially. The instruction on the right
  7662. is in the right container, and is executed first.
  7663. 'ld2w r2,@r8+ || mac a0,r0,r7'
  7664. Execute these in parallel.
  7665. 'ld2w r2,@r8+ ||'
  7666. 'mac a0,r0,r7'
  7667. Two-line format. Execute these in parallel.
  7668. 'ld2w r2,@r8+'
  7669. 'mac a0,r0,r7'
  7670. Two-line format. Execute these sequentially. Assembler will put
  7671. them in the proper containers.
  7672. 'ld2w r2,@r8+ ->'
  7673. 'mac a0,r0,r7'
  7674. Two-line format. Execute these sequentially. Same as above but
  7675. second instruction will always go into right container.
  7676. Since '$' has no special meaning, you may use it in symbol names.
  7677. 
  7678. File: as.info, Node: D10V-Regs, Next: D10V-Addressing, Prev: D10V-Chars, Up: D10V-Syntax
  7679. 9.10.2.4 Register Names
  7680. .......................
  7681. You can use the predefined symbols 'r0' through 'r15' to refer to the
  7682. D10V registers. You can also use 'sp' as an alias for 'r15'. The
  7683. accumulators are 'a0' and 'a1'. There are special register-pair names
  7684. that may optionally be used in opcodes that require even-numbered
  7685. registers. Register names are not case sensitive.
  7686. Register Pairs
  7687. 'r0-r1'
  7688. 'r2-r3'
  7689. 'r4-r5'
  7690. 'r6-r7'
  7691. 'r8-r9'
  7692. 'r10-r11'
  7693. 'r12-r13'
  7694. 'r14-r15'
  7695. The D10V also has predefined symbols for these control registers and
  7696. status bits:
  7697. 'psw'
  7698. Processor Status Word
  7699. 'bpsw'
  7700. Backup Processor Status Word
  7701. 'pc'
  7702. Program Counter
  7703. 'bpc'
  7704. Backup Program Counter
  7705. 'rpt_c'
  7706. Repeat Count
  7707. 'rpt_s'
  7708. Repeat Start address
  7709. 'rpt_e'
  7710. Repeat End address
  7711. 'mod_s'
  7712. Modulo Start address
  7713. 'mod_e'
  7714. Modulo End address
  7715. 'iba'
  7716. Instruction Break Address
  7717. 'f0'
  7718. Flag 0
  7719. 'f1'
  7720. Flag 1
  7721. 'c'
  7722. Carry flag
  7723. 
  7724. File: as.info, Node: D10V-Addressing, Next: D10V-Word, Prev: D10V-Regs, Up: D10V-Syntax
  7725. 9.10.2.5 Addressing Modes
  7726. .........................
  7727. 'as' understands the following addressing modes for the D10V. 'RN' in
  7728. the following refers to any of the numbered registers, but _not_ the
  7729. control registers.
  7730. 'RN'
  7731. Register direct
  7732. '@RN'
  7733. Register indirect
  7734. '@RN+'
  7735. Register indirect with post-increment
  7736. '@RN-'
  7737. Register indirect with post-decrement
  7738. '@-SP'
  7739. Register indirect with pre-decrement
  7740. '@(DISP, RN)'
  7741. Register indirect with displacement
  7742. 'ADDR'
  7743. PC relative address (for branch or rep).
  7744. '#IMM'
  7745. Immediate data (the '#' is optional and ignored)
  7746. 
  7747. File: as.info, Node: D10V-Word, Prev: D10V-Addressing, Up: D10V-Syntax
  7748. 9.10.2.6 @WORD Modifier
  7749. .......................
  7750. Any symbol followed by '@word' will be replaced by the symbol's value
  7751. shifted right by 2. This is used in situations such as loading a
  7752. register with the address of a function (or any other code fragment).
  7753. For example, if you want to load a register with the location of the
  7754. function 'main' then jump to that function, you could do it as follows:
  7755. ldi r2, main@word
  7756. jmp r2
  7757. 
  7758. File: as.info, Node: D10V-Float, Next: D10V-Opcodes, Prev: D10V-Syntax, Up: D10V-Dependent
  7759. 9.10.3 Floating Point
  7760. ---------------------
  7761. The D10V has no hardware floating point, but the '.float' and '.double'
  7762. directives generates IEEE floating-point numbers for compatibility with
  7763. other development tools.
  7764. 
  7765. File: as.info, Node: D10V-Opcodes, Prev: D10V-Float, Up: D10V-Dependent
  7766. 9.10.4 Opcodes
  7767. --------------
  7768. For detailed information on the D10V machine instruction set, see 'D10V
  7769. Architecture: A VLIW Microprocessor for Multimedia Applications'
  7770. (Mitsubishi Electric Corp.). 'as' implements all the standard D10V
  7771. opcodes. The only changes are those described in the section on size
  7772. modifiers
  7773. 
  7774. File: as.info, Node: D30V-Dependent, Next: Epiphany-Dependent, Prev: D10V-Dependent, Up: Machine Dependencies
  7775. 9.11 D30V Dependent Features
  7776. ============================
  7777. * Menu:
  7778. * D30V-Opts:: D30V Options
  7779. * D30V-Syntax:: Syntax
  7780. * D30V-Float:: Floating Point
  7781. * D30V-Opcodes:: Opcodes
  7782. 
  7783. File: as.info, Node: D30V-Opts, Next: D30V-Syntax, Up: D30V-Dependent
  7784. 9.11.1 D30V Options
  7785. -------------------
  7786. The Mitsubishi D30V version of 'as' has a few machine dependent options.
  7787. '-O'
  7788. The D30V can often execute two sub-instructions in parallel. When
  7789. this option is used, 'as' will attempt to optimize its output by
  7790. detecting when instructions can be executed in parallel.
  7791. '-n'
  7792. When this option is used, 'as' will issue a warning every time it
  7793. adds a nop instruction.
  7794. '-N'
  7795. When this option is used, 'as' will issue a warning if it needs to
  7796. insert a nop after a 32-bit multiply before a load or 16-bit
  7797. multiply instruction.
  7798. 
  7799. File: as.info, Node: D30V-Syntax, Next: D30V-Float, Prev: D30V-Opts, Up: D30V-Dependent
  7800. 9.11.2 Syntax
  7801. -------------
  7802. The D30V syntax is based on the syntax in Mitsubishi's D30V architecture
  7803. manual. The differences are detailed below.
  7804. * Menu:
  7805. * D30V-Size:: Size Modifiers
  7806. * D30V-Subs:: Sub-Instructions
  7807. * D30V-Chars:: Special Characters
  7808. * D30V-Guarded:: Guarded Execution
  7809. * D30V-Regs:: Register Names
  7810. * D30V-Addressing:: Addressing Modes
  7811. 
  7812. File: as.info, Node: D30V-Size, Next: D30V-Subs, Up: D30V-Syntax
  7813. 9.11.2.1 Size Modifiers
  7814. .......................
  7815. The D30V version of 'as' uses the instruction names in the D30V
  7816. Architecture Manual. However, the names in the manual are sometimes
  7817. ambiguous. There are instruction names that can assemble to a short or
  7818. long form opcode. How does the assembler pick the correct form? 'as'
  7819. will always pick the smallest form if it can. When dealing with a
  7820. symbol that is not defined yet when a line is being assembled, it will
  7821. always use the long form. If you need to force the assembler to use
  7822. either the short or long form of the instruction, you can append either
  7823. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  7824. assembly program and you want to do a branch to a symbol that is defined
  7825. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  7826. always append '.s' or '.l' to instructions which have both short and
  7827. long forms.
  7828. 
  7829. File: as.info, Node: D30V-Subs, Next: D30V-Chars, Prev: D30V-Size, Up: D30V-Syntax
  7830. 9.11.2.2 Sub-Instructions
  7831. .........................
  7832. The D30V assembler takes as input a series of instructions, either
  7833. one-per-line, or in the special two-per-line format described in the
  7834. next section. Some of these instructions will be short-form or
  7835. sub-instructions. These sub-instructions can be packed into a single
  7836. instruction. The assembler will do this automatically. It will also
  7837. detect when it should not pack instructions. For example, when a label
  7838. is defined, the next instruction will never be packaged with the
  7839. previous one. Whenever a branch and link instruction is called, it will
  7840. not be packaged with the next instruction so the return address will be
  7841. valid. Nops are automatically inserted when necessary.
  7842. If you do not want the assembler automatically making these
  7843. decisions, you can control the packaging and execution type (parallel or
  7844. sequential) with the special execution symbols described in the next
  7845. section.
  7846. 
  7847. File: as.info, Node: D30V-Chars, Next: D30V-Guarded, Prev: D30V-Subs, Up: D30V-Syntax
  7848. 9.11.2.3 Special Characters
  7849. ...........................
  7850. A semicolon (';') can be used anywhere on a line to start a comment that
  7851. extends to the end of the line.
  7852. If a '#' appears as the first character of a line, the whole line is
  7853. treated as a comment, but in this case the line could also be a logical
  7854. line number directive (*note Comments::) or a preprocessor control
  7855. command (*note Preprocessing::).
  7856. Sub-instructions may be executed in order, in reverse-order, or in
  7857. parallel. Instructions listed in the standard one-per-line format will
  7858. be executed sequentially unless you use the '-O' option.
  7859. To specify the executing order, use the following symbols:
  7860. '->'
  7861. Sequential with instruction on the left first.
  7862. '<-'
  7863. Sequential with instruction on the right first.
  7864. '||'
  7865. Parallel
  7866. The D30V syntax allows either one instruction per line, one
  7867. instruction per line with the execution symbol, or two instructions per
  7868. line. For example
  7869. 'abs r2,r3 -> abs r4,r5'
  7870. Execute these sequentially. The instruction on the right is in the
  7871. right container and is executed second.
  7872. 'abs r2,r3 <- abs r4,r5'
  7873. Execute these reverse-sequentially. The instruction on the right
  7874. is in the right container, and is executed first.
  7875. 'abs r2,r3 || abs r4,r5'
  7876. Execute these in parallel.
  7877. 'ldw r2,@(r3,r4) ||'
  7878. 'mulx r6,r8,r9'
  7879. Two-line format. Execute these in parallel.
  7880. 'mulx a0,r8,r9'
  7881. 'stw r2,@(r3,r4)'
  7882. Two-line format. Execute these sequentially unless '-O' option is
  7883. used. If the '-O' option is used, the assembler will determine if
  7884. the instructions could be done in parallel (the above two
  7885. instructions can be done in parallel), and if so, emit them as
  7886. parallel instructions. The assembler will put them in the proper
  7887. containers. In the above example, the assembler will put the 'stw'
  7888. instruction in left container and the 'mulx' instruction in the
  7889. right container.
  7890. 'stw r2,@(r3,r4) ->'
  7891. 'mulx a0,r8,r9'
  7892. Two-line format. Execute the 'stw' instruction followed by the
  7893. 'mulx' instruction sequentially. The first instruction goes in the
  7894. left container and the second instruction goes into right
  7895. container. The assembler will give an error if the machine
  7896. ordering constraints are violated.
  7897. 'stw r2,@(r3,r4) <-'
  7898. 'mulx a0,r8,r9'
  7899. Same as previous example, except that the 'mulx' instruction is
  7900. executed before the 'stw' instruction.
  7901. Since '$' has no special meaning, you may use it in symbol names.
  7902. 
  7903. File: as.info, Node: D30V-Guarded, Next: D30V-Regs, Prev: D30V-Chars, Up: D30V-Syntax
  7904. 9.11.2.4 Guarded Execution
  7905. ..........................
  7906. 'as' supports the full range of guarded execution directives for each
  7907. instruction. Just append the directive after the instruction proper.
  7908. The directives are:
  7909. '/tx'
  7910. Execute the instruction if flag f0 is true.
  7911. '/fx'
  7912. Execute the instruction if flag f0 is false.
  7913. '/xt'
  7914. Execute the instruction if flag f1 is true.
  7915. '/xf'
  7916. Execute the instruction if flag f1 is false.
  7917. '/tt'
  7918. Execute the instruction if both flags f0 and f1 are true.
  7919. '/tf'
  7920. Execute the instruction if flag f0 is true and flag f1 is false.
  7921. 
  7922. File: as.info, Node: D30V-Regs, Next: D30V-Addressing, Prev: D30V-Guarded, Up: D30V-Syntax
  7923. 9.11.2.5 Register Names
  7924. .......................
  7925. You can use the predefined symbols 'r0' through 'r63' to refer to the
  7926. D30V registers. You can also use 'sp' as an alias for 'r63' and 'link'
  7927. as an alias for 'r62'. The accumulators are 'a0' and 'a1'.
  7928. The D30V also has predefined symbols for these control registers and
  7929. status bits:
  7930. 'psw'
  7931. Processor Status Word
  7932. 'bpsw'
  7933. Backup Processor Status Word
  7934. 'pc'
  7935. Program Counter
  7936. 'bpc'
  7937. Backup Program Counter
  7938. 'rpt_c'
  7939. Repeat Count
  7940. 'rpt_s'
  7941. Repeat Start address
  7942. 'rpt_e'
  7943. Repeat End address
  7944. 'mod_s'
  7945. Modulo Start address
  7946. 'mod_e'
  7947. Modulo End address
  7948. 'iba'
  7949. Instruction Break Address
  7950. 'f0'
  7951. Flag 0
  7952. 'f1'
  7953. Flag 1
  7954. 'f2'
  7955. Flag 2
  7956. 'f3'
  7957. Flag 3
  7958. 'f4'
  7959. Flag 4
  7960. 'f5'
  7961. Flag 5
  7962. 'f6'
  7963. Flag 6
  7964. 'f7'
  7965. Flag 7
  7966. 's'
  7967. Same as flag 4 (saturation flag)
  7968. 'v'
  7969. Same as flag 5 (overflow flag)
  7970. 'va'
  7971. Same as flag 6 (sticky overflow flag)
  7972. 'c'
  7973. Same as flag 7 (carry/borrow flag)
  7974. 'b'
  7975. Same as flag 7 (carry/borrow flag)
  7976. 
  7977. File: as.info, Node: D30V-Addressing, Prev: D30V-Regs, Up: D30V-Syntax
  7978. 9.11.2.6 Addressing Modes
  7979. .........................
  7980. 'as' understands the following addressing modes for the D30V. 'RN' in
  7981. the following refers to any of the numbered registers, but _not_ the
  7982. control registers.
  7983. 'RN'
  7984. Register direct
  7985. '@RN'
  7986. Register indirect
  7987. '@RN+'
  7988. Register indirect with post-increment
  7989. '@RN-'
  7990. Register indirect with post-decrement
  7991. '@-SP'
  7992. Register indirect with pre-decrement
  7993. '@(DISP, RN)'
  7994. Register indirect with displacement
  7995. 'ADDR'
  7996. PC relative address (for branch or rep).
  7997. '#IMM'
  7998. Immediate data (the '#' is optional and ignored)
  7999. 
  8000. File: as.info, Node: D30V-Float, Next: D30V-Opcodes, Prev: D30V-Syntax, Up: D30V-Dependent
  8001. 9.11.3 Floating Point
  8002. ---------------------
  8003. The D30V has no hardware floating point, but the '.float' and '.double'
  8004. directives generates IEEE floating-point numbers for compatibility with
  8005. other development tools.
  8006. 
  8007. File: as.info, Node: D30V-Opcodes, Prev: D30V-Float, Up: D30V-Dependent
  8008. 9.11.4 Opcodes
  8009. --------------
  8010. For detailed information on the D30V machine instruction set, see 'D30V
  8011. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8012. (Mitsubishi Electric Corp.). 'as' implements all the standard D30V
  8013. opcodes. The only changes are those described in the section on size
  8014. modifiers
  8015. 
  8016. File: as.info, Node: Epiphany-Dependent, Next: H8/300-Dependent, Prev: D30V-Dependent, Up: Machine Dependencies
  8017. 9.12 Epiphany Dependent Features
  8018. ================================
  8019. * Menu:
  8020. * Epiphany Options:: Options
  8021. * Epiphany Syntax:: Epiphany Syntax
  8022. 
  8023. File: as.info, Node: Epiphany Options, Next: Epiphany Syntax, Up: Epiphany-Dependent
  8024. 9.12.1 Options
  8025. --------------
  8026. 'as' has two additional command-line options for the Epiphany
  8027. architecture.
  8028. '-mepiphany'
  8029. Specifies that the both 32 and 16 bit instructions are allowed.
  8030. This is the default behavior.
  8031. '-mepiphany16'
  8032. Restricts the permitted instructions to just the 16 bit set.
  8033. 
  8034. File: as.info, Node: Epiphany Syntax, Prev: Epiphany Options, Up: Epiphany-Dependent
  8035. 9.12.2 Epiphany Syntax
  8036. ----------------------
  8037. * Menu:
  8038. * Epiphany-Chars:: Special Characters
  8039. 
  8040. File: as.info, Node: Epiphany-Chars, Up: Epiphany Syntax
  8041. 9.12.2.1 Special Characters
  8042. ...........................
  8043. The presence of a ';' on a line indicates the start of a comment that
  8044. extends to the end of the current line.
  8045. If a '#' appears as the first character of a line then the whole line
  8046. is treated as a comment, but in this case the line could also be a
  8047. logical line number directive (*note Comments::) or a preprocessor
  8048. control command (*note Preprocessing::).
  8049. The '`' character can be used to separate statements on the same
  8050. line.
  8051. 
  8052. File: as.info, Node: H8/300-Dependent, Next: HPPA-Dependent, Prev: Epiphany-Dependent, Up: Machine Dependencies
  8053. 9.13 H8/300 Dependent Features
  8054. ==============================
  8055. * Menu:
  8056. * H8/300 Options:: Options
  8057. * H8/300 Syntax:: Syntax
  8058. * H8/300 Floating Point:: Floating Point
  8059. * H8/300 Directives:: H8/300 Machine Directives
  8060. * H8/300 Opcodes:: Opcodes
  8061. 
  8062. File: as.info, Node: H8/300 Options, Next: H8/300 Syntax, Up: H8/300-Dependent
  8063. 9.13.1 Options
  8064. --------------
  8065. The Renesas H8/300 version of 'as' has one machine-dependent option:
  8066. '-h-tick-hex'
  8067. Support H'00 style hex constants in addition to 0x00 style.
  8068. '-mach=NAME'
  8069. Sets the H8300 machine variant. The following machine names are
  8070. recognised: 'h8300h', 'h8300hn', 'h8300s', 'h8300sn', 'h8300sx' and
  8071. 'h8300sxn'.
  8072. 
  8073. File: as.info, Node: H8/300 Syntax, Next: H8/300 Floating Point, Prev: H8/300 Options, Up: H8/300-Dependent
  8074. 9.13.2 Syntax
  8075. -------------
  8076. * Menu:
  8077. * H8/300-Chars:: Special Characters
  8078. * H8/300-Regs:: Register Names
  8079. * H8/300-Addressing:: Addressing Modes
  8080. 
  8081. File: as.info, Node: H8/300-Chars, Next: H8/300-Regs, Up: H8/300 Syntax
  8082. 9.13.2.1 Special Characters
  8083. ...........................
  8084. ';' is the line comment character.
  8085. '$' can be used instead of a newline to separate statements.
  8086. Therefore _you may not use '$' in symbol names_ on the H8/300.
  8087. 
  8088. File: as.info, Node: H8/300-Regs, Next: H8/300-Addressing, Prev: H8/300-Chars, Up: H8/300 Syntax
  8089. 9.13.2.2 Register Names
  8090. .......................
  8091. You can use predefined symbols of the form 'rNh' and 'rNl' to refer to
  8092. the H8/300 registers as sixteen 8-bit general-purpose registers. N is a
  8093. digit from '0' to '7'); for instance, both 'r0h' and 'r7l' are valid
  8094. register names.
  8095. You can also use the eight predefined symbols 'rN' to refer to the
  8096. H8/300 registers as 16-bit registers (you must use this form for
  8097. addressing).
  8098. On the H8/300H, you can also use the eight predefined symbols 'erN'
  8099. ('er0' ... 'er7') to refer to the 32-bit general purpose registers.
  8100. The two control registers are called 'pc' (program counter; a 16-bit
  8101. register, except on the H8/300H where it is 24 bits) and 'ccr'
  8102. (condition code register; an 8-bit register). 'r7' is used as the stack
  8103. pointer, and can also be called 'sp'.
  8104. 
  8105. File: as.info, Node: H8/300-Addressing, Prev: H8/300-Regs, Up: H8/300 Syntax
  8106. 9.13.2.3 Addressing Modes
  8107. .........................
  8108. as understands the following addressing modes for the H8/300:
  8109. 'rN'
  8110. Register direct
  8111. '@rN'
  8112. Register indirect
  8113. '@(D, rN)'
  8114. '@(D:16, rN)'
  8115. '@(D:24, rN)'
  8116. Register indirect: 16-bit or 24-bit displacement D from register N.
  8117. (24-bit displacements are only meaningful on the H8/300H.)
  8118. '@rN+'
  8119. Register indirect with post-increment
  8120. '@-rN'
  8121. Register indirect with pre-decrement
  8122. '@AA'
  8123. '@AA:8'
  8124. '@AA:16'
  8125. '@AA:24'
  8126. Absolute address 'aa'. (The address size ':24' only makes sense on
  8127. the H8/300H.)
  8128. '#XX'
  8129. '#XX:8'
  8130. '#XX:16'
  8131. '#XX:32'
  8132. Immediate data XX. You may specify the ':8', ':16', or ':32' for
  8133. clarity, if you wish; but 'as' neither requires this nor uses
  8134. it--the data size required is taken from context.
  8135. '@@AA'
  8136. '@@AA:8'
  8137. Memory indirect. You may specify the ':8' for clarity, if you
  8138. wish; but 'as' neither requires this nor uses it.
  8139. 
  8140. File: as.info, Node: H8/300 Floating Point, Next: H8/300 Directives, Prev: H8/300 Syntax, Up: H8/300-Dependent
  8141. 9.13.3 Floating Point
  8142. ---------------------
  8143. The H8/300 family has no hardware floating point, but the '.float'
  8144. directive generates IEEE floating-point numbers for compatibility with
  8145. other development tools.
  8146. 
  8147. File: as.info, Node: H8/300 Directives, Next: H8/300 Opcodes, Prev: H8/300 Floating Point, Up: H8/300-Dependent
  8148. 9.13.4 H8/300 Machine Directives
  8149. --------------------------------
  8150. 'as' has the following machine-dependent directives for the H8/300:
  8151. '.h8300h'
  8152. Recognize and emit additional instructions for the H8/300H variant,
  8153. and also make '.int' emit 32-bit numbers rather than the usual
  8154. (16-bit) for the H8/300 family.
  8155. '.h8300s'
  8156. Recognize and emit additional instructions for the H8S variant, and
  8157. also make '.int' emit 32-bit numbers rather than the usual (16-bit)
  8158. for the H8/300 family.
  8159. '.h8300hn'
  8160. Recognize and emit additional instructions for the H8/300H variant
  8161. in normal mode, and also make '.int' emit 32-bit numbers rather
  8162. than the usual (16-bit) for the H8/300 family.
  8163. '.h8300sn'
  8164. Recognize and emit additional instructions for the H8S variant in
  8165. normal mode, and also make '.int' emit 32-bit numbers rather than
  8166. the usual (16-bit) for the H8/300 family.
  8167. On the H8/300 family (including the H8/300H) '.word' directives
  8168. generate 16-bit numbers.
  8169. 
  8170. File: as.info, Node: H8/300 Opcodes, Prev: H8/300 Directives, Up: H8/300-Dependent
  8171. 9.13.5 Opcodes
  8172. --------------
  8173. For detailed information on the H8/300 machine instruction set, see
  8174. 'H8/300 Series Programming Manual'. For information specific to the
  8175. H8/300H, see 'H8/300H Series Programming Manual' (Renesas).
  8176. 'as' implements all the standard H8/300 opcodes. No additional
  8177. pseudo-instructions are needed on this family.
  8178. The following table summarizes the H8/300 opcodes, and their
  8179. arguments. Entries marked '*' are opcodes used only on the H8/300H.
  8180. Legend:
  8181. Rs source register
  8182. Rd destination register
  8183. abs absolute address
  8184. imm immediate data
  8185. disp:N N-bit displacement from a register
  8186. pcrel:N N-bit displacement relative to program counter
  8187. add.b #imm,rd * andc #imm,ccr
  8188. add.b rs,rd band #imm,rd
  8189. add.w rs,rd band #imm,@rd
  8190. * add.w #imm,rd band #imm,@abs:8
  8191. * add.l rs,rd bra pcrel:8
  8192. * add.l #imm,rd * bra pcrel:16
  8193. adds #imm,rd bt pcrel:8
  8194. addx #imm,rd * bt pcrel:16
  8195. addx rs,rd brn pcrel:8
  8196. and.b #imm,rd * brn pcrel:16
  8197. and.b rs,rd bf pcrel:8
  8198. * and.w rs,rd * bf pcrel:16
  8199. * and.w #imm,rd bhi pcrel:8
  8200. * and.l #imm,rd * bhi pcrel:16
  8201. * and.l rs,rd bls pcrel:8
  8202. * bls pcrel:16 bld #imm,rd
  8203. bcc pcrel:8 bld #imm,@rd
  8204. * bcc pcrel:16 bld #imm,@abs:8
  8205. bhs pcrel:8 bnot #imm,rd
  8206. * bhs pcrel:16 bnot #imm,@rd
  8207. bcs pcrel:8 bnot #imm,@abs:8
  8208. * bcs pcrel:16 bnot rs,rd
  8209. blo pcrel:8 bnot rs,@rd
  8210. * blo pcrel:16 bnot rs,@abs:8
  8211. bne pcrel:8 bor #imm,rd
  8212. * bne pcrel:16 bor #imm,@rd
  8213. beq pcrel:8 bor #imm,@abs:8
  8214. * beq pcrel:16 bset #imm,rd
  8215. bvc pcrel:8 bset #imm,@rd
  8216. * bvc pcrel:16 bset #imm,@abs:8
  8217. bvs pcrel:8 bset rs,rd
  8218. * bvs pcrel:16 bset rs,@rd
  8219. bpl pcrel:8 bset rs,@abs:8
  8220. * bpl pcrel:16 bsr pcrel:8
  8221. bmi pcrel:8 bsr pcrel:16
  8222. * bmi pcrel:16 bst #imm,rd
  8223. bge pcrel:8 bst #imm,@rd
  8224. * bge pcrel:16 bst #imm,@abs:8
  8225. blt pcrel:8 btst #imm,rd
  8226. * blt pcrel:16 btst #imm,@rd
  8227. bgt pcrel:8 btst #imm,@abs:8
  8228. * bgt pcrel:16 btst rs,rd
  8229. ble pcrel:8 btst rs,@rd
  8230. * ble pcrel:16 btst rs,@abs:8
  8231. bclr #imm,rd bxor #imm,rd
  8232. bclr #imm,@rd bxor #imm,@rd
  8233. bclr #imm,@abs:8 bxor #imm,@abs:8
  8234. bclr rs,rd cmp.b #imm,rd
  8235. bclr rs,@rd cmp.b rs,rd
  8236. bclr rs,@abs:8 cmp.w rs,rd
  8237. biand #imm,rd cmp.w rs,rd
  8238. biand #imm,@rd * cmp.w #imm,rd
  8239. biand #imm,@abs:8 * cmp.l #imm,rd
  8240. bild #imm,rd * cmp.l rs,rd
  8241. bild #imm,@rd daa rs
  8242. bild #imm,@abs:8 das rs
  8243. bior #imm,rd dec.b rs
  8244. bior #imm,@rd * dec.w #imm,rd
  8245. bior #imm,@abs:8 * dec.l #imm,rd
  8246. bist #imm,rd divxu.b rs,rd
  8247. bist #imm,@rd * divxu.w rs,rd
  8248. bist #imm,@abs:8 * divxs.b rs,rd
  8249. bixor #imm,rd * divxs.w rs,rd
  8250. bixor #imm,@rd eepmov
  8251. bixor #imm,@abs:8 * eepmovw
  8252. * exts.w rd mov.w rs,@abs:16
  8253. * exts.l rd * mov.l #imm,rd
  8254. * extu.w rd * mov.l rs,rd
  8255. * extu.l rd * mov.l @rs,rd
  8256. inc rs * mov.l @(disp:16,rs),rd
  8257. * inc.w #imm,rd * mov.l @(disp:24,rs),rd
  8258. * inc.l #imm,rd * mov.l @rs+,rd
  8259. jmp @rs * mov.l @abs:16,rd
  8260. jmp abs * mov.l @abs:24,rd
  8261. jmp @@abs:8 * mov.l rs,@rd
  8262. jsr @rs * mov.l rs,@(disp:16,rd)
  8263. jsr abs * mov.l rs,@(disp:24,rd)
  8264. jsr @@abs:8 * mov.l rs,@-rd
  8265. ldc #imm,ccr * mov.l rs,@abs:16
  8266. ldc rs,ccr * mov.l rs,@abs:24
  8267. * ldc @abs:16,ccr movfpe @abs:16,rd
  8268. * ldc @abs:24,ccr movtpe rs,@abs:16
  8269. * ldc @(disp:16,rs),ccr mulxu.b rs,rd
  8270. * ldc @(disp:24,rs),ccr * mulxu.w rs,rd
  8271. * ldc @rs+,ccr * mulxs.b rs,rd
  8272. * ldc @rs,ccr * mulxs.w rs,rd
  8273. * mov.b @(disp:24,rs),rd neg.b rs
  8274. * mov.b rs,@(disp:24,rd) * neg.w rs
  8275. mov.b @abs:16,rd * neg.l rs
  8276. mov.b rs,rd nop
  8277. mov.b @abs:8,rd not.b rs
  8278. mov.b rs,@abs:8 * not.w rs
  8279. mov.b rs,rd * not.l rs
  8280. mov.b #imm,rd or.b #imm,rd
  8281. mov.b @rs,rd or.b rs,rd
  8282. mov.b @(disp:16,rs),rd * or.w #imm,rd
  8283. mov.b @rs+,rd * or.w rs,rd
  8284. mov.b @abs:8,rd * or.l #imm,rd
  8285. mov.b rs,@rd * or.l rs,rd
  8286. mov.b rs,@(disp:16,rd) orc #imm,ccr
  8287. mov.b rs,@-rd pop.w rs
  8288. mov.b rs,@abs:8 * pop.l rs
  8289. mov.w rs,@rd push.w rs
  8290. * mov.w @(disp:24,rs),rd * push.l rs
  8291. * mov.w rs,@(disp:24,rd) rotl.b rs
  8292. * mov.w @abs:24,rd * rotl.w rs
  8293. * mov.w rs,@abs:24 * rotl.l rs
  8294. mov.w rs,rd rotr.b rs
  8295. mov.w #imm,rd * rotr.w rs
  8296. mov.w @rs,rd * rotr.l rs
  8297. mov.w @(disp:16,rs),rd rotxl.b rs
  8298. mov.w @rs+,rd * rotxl.w rs
  8299. mov.w @abs:16,rd * rotxl.l rs
  8300. mov.w rs,@(disp:16,rd) rotxr.b rs
  8301. mov.w rs,@-rd * rotxr.w rs
  8302. * rotxr.l rs * stc ccr,@(disp:24,rd)
  8303. bpt * stc ccr,@-rd
  8304. rte * stc ccr,@abs:16
  8305. rts * stc ccr,@abs:24
  8306. shal.b rs sub.b rs,rd
  8307. * shal.w rs sub.w rs,rd
  8308. * shal.l rs * sub.w #imm,rd
  8309. shar.b rs * sub.l rs,rd
  8310. * shar.w rs * sub.l #imm,rd
  8311. * shar.l rs subs #imm,rd
  8312. shll.b rs subx #imm,rd
  8313. * shll.w rs subx rs,rd
  8314. * shll.l rs * trapa #imm
  8315. shlr.b rs xor #imm,rd
  8316. * shlr.w rs xor rs,rd
  8317. * shlr.l rs * xor.w #imm,rd
  8318. sleep * xor.w rs,rd
  8319. stc ccr,rd * xor.l #imm,rd
  8320. * stc ccr,@rs * xor.l rs,rd
  8321. * stc ccr,@(disp:16,rd) xorc #imm,ccr
  8322. Four H8/300 instructions ('add', 'cmp', 'mov', 'sub') are defined
  8323. with variants using the suffixes '.b', '.w', and '.l' to specify the
  8324. size of a memory operand. 'as' supports these suffixes, but does not
  8325. require them; since one of the operands is always a register, 'as' can
  8326. deduce the correct size.
  8327. For example, since 'r0' refers to a 16-bit register,
  8328. mov r0,@foo
  8329. is equivalent to
  8330. mov.w r0,@foo
  8331. If you use the size suffixes, 'as' issues a warning when the suffix
  8332. and the register size do not match.
  8333. 
  8334. File: as.info, Node: HPPA-Dependent, Next: i386-Dependent, Prev: H8/300-Dependent, Up: Machine Dependencies
  8335. 9.14 HPPA Dependent Features
  8336. ============================
  8337. * Menu:
  8338. * HPPA Notes:: Notes
  8339. * HPPA Options:: Options
  8340. * HPPA Syntax:: Syntax
  8341. * HPPA Floating Point:: Floating Point
  8342. * HPPA Directives:: HPPA Machine Directives
  8343. * HPPA Opcodes:: Opcodes
  8344. 
  8345. File: as.info, Node: HPPA Notes, Next: HPPA Options, Up: HPPA-Dependent
  8346. 9.14.1 Notes
  8347. ------------
  8348. As a back end for GNU CC 'as' has been thoroughly tested and should work
  8349. extremely well. We have tested it only minimally on hand written
  8350. assembly code and no one has tested it much on the assembly output from
  8351. the HP compilers.
  8352. The format of the debugging sections has changed since the original
  8353. 'as' port (version 1.3X) was released; therefore, you must rebuild all
  8354. HPPA objects and libraries with the new assembler so that you can debug
  8355. the final executable.
  8356. The HPPA 'as' port generates a small subset of the relocations
  8357. available in the SOM and ELF object file formats. Additional relocation
  8358. support will be added as it becomes necessary.
  8359. 
  8360. File: as.info, Node: HPPA Options, Next: HPPA Syntax, Prev: HPPA Notes, Up: HPPA-Dependent
  8361. 9.14.2 Options
  8362. --------------
  8363. 'as' has no machine-dependent command-line options for the HPPA.
  8364. 
  8365. File: as.info, Node: HPPA Syntax, Next: HPPA Floating Point, Prev: HPPA Options, Up: HPPA-Dependent
  8366. 9.14.3 Syntax
  8367. -------------
  8368. The assembler syntax closely follows the HPPA instruction set reference
  8369. manual; assembler directives and general syntax closely follow the HPPA
  8370. assembly language reference manual, with a few noteworthy differences.
  8371. First, a colon may immediately follow a label definition. This is
  8372. simply for compatibility with how most assembly language programmers
  8373. write code.
  8374. Some obscure expression parsing problems may affect hand written code
  8375. which uses the 'spop' instructions, or code which makes significant use
  8376. of the '!' line separator.
  8377. 'as' is much less forgiving about missing arguments and other similar
  8378. oversights than the HP assembler. 'as' notifies you of missing
  8379. arguments as syntax errors; this is regarded as a feature, not a bug.
  8380. Finally, 'as' allows you to use an external symbol without explicitly
  8381. importing the symbol. _Warning:_ in the future this will be an error
  8382. for HPPA targets.
  8383. Special characters for HPPA targets include:
  8384. ';' is the line comment character.
  8385. '!' can be used instead of a newline to separate statements.
  8386. Since '$' has no special meaning, you may use it in symbol names.
  8387. 
  8388. File: as.info, Node: HPPA Floating Point, Next: HPPA Directives, Prev: HPPA Syntax, Up: HPPA-Dependent
  8389. 9.14.4 Floating Point
  8390. ---------------------
  8391. The HPPA family uses IEEE floating-point numbers.
  8392. 
  8393. File: as.info, Node: HPPA Directives, Next: HPPA Opcodes, Prev: HPPA Floating Point, Up: HPPA-Dependent
  8394. 9.14.5 HPPA Assembler Directives
  8395. --------------------------------
  8396. 'as' for the HPPA supports many additional directives for compatibility
  8397. with the native assembler. This section describes them only briefly.
  8398. For detailed information on HPPA-specific assembler directives, see
  8399. 'HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001).
  8400. 'as' does _not_ support the following assembler directives described
  8401. in the HP manual:
  8402. .endm .liston
  8403. .enter .locct
  8404. .leave .macro
  8405. .listoff
  8406. Beyond those implemented for compatibility, 'as' supports one
  8407. additional assembler directive for the HPPA: '.param'. It conveys
  8408. register argument locations for static functions. Its syntax closely
  8409. follows the '.export' directive.
  8410. These are the additional directives in 'as' for the HPPA:
  8411. '.block N'
  8412. '.blockz N'
  8413. Reserve N bytes of storage, and initialize them to zero.
  8414. '.call'
  8415. Mark the beginning of a procedure call. Only the special case with
  8416. _no arguments_ is allowed.
  8417. '.callinfo [ PARAM=VALUE, ... ] [ FLAG, ... ]'
  8418. Specify a number of parameters and flags that define the
  8419. environment for a procedure.
  8420. PARAM may be any of 'frame' (frame size), 'entry_gr' (end of
  8421. general register range), 'entry_fr' (end of float register range),
  8422. 'entry_sr' (end of space register range).
  8423. The values for FLAG are 'calls' or 'caller' (proc has subroutines),
  8424. 'no_calls' (proc does not call subroutines), 'save_rp' (preserve
  8425. return pointer), 'save_sp' (proc preserves stack pointer),
  8426. 'no_unwind' (do not unwind this proc), 'hpux_int' (proc is
  8427. interrupt routine).
  8428. '.code'
  8429. Assemble into the standard section called '$TEXT$', subsection
  8430. '$CODE$'.
  8431. '.copyright "STRING"'
  8432. In the SOM object format, insert STRING into the object code,
  8433. marked as a copyright string.
  8434. '.copyright "STRING"'
  8435. In the ELF object format, insert STRING into the object code,
  8436. marked as a version string.
  8437. '.enter'
  8438. Not yet supported; the assembler rejects programs containing this
  8439. directive.
  8440. '.entry'
  8441. Mark the beginning of a procedure.
  8442. '.exit'
  8443. Mark the end of a procedure.
  8444. '.export NAME [ ,TYP ] [ ,PARAM=R ]'
  8445. Make a procedure NAME available to callers. TYP, if present, must
  8446. be one of 'absolute', 'code' (ELF only, not SOM), 'data', 'entry',
  8447. 'data', 'entry', 'millicode', 'plabel', 'pri_prog', or 'sec_prog'.
  8448. PARAM, if present, provides either relocation information for the
  8449. procedure arguments and result, or a privilege level. PARAM may be
  8450. 'argwN' (where N ranges from '0' to '3', and indicates one of four
  8451. one-word arguments); 'rtnval' (the procedure's result); or
  8452. 'priv_lev' (privilege level). For arguments or the result, R
  8453. specifies how to relocate, and must be one of 'no' (not
  8454. relocatable), 'gr' (argument is in general register), 'fr' (in
  8455. floating point register), or 'fu' (upper half of float register).
  8456. For 'priv_lev', R is an integer.
  8457. '.half N'
  8458. Define a two-byte integer constant N; synonym for the portable 'as'
  8459. directive '.short'.
  8460. '.import NAME [ ,TYP ]'
  8461. Converse of '.export'; make a procedure available to call. The
  8462. arguments use the same conventions as the first two arguments for
  8463. '.export'.
  8464. '.label NAME'
  8465. Define NAME as a label for the current assembly location.
  8466. '.leave'
  8467. Not yet supported; the assembler rejects programs containing this
  8468. directive.
  8469. '.origin LC'
  8470. Advance location counter to LC. Synonym for the 'as' portable
  8471. directive '.org'.
  8472. '.param NAME [ ,TYP ] [ ,PARAM=R ]'
  8473. Similar to '.export', but used for static procedures.
  8474. '.proc'
  8475. Use preceding the first statement of a procedure.
  8476. '.procend'
  8477. Use following the last statement of a procedure.
  8478. 'LABEL .reg EXPR'
  8479. Synonym for '.equ'; define LABEL with the absolute expression EXPR
  8480. as its value.
  8481. '.space SECNAME [ ,PARAMS ]'
  8482. Switch to section SECNAME, creating a new section by that name if
  8483. necessary. You may only use PARAMS when creating a new section,
  8484. not when switching to an existing one. SECNAME may identify a
  8485. section by number rather than by name.
  8486. If specified, the list PARAMS declares attributes of the section,
  8487. identified by keywords. The keywords recognized are 'spnum=EXP'
  8488. (identify this section by the number EXP, an absolute expression),
  8489. 'sort=EXP' (order sections according to this sort key when linking;
  8490. EXP is an absolute expression), 'unloadable' (section contains no
  8491. loadable data), 'notdefined' (this section defined elsewhere), and
  8492. 'private' (data in this section not available to other programs).
  8493. '.spnum SECNAM'
  8494. Allocate four bytes of storage, and initialize them with the
  8495. section number of the section named SECNAM. (You can define the
  8496. section number with the HPPA '.space' directive.)
  8497. '.string "STR"'
  8498. Copy the characters in the string STR to the object file. *Note
  8499. Strings: Strings, for information on escape sequences you can use
  8500. in 'as' strings.
  8501. _Warning!_ The HPPA version of '.string' differs from the usual
  8502. 'as' definition: it does _not_ write a zero byte after copying STR.
  8503. '.stringz "STR"'
  8504. Like '.string', but appends a zero byte after copying STR to object
  8505. file.
  8506. '.subspa NAME [ ,PARAMS ]'
  8507. '.nsubspa NAME [ ,PARAMS ]'
  8508. Similar to '.space', but selects a subsection NAME within the
  8509. current section. You may only specify PARAMS when you create a
  8510. subsection (in the first instance of '.subspa' for this NAME).
  8511. If specified, the list PARAMS declares attributes of the
  8512. subsection, identified by keywords. The keywords recognized are
  8513. 'quad=EXPR' ("quadrant" for this subsection), 'align=EXPR'
  8514. (alignment for beginning of this subsection; a power of two),
  8515. 'access=EXPR' (value for "access rights" field), 'sort=EXPR'
  8516. (sorting order for this subspace in link), 'code_only' (subsection
  8517. contains only code), 'unloadable' (subsection cannot be loaded into
  8518. memory), 'comdat' (subsection is comdat), 'common' (subsection is
  8519. common block), 'dup_comm' (subsection may have duplicate names), or
  8520. 'zero' (subsection is all zeros, do not write in object file).
  8521. '.nsubspa' always creates a new subspace with the given name, even
  8522. if one with the same name already exists.
  8523. 'comdat', 'common' and 'dup_comm' can be used to implement various
  8524. flavors of one-only support when using the SOM linker. The SOM
  8525. linker only supports specific combinations of these flags. The
  8526. details are not documented. A brief description is provided here.
  8527. 'comdat' provides a form of linkonce support. It is useful for
  8528. both code and data subspaces. A 'comdat' subspace has a key symbol
  8529. marked by the 'is_comdat' flag or 'ST_COMDAT'. Only the first
  8530. subspace for any given key is selected. The key symbol becomes
  8531. universal in shared links. This is similar to the behavior of
  8532. 'secondary_def' symbols.
  8533. 'common' provides Fortran named common support. It is only useful
  8534. for data subspaces. Symbols with the flag 'is_common' retain this
  8535. flag in shared links. Referencing a 'is_common' symbol in a shared
  8536. library from outside the library doesn't work. Thus, 'is_common'
  8537. symbols must be output whenever they are needed.
  8538. 'common' and 'dup_comm' together provide Cobol common support. The
  8539. subspaces in this case must all be the same length. Otherwise,
  8540. this support is similar to the Fortran common support.
  8541. 'dup_comm' by itself provides a type of one-only support for code.
  8542. Only the first 'dup_comm' subspace is selected. There is a rather
  8543. complex algorithm to compare subspaces. Code symbols marked with
  8544. the 'dup_common' flag are hidden. This support was intended for
  8545. "C++ duplicate inlines".
  8546. A simplified technique is used to mark the flags of symbols based
  8547. on the flags of their subspace. A symbol with the scope
  8548. SS_UNIVERSAL and type ST_ENTRY, ST_CODE or ST_DATA is marked with
  8549. the corresponding settings of 'comdat', 'common' and 'dup_comm'
  8550. from the subspace, respectively. This avoids having to introduce
  8551. additional directives to mark these symbols. The HP assembler sets
  8552. 'is_common' from 'common'. However, it doesn't set the
  8553. 'dup_common' from 'dup_comm'. It doesn't have 'comdat' support.
  8554. '.version "STR"'
  8555. Write STR as version identifier in object code.
  8556. 
  8557. File: as.info, Node: HPPA Opcodes, Prev: HPPA Directives, Up: HPPA-Dependent
  8558. 9.14.6 Opcodes
  8559. --------------
  8560. For detailed information on the HPPA machine instruction set, see
  8561. 'PA-RISC Architecture and Instruction Set Reference Manual' (HP
  8562. 09740-90039).
  8563. 
  8564. File: as.info, Node: i386-Dependent, Next: IA-64-Dependent, Prev: HPPA-Dependent, Up: Machine Dependencies
  8565. 9.15 80386 Dependent Features
  8566. =============================
  8567. The i386 version 'as' supports both the original Intel 386 architecture
  8568. in both 16 and 32-bit mode as well as AMD x86-64 architecture extending
  8569. the Intel architecture to 64-bits.
  8570. * Menu:
  8571. * i386-Options:: Options
  8572. * i386-Directives:: X86 specific directives
  8573. * i386-Syntax:: Syntactical considerations
  8574. * i386-Mnemonics:: Instruction Naming
  8575. * i386-Regs:: Register Naming
  8576. * i386-Prefixes:: Instruction Prefixes
  8577. * i386-Memory:: Memory References
  8578. * i386-Jumps:: Handling of Jump Instructions
  8579. * i386-Float:: Floating Point
  8580. * i386-SIMD:: Intel's MMX and AMD's 3DNow! SIMD Operations
  8581. * i386-LWP:: AMD's Lightweight Profiling Instructions
  8582. * i386-BMI:: Bit Manipulation Instruction
  8583. * i386-TBM:: AMD's Trailing Bit Manipulation Instructions
  8584. * i386-16bit:: Writing 16-bit Code
  8585. * i386-Arch:: Specifying an x86 CPU architecture
  8586. * i386-Bugs:: AT&T Syntax bugs
  8587. * i386-Notes:: Notes
  8588. 
  8589. File: as.info, Node: i386-Options, Next: i386-Directives, Up: i386-Dependent
  8590. 9.15.1 Options
  8591. --------------
  8592. The i386 version of 'as' has a few machine dependent options:
  8593. '--32 | --x32 | --64'
  8594. Select the word size, either 32 bits or 64 bits. '--32' implies
  8595. Intel i386 architecture, while '--x32' and '--64' imply AMD x86-64
  8596. architecture with 32-bit or 64-bit word-size respectively.
  8597. These options are only available with the ELF object file format,
  8598. and require that the necessary BFD support has been included (on a
  8599. 32-bit platform you have to add -enable-64-bit-bfd to configure
  8600. enable 64-bit usage and use x86-64 as target platform).
  8601. '-n'
  8602. By default, x86 GAS replaces multiple nop instructions used for
  8603. alignment within code sections with multi-byte nop instructions
  8604. such as leal 0(%esi,1),%esi. This switch disables the optimization
  8605. if a single byte nop (0x90) is explicitly specified as the fill
  8606. byte for alignment.
  8607. '--divide'
  8608. On SVR4-derived platforms, the character '/' is treated as a
  8609. comment character, which means that it cannot be used in
  8610. expressions. The '--divide' option turns '/' into a normal
  8611. character. This does not disable '/' at the beginning of a line
  8612. starting a comment, or affect using '#' for starting a comment.
  8613. '-march=CPU[+EXTENSION...]'
  8614. This option specifies the target processor. The assembler will
  8615. issue an error message if an attempt is made to assemble an
  8616. instruction which will not execute on the target processor. The
  8617. following processor names are recognized: 'i8086', 'i186', 'i286',
  8618. 'i386', 'i486', 'i586', 'i686', 'pentium', 'pentiumpro',
  8619. 'pentiumii', 'pentiumiii', 'pentium4', 'prescott', 'nocona',
  8620. 'core', 'core2', 'corei7', 'l1om', 'k1om', 'iamcu', 'k6', 'k6_2',
  8621. 'athlon', 'opteron', 'k8', 'amdfam10', 'bdver1', 'bdver2',
  8622. 'bdver3', 'bdver4', 'znver1', 'znver2', 'btver1', 'btver2',
  8623. 'generic32' and 'generic64'.
  8624. In addition to the basic instruction set, the assembler can be told
  8625. to accept various extension mnemonics. For example,
  8626. '-march=i686+sse4+vmx' extends I686 with SSE4 and VMX. The
  8627. following extensions are currently supported: '8087', '287', '387',
  8628. '687', 'no87', 'no287', 'no387', 'no687', 'cmov', 'nocmov', 'fxsr',
  8629. 'nofxsr', 'mmx', 'nommx', 'sse', 'sse2', 'sse3', 'ssse3', 'sse4.1',
  8630. 'sse4.2', 'sse4', 'nosse', 'nosse2', 'nosse3', 'nossse3',
  8631. 'nosse4.1', 'nosse4.2', 'nosse4', 'avx', 'avx2', 'noavx', 'noavx2',
  8632. 'adx', 'rdseed', 'prfchw', 'smap', 'mpx', 'sha', 'rdpid',
  8633. 'ptwrite', 'cet', 'gfni', 'vaes', 'vpclmulqdq', 'prefetchwt1',
  8634. 'clflushopt', 'se1', 'clwb', 'movdiri', 'movdir64b', 'avx512f',
  8635. 'avx512cd', 'avx512er', 'avx512pf', 'avx512vl', 'avx512bw',
  8636. 'avx512dq', 'avx512ifma', 'avx512vbmi', 'avx512_4fmaps',
  8637. 'avx512_4vnniw', 'avx512_vpopcntdq', 'avx512_vbmi2', 'avx512_vnni',
  8638. 'avx512_bitalg', 'noavx512f', 'noavx512cd', 'noavx512er',
  8639. 'noavx512pf', 'noavx512vl', 'noavx512bw', 'noavx512dq',
  8640. 'noavx512ifma', 'noavx512vbmi', 'noavx512_4fmaps',
  8641. 'noavx512_4vnniw', 'noavx512_vpopcntdq', 'noavx512_vbmi2',
  8642. 'noavx512_vnni', 'noavx512_bitalg', 'vmx', 'vmfunc', 'smx',
  8643. 'xsave', 'xsaveopt', 'xsavec', 'xsaves', 'aes', 'pclmul',
  8644. 'fsgsbase', 'rdrnd', 'f16c', 'bmi2', 'fma', 'movbe', 'ept',
  8645. 'lzcnt', 'hle', 'rtm', 'invpcid', 'clflush', 'mwaitx', 'clzero',
  8646. 'wbnoinvd', 'pconfig', 'waitpkg', 'cldemote', 'lwp', 'fma4', 'xop',
  8647. 'cx16', 'syscall', 'rdtscp', '3dnow', '3dnowa', 'sse4a', 'sse5',
  8648. 'svme', 'abm' and 'padlock'. Note that rather than extending a
  8649. basic instruction set, the extension mnemonics starting with 'no'
  8650. revoke the respective functionality.
  8651. When the '.arch' directive is used with '-march', the '.arch'
  8652. directive will take precedent.
  8653. '-mtune=CPU'
  8654. This option specifies a processor to optimize for. When used in
  8655. conjunction with the '-march' option, only instructions of the
  8656. processor specified by the '-march' option will be generated.
  8657. Valid CPU values are identical to the processor list of
  8658. '-march=CPU'.
  8659. '-msse2avx'
  8660. This option specifies that the assembler should encode SSE
  8661. instructions with VEX prefix.
  8662. '-msse-check=NONE'
  8663. '-msse-check=WARNING'
  8664. '-msse-check=ERROR'
  8665. These options control if the assembler should check SSE
  8666. instructions. '-msse-check=NONE' will make the assembler not to
  8667. check SSE instructions, which is the default.
  8668. '-msse-check=WARNING' will make the assembler issue a warning for
  8669. any SSE instruction. '-msse-check=ERROR' will make the assembler
  8670. issue an error for any SSE instruction.
  8671. '-mavxscalar=128'
  8672. '-mavxscalar=256'
  8673. These options control how the assembler should encode scalar AVX
  8674. instructions. '-mavxscalar=128' will encode scalar AVX
  8675. instructions with 128bit vector length, which is the default.
  8676. '-mavxscalar=256' will encode scalar AVX instructions with 256bit
  8677. vector length.
  8678. '-mvexwig=0'
  8679. '-mvexwig=1'
  8680. These options control how the assembler should encode VEX.W-ignored
  8681. (WIG) VEX instructions. '-mvexwig=0' will encode WIG VEX
  8682. instructions with vex.w = 0, which is the default. '-mvexwig=1'
  8683. will encode WIG EVEX instructions with vex.w = 1.
  8684. '-mevexlig=128'
  8685. '-mevexlig=256'
  8686. '-mevexlig=512'
  8687. These options control how the assembler should encode
  8688. length-ignored (LIG) EVEX instructions. '-mevexlig=128' will
  8689. encode LIG EVEX instructions with 128bit vector length, which is
  8690. the default. '-mevexlig=256' and '-mevexlig=512' will encode LIG
  8691. EVEX instructions with 256bit and 512bit vector length,
  8692. respectively.
  8693. '-mevexwig=0'
  8694. '-mevexwig=1'
  8695. These options control how the assembler should encode w-ignored
  8696. (WIG) EVEX instructions. '-mevexwig=0' will encode WIG EVEX
  8697. instructions with evex.w = 0, which is the default. '-mevexwig=1'
  8698. will encode WIG EVEX instructions with evex.w = 1.
  8699. '-mmnemonic=ATT'
  8700. '-mmnemonic=INTEL'
  8701. This option specifies instruction mnemonic for matching
  8702. instructions. The '.att_mnemonic' and '.intel_mnemonic' directives
  8703. will take precedent.
  8704. '-msyntax=ATT'
  8705. '-msyntax=INTEL'
  8706. This option specifies instruction syntax when processing
  8707. instructions. The '.att_syntax' and '.intel_syntax' directives
  8708. will take precedent.
  8709. '-mnaked-reg'
  8710. This option specifies that registers don't require a '%' prefix.
  8711. The '.att_syntax' and '.intel_syntax' directives will take
  8712. precedent.
  8713. '-madd-bnd-prefix'
  8714. This option forces the assembler to add BND prefix to all branches,
  8715. even if such prefix was not explicitly specified in the source
  8716. code.
  8717. '-mno-shared'
  8718. On ELF target, the assembler normally optimizes out non-PLT
  8719. relocations against defined non-weak global branch targets with
  8720. default visibility. The '-mshared' option tells the assembler to
  8721. generate code which may go into a shared library where all non-weak
  8722. global branch targets with default visibility can be preempted.
  8723. The resulting code is slightly bigger. This option only affects
  8724. the handling of branch instructions.
  8725. '-mbig-obj'
  8726. On x86-64 PE/COFF target this option forces the use of big object
  8727. file format, which allows more than 32768 sections.
  8728. '-momit-lock-prefix=NO'
  8729. '-momit-lock-prefix=YES'
  8730. These options control how the assembler should encode lock prefix.
  8731. This option is intended as a workaround for processors, that fail
  8732. on lock prefix. This option can only be safely used with
  8733. single-core, single-thread computers '-momit-lock-prefix=YES' will
  8734. omit all lock prefixes. '-momit-lock-prefix=NO' will encode lock
  8735. prefix as usual, which is the default.
  8736. '-mfence-as-lock-add=NO'
  8737. '-mfence-as-lock-add=YES'
  8738. These options control how the assembler should encode lfence,
  8739. mfence and sfence. '-mfence-as-lock-add=YES' will encode lfence,
  8740. mfence and sfence as 'lock addl $0x0, (%rsp)' in 64-bit mode and
  8741. 'lock addl $0x0, (%esp)' in 32-bit mode. '-mfence-as-lock-add=NO'
  8742. will encode lfence, mfence and sfence as usual, which is the
  8743. default.
  8744. '-mrelax-relocations=NO'
  8745. '-mrelax-relocations=YES'
  8746. These options control whether the assembler should generate relax
  8747. relocations, R_386_GOT32X, in 32-bit mode, or R_X86_64_GOTPCRELX
  8748. and R_X86_64_REX_GOTPCRELX, in 64-bit mode.
  8749. '-mrelax-relocations=YES' will generate relax relocations.
  8750. '-mrelax-relocations=NO' will not generate relax relocations. The
  8751. default can be controlled by a configure option
  8752. '--enable-x86-relax-relocations'.
  8753. '-mx86-used-note=NO'
  8754. '-mx86-used-note=YES'
  8755. These options control whether the assembler should generate
  8756. GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_FEATURE_2_USED GNU
  8757. property notes. The default can be controlled by the
  8758. '--enable-x86-used-note' configure option.
  8759. '-mevexrcig=RNE'
  8760. '-mevexrcig=RD'
  8761. '-mevexrcig=RU'
  8762. '-mevexrcig=RZ'
  8763. These options control how the assembler should encode SAE-only EVEX
  8764. instructions. '-mevexrcig=RNE' will encode RC bits of EVEX
  8765. instruction with 00, which is the default. '-mevexrcig=RD',
  8766. '-mevexrcig=RU' and '-mevexrcig=RZ' will encode SAE-only EVEX
  8767. instructions with 01, 10 and 11 RC bits, respectively.
  8768. '-mamd64'
  8769. '-mintel64'
  8770. This option specifies that the assembler should accept only AMD64
  8771. or Intel64 ISA in 64-bit mode. The default is to accept both.
  8772. '-O0 | -O | -O1 | -O2 | -Os'
  8773. Optimize instruction encoding with smaller instruction size. '-O'
  8774. and '-O1' encode 64-bit register load instructions with 64-bit
  8775. immediate as 32-bit register load instructions with 31-bit or
  8776. 32-bits immediates and encode 64-bit register clearing instructions
  8777. with 32-bit register clearing instructions. '-O2' includes '-O1'
  8778. optimization plus encodes 256-bit and 512-bit vector register
  8779. clearing instructions with 128-bit vector register clearing
  8780. instructions. '-Os' includes '-O2' optimization plus encodes
  8781. 16-bit, 32-bit and 64-bit register tests with immediate as 8-bit
  8782. register test with immediate. '-O0' turns off this optimization.
  8783. 
  8784. File: as.info, Node: i386-Directives, Next: i386-Syntax, Prev: i386-Options, Up: i386-Dependent
  8785. 9.15.2 x86 specific Directives
  8786. ------------------------------
  8787. '.lcomm SYMBOL , LENGTH[, ALIGNMENT]'
  8788. Reserve LENGTH (an absolute expression) bytes for a local common
  8789. denoted by SYMBOL. The section and value of SYMBOL are those of
  8790. the new local common. The addresses are allocated in the bss
  8791. section, so that at run-time the bytes start off zeroed. Since
  8792. SYMBOL is not declared global, it is normally not visible to 'ld'.
  8793. The optional third parameter, ALIGNMENT, specifies the desired
  8794. alignment of the symbol in the bss section.
  8795. This directive is only available for COFF based x86 targets.
  8796. '.largecomm SYMBOL , LENGTH[, ALIGNMENT]'
  8797. This directive behaves in the same way as the 'comm' directive
  8798. except that the data is placed into the .LBSS section instead of
  8799. the .BSS section *note Comm::.
  8800. The directive is intended to be used for data which requires a
  8801. large amount of space, and it is only available for ELF based
  8802. x86_64 targets.
  8803. 
  8804. File: as.info, Node: i386-Syntax, Next: i386-Mnemonics, Prev: i386-Directives, Up: i386-Dependent
  8805. 9.15.3 i386 Syntactical Considerations
  8806. --------------------------------------
  8807. * Menu:
  8808. * i386-Variations:: AT&T Syntax versus Intel Syntax
  8809. * i386-Chars:: Special Characters
  8810. 
  8811. File: as.info, Node: i386-Variations, Next: i386-Chars, Up: i386-Syntax
  8812. 9.15.3.1 AT&T Syntax versus Intel Syntax
  8813. ........................................
  8814. 'as' now supports assembly using Intel assembler syntax.
  8815. '.intel_syntax' selects Intel mode, and '.att_syntax' switches back to
  8816. the usual AT&T mode for compatibility with the output of 'gcc'. Either
  8817. of these directives may have an optional argument, 'prefix', or
  8818. 'noprefix' specifying whether registers require a '%' prefix. AT&T
  8819. System V/386 assembler syntax is quite different from Intel syntax. We
  8820. mention these differences because almost all 80386 documents use Intel
  8821. syntax. Notable differences between the two syntaxes are:
  8822. * AT&T immediate operands are preceded by '$'; Intel immediate
  8823. operands are undelimited (Intel 'push 4' is AT&T 'pushl $4'). AT&T
  8824. register operands are preceded by '%'; Intel register operands are
  8825. undelimited. AT&T absolute (as opposed to PC relative) jump/call
  8826. operands are prefixed by '*'; they are undelimited in Intel syntax.
  8827. * AT&T and Intel syntax use the opposite order for source and
  8828. destination operands. Intel 'add eax, 4' is 'addl $4, %eax'. The
  8829. 'source, dest' convention is maintained for compatibility with
  8830. previous Unix assemblers. Note that 'bound', 'invlpga', and
  8831. instructions with 2 immediate operands, such as the 'enter'
  8832. instruction, do _not_ have reversed order. *note i386-Bugs::.
  8833. * In AT&T syntax the size of memory operands is determined from the
  8834. last character of the instruction mnemonic. Mnemonic suffixes of
  8835. 'b', 'w', 'l' and 'q' specify byte (8-bit), word (16-bit), long
  8836. (32-bit) and quadruple word (64-bit) memory references. Intel
  8837. syntax accomplishes this by prefixing memory operands (_not_ the
  8838. instruction mnemonics) with 'byte ptr', 'word ptr', 'dword ptr' and
  8839. 'qword ptr'. Thus, Intel 'mov al, byte ptr FOO' is 'movb FOO, %al'
  8840. in AT&T syntax.
  8841. In 64-bit code, 'movabs' can be used to encode the 'mov'
  8842. instruction with the 64-bit displacement or immediate operand.
  8843. * Immediate form long jumps and calls are 'lcall/ljmp $SECTION,
  8844. $OFFSET' in AT&T syntax; the Intel syntax is 'call/jmp far
  8845. SECTION:OFFSET'. Also, the far return instruction is 'lret
  8846. $STACK-ADJUST' in AT&T syntax; Intel syntax is 'ret far
  8847. STACK-ADJUST'.
  8848. * The AT&T assembler does not provide support for multiple section
  8849. programs. Unix style systems expect all programs to be single
  8850. sections.
  8851. 
  8852. File: as.info, Node: i386-Chars, Prev: i386-Variations, Up: i386-Syntax
  8853. 9.15.3.2 Special Characters
  8854. ...........................
  8855. The presence of a '#' appearing anywhere on a line indicates the start
  8856. of a comment that extends to the end of that line.
  8857. If a '#' appears as the first character of a line then the whole line
  8858. is treated as a comment, but in this case the line can also be a logical
  8859. line number directive (*note Comments::) or a preprocessor control
  8860. command (*note Preprocessing::).
  8861. If the '--divide' command-line option has not been specified then the
  8862. '/' character appearing anywhere on a line also introduces a line
  8863. comment.
  8864. The ';' character can be used to separate statements on the same
  8865. line.
  8866. 
  8867. File: as.info, Node: i386-Mnemonics, Next: i386-Regs, Prev: i386-Syntax, Up: i386-Dependent
  8868. 9.15.4 i386-Mnemonics
  8869. ---------------------
  8870. 9.15.4.1 Instruction Naming
  8871. ...........................
  8872. Instruction mnemonics are suffixed with one character modifiers which
  8873. specify the size of operands. The letters 'b', 'w', 'l' and 'q' specify
  8874. byte, word, long and quadruple word operands. If no suffix is specified
  8875. by an instruction then 'as' tries to fill in the missing suffix based on
  8876. the destination register operand (the last one by convention). Thus,
  8877. 'mov %ax, %bx' is equivalent to 'movw %ax, %bx'; also, 'mov $1, %bx' is
  8878. equivalent to 'movw $1, bx'. Note that this is incompatible with the
  8879. AT&T Unix assembler which assumes that a missing mnemonic suffix implies
  8880. long operand size. (This incompatibility does not affect compiler
  8881. output since compilers always explicitly specify the mnemonic suffix.)
  8882. Almost all instructions have the same names in AT&T and Intel format.
  8883. There are a few exceptions. The sign extend and zero extend
  8884. instructions need two sizes to specify them. They need a size to
  8885. sign/zero extend _from_ and a size to zero extend _to_. This is
  8886. accomplished by using two instruction mnemonic suffixes in AT&T syntax.
  8887. Base names for sign extend and zero extend are 'movs...' and 'movz...'
  8888. in AT&T syntax ('movsx' and 'movzx' in Intel syntax). The instruction
  8889. mnemonic suffixes are tacked on to this base name, the _from_ suffix
  8890. before the _to_ suffix. Thus, 'movsbl %al, %edx' is AT&T syntax for
  8891. "move sign extend _from_ %al _to_ %edx." Possible suffixes, thus, are
  8892. 'bl' (from byte to long), 'bw' (from byte to word), 'wl' (from word to
  8893. long), 'bq' (from byte to quadruple word), 'wq' (from word to quadruple
  8894. word), and 'lq' (from long to quadruple word).
  8895. Different encoding options can be specified via pseudo prefixes:
  8896. * '{disp8}' - prefer 8-bit displacement.
  8897. * '{disp32}' - prefer 32-bit displacement.
  8898. * '{load}' - prefer load-form instruction.
  8899. * '{store}' - prefer store-form instruction.
  8900. * '{vex2}' - prefer 2-byte VEX prefix for VEX instruction.
  8901. * '{vex3}' - prefer 3-byte VEX prefix for VEX instruction.
  8902. * '{evex}' - encode with EVEX prefix.
  8903. * '{rex}' - prefer REX prefix for integer and legacy vector
  8904. instructions (x86-64 only). Note that this differs from the 'rex'
  8905. prefix which generates REX prefix unconditionally.
  8906. * '{nooptimize}' - disable instruction size optimization.
  8907. The Intel-syntax conversion instructions
  8908. * 'cbw' -- sign-extend byte in '%al' to word in '%ax',
  8909. * 'cwde' -- sign-extend word in '%ax' to long in '%eax',
  8910. * 'cwd' -- sign-extend word in '%ax' to long in '%dx:%ax',
  8911. * 'cdq' -- sign-extend dword in '%eax' to quad in '%edx:%eax',
  8912. * 'cdqe' -- sign-extend dword in '%eax' to quad in '%rax' (x86-64
  8913. only),
  8914. * 'cqo' -- sign-extend quad in '%rax' to octuple in '%rdx:%rax'
  8915. (x86-64 only),
  8916. are called 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', and 'cqto' in AT&T
  8917. naming. 'as' accepts either naming for these instructions.
  8918. Far call/jump instructions are 'lcall' and 'ljmp' in AT&T syntax, but
  8919. are 'call far' and 'jump far' in Intel convention.
  8920. 9.15.4.2 AT&T Mnemonic versus Intel Mnemonic
  8921. ............................................
  8922. 'as' supports assembly using Intel mnemonic. '.intel_mnemonic' selects
  8923. Intel mnemonic with Intel syntax, and '.att_mnemonic' switches back to
  8924. the usual AT&T mnemonic with AT&T syntax for compatibility with the
  8925. output of 'gcc'. Several x87 instructions, 'fadd', 'fdiv', 'fdivp',
  8926. 'fdivr', 'fdivrp', 'fmul', 'fsub', 'fsubp', 'fsubr' and 'fsubrp', are
  8927. implemented in AT&T System V/386 assembler with different mnemonics from
  8928. those in Intel IA32 specification. 'gcc' generates those instructions
  8929. with AT&T mnemonic.
  8930. 
  8931. File: as.info, Node: i386-Regs, Next: i386-Prefixes, Prev: i386-Mnemonics, Up: i386-Dependent
  8932. 9.15.5 Register Naming
  8933. ----------------------
  8934. Register operands are always prefixed with '%'. The 80386 registers
  8935. consist of
  8936. * the 8 32-bit registers '%eax' (the accumulator), '%ebx', '%ecx',
  8937. '%edx', '%edi', '%esi', '%ebp' (the frame pointer), and '%esp' (the
  8938. stack pointer).
  8939. * the 8 16-bit low-ends of these: '%ax', '%bx', '%cx', '%dx', '%di',
  8940. '%si', '%bp', and '%sp'.
  8941. * the 8 8-bit registers: '%ah', '%al', '%bh', '%bl', '%ch', '%cl',
  8942. '%dh', and '%dl' (These are the high-bytes and low-bytes of '%ax',
  8943. '%bx', '%cx', and '%dx')
  8944. * the 6 section registers '%cs' (code section), '%ds' (data section),
  8945. '%ss' (stack section), '%es', '%fs', and '%gs'.
  8946. * the 5 processor control registers '%cr0', '%cr2', '%cr3', '%cr4',
  8947. and '%cr8'.
  8948. * the 6 debug registers '%db0', '%db1', '%db2', '%db3', '%db6', and
  8949. '%db7'.
  8950. * the 2 test registers '%tr6' and '%tr7'.
  8951. * the 8 floating point register stack '%st' or equivalently '%st(0)',
  8952. '%st(1)', '%st(2)', '%st(3)', '%st(4)', '%st(5)', '%st(6)', and
  8953. '%st(7)'. These registers are overloaded by 8 MMX registers
  8954. '%mm0', '%mm1', '%mm2', '%mm3', '%mm4', '%mm5', '%mm6' and '%mm7'.
  8955. * the 8 128-bit SSE registers registers '%xmm0', '%xmm1', '%xmm2',
  8956. '%xmm3', '%xmm4', '%xmm5', '%xmm6' and '%xmm7'.
  8957. The AMD x86-64 architecture extends the register set by:
  8958. * enhancing the 8 32-bit registers to 64-bit: '%rax' (the
  8959. accumulator), '%rbx', '%rcx', '%rdx', '%rdi', '%rsi', '%rbp' (the
  8960. frame pointer), '%rsp' (the stack pointer)
  8961. * the 8 extended registers '%r8'-'%r15'.
  8962. * the 8 32-bit low ends of the extended registers: '%r8d'-'%r15d'.
  8963. * the 8 16-bit low ends of the extended registers: '%r8w'-'%r15w'.
  8964. * the 8 8-bit low ends of the extended registers: '%r8b'-'%r15b'.
  8965. * the 4 8-bit registers: '%sil', '%dil', '%bpl', '%spl'.
  8966. * the 8 debug registers: '%db8'-'%db15'.
  8967. * the 8 128-bit SSE registers: '%xmm8'-'%xmm15'.
  8968. With the AVX extensions more registers were made available:
  8969. * the 16 256-bit SSE '%ymm0'-'%ymm15' (only the first 8 available in
  8970. 32-bit mode). The bottom 128 bits are overlaid with the
  8971. 'xmm0'-'xmm15' registers.
  8972. The AVX2 extensions made in 64-bit mode more registers available:
  8973. * the 16 128-bit registers '%xmm16'-'%xmm31' and the 16 256-bit
  8974. registers '%ymm16'-'%ymm31'.
  8975. The AVX512 extensions added the following registers:
  8976. * the 32 512-bit registers '%zmm0'-'%zmm31' (only the first 8
  8977. available in 32-bit mode). The bottom 128 bits are overlaid with
  8978. the '%xmm0'-'%xmm31' registers and the first 256 bits are overlaid
  8979. with the '%ymm0'-'%ymm31' registers.
  8980. * the 8 mask registers '%k0'-'%k7'.
  8981. 
  8982. File: as.info, Node: i386-Prefixes, Next: i386-Memory, Prev: i386-Regs, Up: i386-Dependent
  8983. 9.15.6 Instruction Prefixes
  8984. ---------------------------
  8985. Instruction prefixes are used to modify the following instruction. They
  8986. are used to repeat string instructions, to provide section overrides, to
  8987. perform bus lock operations, and to change operand and address sizes.
  8988. (Most instructions that normally operate on 32-bit operands will use
  8989. 16-bit operands if the instruction has an "operand size" prefix.)
  8990. Instruction prefixes are best written on the same line as the
  8991. instruction they act upon. For example, the 'scas' (scan string)
  8992. instruction is repeated with:
  8993. repne scas %es:(%edi),%al
  8994. You may also place prefixes on the lines immediately preceding the
  8995. instruction, but this circumvents checks that 'as' does with prefixes,
  8996. and will not work with all prefixes.
  8997. Here is a list of instruction prefixes:
  8998. * Section override prefixes 'cs', 'ds', 'ss', 'es', 'fs', 'gs'.
  8999. These are automatically added by specifying using the
  9000. SECTION:MEMORY-OPERAND form for memory references.
  9001. * Operand/Address size prefixes 'data16' and 'addr16' change 32-bit
  9002. operands/addresses into 16-bit operands/addresses, while 'data32'
  9003. and 'addr32' change 16-bit ones (in a '.code16' section) into
  9004. 32-bit operands/addresses. These prefixes _must_ appear on the
  9005. same line of code as the instruction they modify. For example, in
  9006. a 16-bit '.code16' section, you might write:
  9007. addr32 jmpl *(%ebx)
  9008. * The bus lock prefix 'lock' inhibits interrupts during execution of
  9009. the instruction it precedes. (This is only valid with certain
  9010. instructions; see a 80386 manual for details).
  9011. * The wait for coprocessor prefix 'wait' waits for the coprocessor to
  9012. complete the current instruction. This should never be needed for
  9013. the 80386/80387 combination.
  9014. * The 'rep', 'repe', and 'repne' prefixes are added to string
  9015. instructions to make them repeat '%ecx' times ('%cx' times if the
  9016. current address size is 16-bits).
  9017. * The 'rex' family of prefixes is used by x86-64 to encode extensions
  9018. to i386 instruction set. The 'rex' prefix has four bits -- an
  9019. operand size overwrite ('64') used to change operand size from
  9020. 32-bit to 64-bit and X, Y and Z extensions bits used to extend the
  9021. register set.
  9022. You may write the 'rex' prefixes directly. The 'rex64xyz'
  9023. instruction emits 'rex' prefix with all the bits set. By omitting
  9024. the '64', 'x', 'y' or 'z' you may write other prefixes as well.
  9025. Normally, there is no need to write the prefixes explicitly, since
  9026. gas will automatically generate them based on the instruction
  9027. operands.
  9028. 
  9029. File: as.info, Node: i386-Memory, Next: i386-Jumps, Prev: i386-Prefixes, Up: i386-Dependent
  9030. 9.15.7 Memory References
  9031. ------------------------
  9032. An Intel syntax indirect memory reference of the form
  9033. SECTION:[BASE + INDEX*SCALE + DISP]
  9034. is translated into the AT&T syntax
  9035. SECTION:DISP(BASE, INDEX, SCALE)
  9036. where BASE and INDEX are the optional 32-bit base and index registers,
  9037. DISP is the optional displacement, and SCALE, taking the values 1, 2, 4,
  9038. and 8, multiplies INDEX to calculate the address of the operand. If no
  9039. SCALE is specified, SCALE is taken to be 1. SECTION specifies the
  9040. optional section register for the memory operand, and may override the
  9041. default section register (see a 80386 manual for section register
  9042. defaults). Note that section overrides in AT&T syntax _must_ be
  9043. preceded by a '%'. If you specify a section override which coincides
  9044. with the default section register, 'as' does _not_ output any section
  9045. register override prefixes to assemble the given instruction. Thus,
  9046. section overrides can be specified to emphasize which section register
  9047. is used for a given memory operand.
  9048. Here are some examples of Intel and AT&T style memory references:
  9049. AT&T: '-4(%ebp)', Intel: '[ebp - 4]'
  9050. BASE is '%ebp'; DISP is '-4'. SECTION is missing, and the default
  9051. section is used ('%ss' for addressing with '%ebp' as the base
  9052. register). INDEX, SCALE are both missing.
  9053. AT&T: 'foo(,%eax,4)', Intel: '[foo + eax*4]'
  9054. INDEX is '%eax' (scaled by a SCALE 4); DISP is 'foo'. All other
  9055. fields are missing. The section register here defaults to '%ds'.
  9056. AT&T: 'foo(,1)'; Intel '[foo]'
  9057. This uses the value pointed to by 'foo' as a memory operand. Note
  9058. that BASE and INDEX are both missing, but there is only _one_ ','.
  9059. This is a syntactic exception.
  9060. AT&T: '%gs:foo'; Intel 'gs:foo'
  9061. This selects the contents of the variable 'foo' with section
  9062. register SECTION being '%gs'.
  9063. Absolute (as opposed to PC relative) call and jump operands must be
  9064. prefixed with '*'. If no '*' is specified, 'as' always chooses PC
  9065. relative addressing for jump/call labels.
  9066. Any instruction that has a memory operand, but no register operand,
  9067. _must_ specify its size (byte, word, long, or quadruple) with an
  9068. instruction mnemonic suffix ('b', 'w', 'l' or 'q', respectively).
  9069. The x86-64 architecture adds an RIP (instruction pointer relative)
  9070. addressing. This addressing mode is specified by using 'rip' as a base
  9071. register. Only constant offsets are valid. For example:
  9072. AT&T: '1234(%rip)', Intel: '[rip + 1234]'
  9073. Points to the address 1234 bytes past the end of the current
  9074. instruction.
  9075. AT&T: 'symbol(%rip)', Intel: '[rip + symbol]'
  9076. Points to the 'symbol' in RIP relative way, this is shorter than
  9077. the default absolute addressing.
  9078. Other addressing modes remain unchanged in x86-64 architecture,
  9079. except registers used are 64-bit instead of 32-bit.
  9080. 
  9081. File: as.info, Node: i386-Jumps, Next: i386-Float, Prev: i386-Memory, Up: i386-Dependent
  9082. 9.15.8 Handling of Jump Instructions
  9083. ------------------------------------
  9084. Jump instructions are always optimized to use the smallest possible
  9085. displacements. This is accomplished by using byte (8-bit) displacement
  9086. jumps whenever the target is sufficiently close. If a byte displacement
  9087. is insufficient a long displacement is used. We do not support word
  9088. (16-bit) displacement jumps in 32-bit mode (i.e. prefixing the jump
  9089. instruction with the 'data16' instruction prefix), since the 80386
  9090. insists upon masking '%eip' to 16 bits after the word displacement is
  9091. added. (See also *note i386-Arch::)
  9092. Note that the 'jcxz', 'jecxz', 'loop', 'loopz', 'loope', 'loopnz' and
  9093. 'loopne' instructions only come in byte displacements, so that if you
  9094. use these instructions ('gcc' does not use them) you may get an error
  9095. message (and incorrect code). The AT&T 80386 assembler tries to get
  9096. around this problem by expanding 'jcxz foo' to
  9097. jcxz cx_zero
  9098. jmp cx_nonzero
  9099. cx_zero: jmp foo
  9100. cx_nonzero:
  9101. 
  9102. File: as.info, Node: i386-Float, Next: i386-SIMD, Prev: i386-Jumps, Up: i386-Dependent
  9103. 9.15.9 Floating Point
  9104. ---------------------
  9105. All 80387 floating point types except packed BCD are supported. (BCD
  9106. support may be added without much difficulty). These data types are
  9107. 16-, 32-, and 64- bit integers, and single (32-bit), double (64-bit),
  9108. and extended (80-bit) precision floating point. Each supported type has
  9109. an instruction mnemonic suffix and a constructor associated with it.
  9110. Instruction mnemonic suffixes specify the operand's data type.
  9111. Constructors build these data types into memory.
  9112. * Floating point constructors are '.float' or '.single', '.double',
  9113. and '.tfloat' for 32-, 64-, and 80-bit formats. These correspond
  9114. to instruction mnemonic suffixes 's', 'l', and 't'. 't' stands for
  9115. 80-bit (ten byte) real. The 80387 only supports this format via
  9116. the 'fldt' (load 80-bit real to stack top) and 'fstpt' (store
  9117. 80-bit real and pop stack) instructions.
  9118. * Integer constructors are '.word', '.long' or '.int', and '.quad'
  9119. for the 16-, 32-, and 64-bit integer formats. The corresponding
  9120. instruction mnemonic suffixes are 's' (single), 'l' (long), and 'q'
  9121. (quad). As with the 80-bit real format, the 64-bit 'q' format is
  9122. only present in the 'fildq' (load quad integer to stack top) and
  9123. 'fistpq' (store quad integer and pop stack) instructions.
  9124. Register to register operations should not use instruction mnemonic
  9125. suffixes. 'fstl %st, %st(1)' will give a warning, and be assembled as
  9126. if you wrote 'fst %st, %st(1)', since all register to register
  9127. operations use 80-bit floating point operands. (Contrast this with
  9128. 'fstl %st, mem', which converts '%st' from 80-bit to 64-bit floating
  9129. point format, then stores the result in the 4 byte location 'mem')
  9130. 
  9131. File: as.info, Node: i386-SIMD, Next: i386-LWP, Prev: i386-Float, Up: i386-Dependent
  9132. 9.15.10 Intel's MMX and AMD's 3DNow! SIMD Operations
  9133. ----------------------------------------------------
  9134. 'as' supports Intel's MMX instruction set (SIMD instructions for integer
  9135. data), available on Intel's Pentium MMX processors and Pentium II
  9136. processors, AMD's K6 and K6-2 processors, Cyrix' M2 processor, and
  9137. probably others. It also supports AMD's 3DNow! instruction set (SIMD
  9138. instructions for 32-bit floating point data) available on AMD's K6-2
  9139. processor and possibly others in the future.
  9140. Currently, 'as' does not support Intel's floating point SIMD, Katmai
  9141. (KNI).
  9142. The eight 64-bit MMX operands, also used by 3DNow!, are called
  9143. '%mm0', '%mm1', ... '%mm7'. They contain eight 8-bit integers, four
  9144. 16-bit integers, two 32-bit integers, one 64-bit integer, or two 32-bit
  9145. floating point values. The MMX registers cannot be used at the same
  9146. time as the floating point stack.
  9147. See Intel and AMD documentation, keeping in mind that the operand
  9148. order in instructions is reversed from the Intel syntax.
  9149. 
  9150. File: as.info, Node: i386-LWP, Next: i386-BMI, Prev: i386-SIMD, Up: i386-Dependent
  9151. 9.15.11 AMD's Lightweight Profiling Instructions
  9152. ------------------------------------------------
  9153. 'as' supports AMD's Lightweight Profiling (LWP) instruction set,
  9154. available on AMD's Family 15h (Orochi) processors.
  9155. LWP enables applications to collect and manage performance data, and
  9156. react to performance events. The collection of performance data
  9157. requires no context switches. LWP runs in the context of a thread and
  9158. so several counters can be used independently across multiple threads.
  9159. LWP can be used in both 64-bit and legacy 32-bit modes.
  9160. For detailed information on the LWP instruction set, see the 'AMD
  9161. Lightweight Profiling Specification' available at Lightweight Profiling
  9162. Specification (http://developer.amd.com/cpu/LWP).
  9163. 
  9164. File: as.info, Node: i386-BMI, Next: i386-TBM, Prev: i386-LWP, Up: i386-Dependent
  9165. 9.15.12 Bit Manipulation Instructions
  9166. -------------------------------------
  9167. 'as' supports the Bit Manipulation (BMI) instruction set.
  9168. BMI instructions provide several instructions implementing individual
  9169. bit manipulation operations such as isolation, masking, setting, or
  9170. resetting.
  9171. 
  9172. File: as.info, Node: i386-TBM, Next: i386-16bit, Prev: i386-BMI, Up: i386-Dependent
  9173. 9.15.13 AMD's Trailing Bit Manipulation Instructions
  9174. ----------------------------------------------------
  9175. 'as' supports AMD's Trailing Bit Manipulation (TBM) instruction set,
  9176. available on AMD's BDVER2 processors (Trinity and Viperfish).
  9177. TBM instructions provide instructions implementing individual bit
  9178. manipulation operations such as isolating, masking, setting, resetting,
  9179. complementing, and operations on trailing zeros and ones.
  9180. 
  9181. File: as.info, Node: i386-16bit, Next: i386-Arch, Prev: i386-TBM, Up: i386-Dependent
  9182. 9.15.14 Writing 16-bit Code
  9183. ---------------------------
  9184. While 'as' normally writes only "pure" 32-bit i386 code or 64-bit x86-64
  9185. code depending on the default configuration, it also supports writing
  9186. code to run in real mode or in 16-bit protected mode code segments. To
  9187. do this, put a '.code16' or '.code16gcc' directive before the assembly
  9188. language instructions to be run in 16-bit mode. You can switch 'as' to
  9189. writing 32-bit code with the '.code32' directive or 64-bit code with the
  9190. '.code64' directive.
  9191. '.code16gcc' provides experimental support for generating 16-bit code
  9192. from gcc, and differs from '.code16' in that 'call', 'ret', 'enter',
  9193. 'leave', 'push', 'pop', 'pusha', 'popa', 'pushf', and 'popf'
  9194. instructions default to 32-bit size. This is so that the stack pointer
  9195. is manipulated in the same way over function calls, allowing access to
  9196. function parameters at the same stack offsets as in 32-bit mode.
  9197. '.code16gcc' also automatically adds address size prefixes where
  9198. necessary to use the 32-bit addressing modes that gcc generates.
  9199. The code which 'as' generates in 16-bit mode will not necessarily run
  9200. on a 16-bit pre-80386 processor. To write code that runs on such a
  9201. processor, you must refrain from using _any_ 32-bit constructs which
  9202. require 'as' to output address or operand size prefixes.
  9203. Note that writing 16-bit code instructions by explicitly specifying a
  9204. prefix or an instruction mnemonic suffix within a 32-bit code section
  9205. generates different machine instructions than those generated for a
  9206. 16-bit code segment. In a 32-bit code section, the following code
  9207. generates the machine opcode bytes '66 6a 04', which pushes the value
  9208. '4' onto the stack, decrementing '%esp' by 2.
  9209. pushw $4
  9210. The same code in a 16-bit code section would generate the machine
  9211. opcode bytes '6a 04' (i.e., without the operand size prefix), which is
  9212. correct since the processor default operand size is assumed to be 16
  9213. bits in a 16-bit code section.
  9214. 
  9215. File: as.info, Node: i386-Arch, Next: i386-Bugs, Prev: i386-16bit, Up: i386-Dependent
  9216. 9.15.15 Specifying CPU Architecture
  9217. -----------------------------------
  9218. 'as' may be told to assemble for a particular CPU (sub-)architecture
  9219. with the '.arch CPU_TYPE' directive. This directive enables a warning
  9220. when gas detects an instruction that is not supported on the CPU
  9221. specified. The choices for CPU_TYPE are:
  9222. 'i8086' 'i186' 'i286' 'i386'
  9223. 'i486' 'i586' 'i686' 'pentium'
  9224. 'pentiumpro' 'pentiumii' 'pentiumiii' 'pentium4'
  9225. 'prescott' 'nocona' 'core' 'core2'
  9226. 'corei7' 'l1om' 'k1om' 'iamcu'
  9227. 'k6' 'k6_2' 'athlon' 'k8'
  9228. 'amdfam10' 'bdver1' 'bdver2' 'bdver3'
  9229. 'bdver4' 'znver1' 'znver2' 'btver1'
  9230. 'btver2' 'generic32' 'generic64'
  9231. '.cmov' '.fxsr' '.mmx'
  9232. '.sse' '.sse2' '.sse3'
  9233. '.ssse3' '.sse4.1' '.sse4.2' '.sse4'
  9234. '.avx' '.vmx' '.smx' '.ept'
  9235. '.clflush' '.movbe' '.xsave' '.xsaveopt'
  9236. '.aes' '.pclmul' '.fma' '.fsgsbase'
  9237. '.rdrnd' '.f16c' '.avx2' '.bmi2'
  9238. '.lzcnt' '.invpcid' '.vmfunc' '.hle'
  9239. '.rtm' '.adx' '.rdseed' '.prfchw'
  9240. '.smap' '.mpx' '.sha' '.prefetchwt1'
  9241. '.clflushopt' '.xsavec' '.xsaves' '.se1'
  9242. '.avx512f' '.avx512cd' '.avx512er' '.avx512pf'
  9243. '.avx512vl' '.avx512bw' '.avx512dq' '.avx512ifma'
  9244. '.avx512vbmi' '.avx512_4fmaps''.avx512_4vnniw'
  9245. '.avx512_vpopcntdq''.avx512_vbmi2''.avx512_vnni'
  9246. '.avx512_bitalg'
  9247. '.clwb' '.rdpid' '.ptwrite'
  9248. '.ibt'
  9249. '.wbnoinvd' '.pconfig' '.waitpkg' '.cldemote'
  9250. '.shstk' '.gfni' '.vaes' '.vpclmulqdq'
  9251. '.movdiri' '.movdir64b'
  9252. '.3dnow' '.3dnowa' '.sse4a' '.sse5'
  9253. '.syscall' '.rdtscp' '.svme' '.abm'
  9254. '.lwp' '.fma4' '.xop' '.cx16'
  9255. '.padlock' '.clzero' '.mwaitx'
  9256. Apart from the warning, there are only two other effects on 'as'
  9257. operation; Firstly, if you specify a CPU other than 'i486', then shift
  9258. by one instructions such as 'sarl $1, %eax' will automatically use a two
  9259. byte opcode sequence. The larger three byte opcode sequence is used on
  9260. the 486 (and when no architecture is specified) because it executes
  9261. faster on the 486. Note that you can explicitly request the two byte
  9262. opcode by writing 'sarl %eax'. Secondly, if you specify 'i8086',
  9263. 'i186', or 'i286', _and_ '.code16' or '.code16gcc' then byte offset
  9264. conditional jumps will be promoted when necessary to a two instruction
  9265. sequence consisting of a conditional jump of the opposite sense around
  9266. an unconditional jump to the target.
  9267. Following the CPU architecture (but not a sub-architecture, which are
  9268. those starting with a dot), you may specify 'jumps' or 'nojumps' to
  9269. control automatic promotion of conditional jumps. 'jumps' is the
  9270. default, and enables jump promotion; All external jumps will be of the
  9271. long variety, and file-local jumps will be promoted as necessary.
  9272. (*note i386-Jumps::) 'nojumps' leaves external conditional jumps as byte
  9273. offset jumps, and warns about file-local conditional jumps that 'as'
  9274. promotes. Unconditional jumps are treated as for 'jumps'.
  9275. For example
  9276. .arch i8086,nojumps
  9277. 
  9278. File: as.info, Node: i386-Bugs, Next: i386-Notes, Prev: i386-Arch, Up: i386-Dependent
  9279. 9.15.16 AT&T Syntax bugs
  9280. ------------------------
  9281. The UnixWare assembler, and probably other AT&T derived ix86 Unix
  9282. assemblers, generate floating point instructions with reversed source
  9283. and destination registers in certain cases. Unfortunately, gcc and
  9284. possibly many other programs use this reversed syntax, so we're stuck
  9285. with it.
  9286. For example
  9287. fsub %st,%st(3)
  9288. results in '%st(3)' being updated to '%st - %st(3)' rather than the
  9289. expected '%st(3) - %st'. This happens with all the non-commutative
  9290. arithmetic floating point operations with two register operands where
  9291. the source register is '%st' and the destination register is '%st(i)'.
  9292. 
  9293. File: as.info, Node: i386-Notes, Prev: i386-Bugs, Up: i386-Dependent
  9294. 9.15.17 Notes
  9295. -------------
  9296. There is some trickery concerning the 'mul' and 'imul' instructions that
  9297. deserves mention. The 16-, 32-, 64- and 128-bit expanding multiplies
  9298. (base opcode '0xf6'; extension 4 for 'mul' and 5 for 'imul') can be
  9299. output only in the one operand form. Thus, 'imul %ebx, %eax' does _not_
  9300. select the expanding multiply; the expanding multiply would clobber the
  9301. '%edx' register, and this would confuse 'gcc' output. Use 'imul %ebx'
  9302. to get the 64-bit product in '%edx:%eax'.
  9303. We have added a two operand form of 'imul' when the first operand is
  9304. an immediate mode expression and the second operand is a register. This
  9305. is just a shorthand, so that, multiplying '%eax' by 69, for example, can
  9306. be done with 'imul $69, %eax' rather than 'imul $69, %eax, %eax'.
  9307. 
  9308. File: as.info, Node: IA-64-Dependent, Next: IP2K-Dependent, Prev: i386-Dependent, Up: Machine Dependencies
  9309. 9.16 IA-64 Dependent Features
  9310. =============================
  9311. * Menu:
  9312. * IA-64 Options:: Options
  9313. * IA-64 Syntax:: Syntax
  9314. * IA-64 Opcodes:: Opcodes
  9315. 
  9316. File: as.info, Node: IA-64 Options, Next: IA-64 Syntax, Up: IA-64-Dependent
  9317. 9.16.1 Options
  9318. --------------
  9319. '-mconstant-gp'
  9320. This option instructs the assembler to mark the resulting object
  9321. file as using the "constant GP" model. With this model, it is
  9322. assumed that the entire program uses a single global pointer (GP)
  9323. value. Note that this option does not in any fashion affect the
  9324. machine code emitted by the assembler. All it does is turn on the
  9325. EF_IA_64_CONS_GP flag in the ELF file header.
  9326. '-mauto-pic'
  9327. This option instructs the assembler to mark the resulting object
  9328. file as using the "constant GP without function descriptor" data
  9329. model. This model is like the "constant GP" model, except that it
  9330. additionally does away with function descriptors. What this means
  9331. is that the address of a function refers directly to the function's
  9332. code entry-point. Normally, such an address would refer to a
  9333. function descriptor, which contains both the code entry-point and
  9334. the GP-value needed by the function. Note that this option does
  9335. not in any fashion affect the machine code emitted by the
  9336. assembler. All it does is turn on the EF_IA_64_NOFUNCDESC_CONS_GP
  9337. flag in the ELF file header.
  9338. '-milp32'
  9339. '-milp64'
  9340. '-mlp64'
  9341. '-mp64'
  9342. These options select the data model. The assembler defaults to
  9343. '-mlp64' (LP64 data model).
  9344. '-mle'
  9345. '-mbe'
  9346. These options select the byte order. The '-mle' option selects
  9347. little-endian byte order (default) and '-mbe' selects big-endian
  9348. byte order. Note that IA-64 machine code always uses little-endian
  9349. byte order.
  9350. '-mtune=itanium1'
  9351. '-mtune=itanium2'
  9352. Tune for a particular IA-64 CPU, ITANIUM1 or ITANIUM2. The default
  9353. is ITANIUM2.
  9354. '-munwind-check=warning'
  9355. '-munwind-check=error'
  9356. These options control what the assembler will do when performing
  9357. consistency checks on unwind directives. '-munwind-check=warning'
  9358. will make the assembler issue a warning when an unwind directive
  9359. check fails. This is the default. '-munwind-check=error' will
  9360. make the assembler issue an error when an unwind directive check
  9361. fails.
  9362. '-mhint.b=ok'
  9363. '-mhint.b=warning'
  9364. '-mhint.b=error'
  9365. These options control what the assembler will do when the 'hint.b'
  9366. instruction is used. '-mhint.b=ok' will make the assembler accept
  9367. 'hint.b'. '-mint.b=warning' will make the assembler issue a
  9368. warning when 'hint.b' is used. '-mhint.b=error' will make the
  9369. assembler treat 'hint.b' as an error, which is the default.
  9370. '-x'
  9371. '-xexplicit'
  9372. These options turn on dependency violation checking.
  9373. '-xauto'
  9374. This option instructs the assembler to automatically insert stop
  9375. bits where necessary to remove dependency violations. This is the
  9376. default mode.
  9377. '-xnone'
  9378. This option turns off dependency violation checking.
  9379. '-xdebug'
  9380. This turns on debug output intended to help tracking down bugs in
  9381. the dependency violation checker.
  9382. '-xdebugn'
  9383. This is a shortcut for -xnone -xdebug.
  9384. '-xdebugx'
  9385. This is a shortcut for -xexplicit -xdebug.
  9386. 
  9387. File: as.info, Node: IA-64 Syntax, Next: IA-64 Opcodes, Prev: IA-64 Options, Up: IA-64-Dependent
  9388. 9.16.2 Syntax
  9389. -------------
  9390. The assembler syntax closely follows the IA-64 Assembly Language
  9391. Reference Guide.
  9392. * Menu:
  9393. * IA-64-Chars:: Special Characters
  9394. * IA-64-Regs:: Register Names
  9395. * IA-64-Bits:: Bit Names
  9396. * IA-64-Relocs:: Relocations
  9397. 
  9398. File: as.info, Node: IA-64-Chars, Next: IA-64-Regs, Up: IA-64 Syntax
  9399. 9.16.2.1 Special Characters
  9400. ...........................
  9401. '//' is the line comment token.
  9402. ';' can be used instead of a newline to separate statements.
  9403. 
  9404. File: as.info, Node: IA-64-Regs, Next: IA-64-Bits, Prev: IA-64-Chars, Up: IA-64 Syntax
  9405. 9.16.2.2 Register Names
  9406. .......................
  9407. The 128 integer registers are referred to as 'rN'. The 128
  9408. floating-point registers are referred to as 'fN'. The 128 application
  9409. registers are referred to as 'arN'. The 128 control registers are
  9410. referred to as 'crN'. The 64 one-bit predicate registers are referred
  9411. to as 'pN'. The 8 branch registers are referred to as 'bN'. In
  9412. addition, the assembler defines a number of aliases: 'gp' ('r1'), 'sp'
  9413. ('r12'), 'rp' ('b0'), 'ret0' ('r8'), 'ret1' ('r9'), 'ret2' ('r10'),
  9414. 'ret3' ('r9'), 'fargN' ('f8+N'), and 'fretN' ('f8+N').
  9415. For convenience, the assembler also defines aliases for all named
  9416. application and control registers. For example, 'ar.bsp' refers to the
  9417. register backing store pointer ('ar17'). Similarly, 'cr.eoi' refers to
  9418. the end-of-interrupt register ('cr67').
  9419. 
  9420. File: as.info, Node: IA-64-Bits, Next: IA-64-Relocs, Prev: IA-64-Regs, Up: IA-64 Syntax
  9421. 9.16.2.3 IA-64 Processor-Status-Register (PSR) Bit Names
  9422. ........................................................
  9423. The assembler defines bit masks for each of the bits in the IA-64
  9424. processor status register. For example, 'psr.ic' corresponds to a value
  9425. of 0x2000. These masks are primarily intended for use with the
  9426. 'ssm'/'sum' and 'rsm'/'rum' instructions, but they can be used anywhere
  9427. else where an integer constant is expected.
  9428. 
  9429. File: as.info, Node: IA-64-Relocs, Prev: IA-64-Bits, Up: IA-64 Syntax
  9430. 9.16.2.4 Relocations
  9431. ....................
  9432. In addition to the standard IA-64 relocations, the following relocations
  9433. are implemented by 'as':
  9434. '@slotcount(V)'
  9435. Convert the address offset V into a slot count. This pseudo
  9436. function is available only on VMS. The expression V must be known
  9437. at assembly time: it can't reference undefined symbols or symbols
  9438. in different sections.
  9439. 
  9440. File: as.info, Node: IA-64 Opcodes, Prev: IA-64 Syntax, Up: IA-64-Dependent
  9441. 9.16.3 Opcodes
  9442. --------------
  9443. For detailed information on the IA-64 machine instruction set, see the
  9444. IA-64 Architecture Handbook
  9445. (http://developer.intel.com/design/itanium/arch_spec.htm).
  9446. 
  9447. File: as.info, Node: IP2K-Dependent, Next: LM32-Dependent, Prev: IA-64-Dependent, Up: Machine Dependencies
  9448. 9.17 IP2K Dependent Features
  9449. ============================
  9450. * Menu:
  9451. * IP2K-Opts:: IP2K Options
  9452. * IP2K-Syntax:: IP2K Syntax
  9453. 
  9454. File: as.info, Node: IP2K-Opts, Next: IP2K-Syntax, Up: IP2K-Dependent
  9455. 9.17.1 IP2K Options
  9456. -------------------
  9457. The Ubicom IP2K version of 'as' has a few machine dependent options:
  9458. '-mip2022ext'
  9459. 'as' can assemble the extended IP2022 instructions, but it will
  9460. only do so if this is specifically allowed via this command line
  9461. option.
  9462. '-mip2022'
  9463. This option restores the assembler's default behaviour of not
  9464. permitting the extended IP2022 instructions to be assembled.
  9465. 
  9466. File: as.info, Node: IP2K-Syntax, Prev: IP2K-Opts, Up: IP2K-Dependent
  9467. 9.17.2 IP2K Syntax
  9468. ------------------
  9469. * Menu:
  9470. * IP2K-Chars:: Special Characters
  9471. 
  9472. File: as.info, Node: IP2K-Chars, Up: IP2K-Syntax
  9473. 9.17.2.1 Special Characters
  9474. ...........................
  9475. The presence of a ';' on a line indicates the start of a comment that
  9476. extends to the end of the current line.
  9477. If a '#' appears as the first character of a line, the whole line is
  9478. treated as a comment, but in this case the line can also be a logical
  9479. line number directive (*note Comments::) or a preprocessor control
  9480. command (*note Preprocessing::).
  9481. The IP2K assembler does not currently support a line separator
  9482. character.
  9483. 
  9484. File: as.info, Node: LM32-Dependent, Next: M32C-Dependent, Prev: IP2K-Dependent, Up: Machine Dependencies
  9485. 9.18 LM32 Dependent Features
  9486. ============================
  9487. * Menu:
  9488. * LM32 Options:: Options
  9489. * LM32 Syntax:: Syntax
  9490. * LM32 Opcodes:: Opcodes
  9491. 
  9492. File: as.info, Node: LM32 Options, Next: LM32 Syntax, Up: LM32-Dependent
  9493. 9.18.1 Options
  9494. --------------
  9495. '-mmultiply-enabled'
  9496. Enable multiply instructions.
  9497. '-mdivide-enabled'
  9498. Enable divide instructions.
  9499. '-mbarrel-shift-enabled'
  9500. Enable barrel-shift instructions.
  9501. '-msign-extend-enabled'
  9502. Enable sign extend instructions.
  9503. '-muser-enabled'
  9504. Enable user defined instructions.
  9505. '-micache-enabled'
  9506. Enable instruction cache related CSRs.
  9507. '-mdcache-enabled'
  9508. Enable data cache related CSRs.
  9509. '-mbreak-enabled'
  9510. Enable break instructions.
  9511. '-mall-enabled'
  9512. Enable all instructions and CSRs.
  9513. 
  9514. File: as.info, Node: LM32 Syntax, Next: LM32 Opcodes, Prev: LM32 Options, Up: LM32-Dependent
  9515. 9.18.2 Syntax
  9516. -------------
  9517. * Menu:
  9518. * LM32-Regs:: Register Names
  9519. * LM32-Modifiers:: Relocatable Expression Modifiers
  9520. * LM32-Chars:: Special Characters
  9521. 
  9522. File: as.info, Node: LM32-Regs, Next: LM32-Modifiers, Up: LM32 Syntax
  9523. 9.18.2.1 Register Names
  9524. .......................
  9525. LM32 has 32 x 32-bit general purpose registers 'r0', 'r1', ... 'r31'.
  9526. The following aliases are defined: 'gp' - 'r26', 'fp' - 'r27', 'sp' -
  9527. 'r28', 'ra' - 'r29', 'ea' - 'r30', 'ba' - 'r31'.
  9528. LM32 has the following Control and Status Registers (CSRs).
  9529. 'IE'
  9530. Interrupt enable.
  9531. 'IM'
  9532. Interrupt mask.
  9533. 'IP'
  9534. Interrupt pending.
  9535. 'ICC'
  9536. Instruction cache control.
  9537. 'DCC'
  9538. Data cache control.
  9539. 'CC'
  9540. Cycle counter.
  9541. 'CFG'
  9542. Configuration.
  9543. 'EBA'
  9544. Exception base address.
  9545. 'DC'
  9546. Debug control.
  9547. 'DEBA'
  9548. Debug exception base address.
  9549. 'JTX'
  9550. JTAG transmit.
  9551. 'JRX'
  9552. JTAG receive.
  9553. 'BP0'
  9554. Breakpoint 0.
  9555. 'BP1'
  9556. Breakpoint 1.
  9557. 'BP2'
  9558. Breakpoint 2.
  9559. 'BP3'
  9560. Breakpoint 3.
  9561. 'WP0'
  9562. Watchpoint 0.
  9563. 'WP1'
  9564. Watchpoint 1.
  9565. 'WP2'
  9566. Watchpoint 2.
  9567. 'WP3'
  9568. Watchpoint 3.
  9569. 
  9570. File: as.info, Node: LM32-Modifiers, Next: LM32-Chars, Prev: LM32-Regs, Up: LM32 Syntax
  9571. 9.18.2.2 Relocatable Expression Modifiers
  9572. .........................................
  9573. The assembler supports several modifiers when using relocatable
  9574. addresses in LM32 instruction operands. The general syntax is the
  9575. following:
  9576. modifier(relocatable-expression)
  9577. 'lo'
  9578. This modifier allows you to use bits 0 through 15 of an address
  9579. expression as 16 bit relocatable expression.
  9580. 'hi'
  9581. This modifier allows you to use bits 16 through 23 of an address
  9582. expression as 16 bit relocatable expression.
  9583. For example
  9584. ori r4, r4, lo(sym+10)
  9585. orhi r4, r4, hi(sym+10)
  9586. 'gp'
  9587. This modified creates a 16-bit relocatable expression that is the
  9588. offset of the symbol from the global pointer.
  9589. mva r4, gp(sym)
  9590. 'got'
  9591. This modifier places a symbol in the GOT and creates a 16-bit
  9592. relocatable expression that is the offset into the GOT of this
  9593. symbol.
  9594. lw r4, (gp+got(sym))
  9595. 'gotofflo16'
  9596. This modifier allows you to use the bits 0 through 15 of an address
  9597. which is an offset from the GOT.
  9598. 'gotoffhi16'
  9599. This modifier allows you to use the bits 16 through 31 of an
  9600. address which is an offset from the GOT.
  9601. orhi r4, r4, gotoffhi16(lsym)
  9602. addi r4, r4, gotofflo16(lsym)
  9603. 
  9604. File: as.info, Node: LM32-Chars, Prev: LM32-Modifiers, Up: LM32 Syntax
  9605. 9.18.2.3 Special Characters
  9606. ...........................
  9607. The presence of a '#' on a line indicates the start of a comment that
  9608. extends to the end of the current line. Note that if a line starts with
  9609. a '#' character then it can also be a logical line number directive
  9610. (*note Comments::) or a preprocessor control command (*note
  9611. Preprocessing::).
  9612. A semicolon (';') can be used to separate multiple statements on the
  9613. same line.
  9614. 
  9615. File: as.info, Node: LM32 Opcodes, Prev: LM32 Syntax, Up: LM32-Dependent
  9616. 9.18.3 Opcodes
  9617. --------------
  9618. For detailed information on the LM32 machine instruction set, see
  9619. <http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/>.
  9620. 'as' implements all the standard LM32 opcodes.
  9621. 
  9622. File: as.info, Node: M32C-Dependent, Next: M32R-Dependent, Prev: LM32-Dependent, Up: Machine Dependencies
  9623. 9.19 M32C Dependent Features
  9624. ============================
  9625. 'as' can assemble code for several different members of the Renesas M32C
  9626. family. Normally the default is to assemble code for the M16C
  9627. microprocessor. The '-m32c' option may be used to change the default to
  9628. the M32C microprocessor.
  9629. * Menu:
  9630. * M32C-Opts:: M32C Options
  9631. * M32C-Syntax:: M32C Syntax
  9632. 
  9633. File: as.info, Node: M32C-Opts, Next: M32C-Syntax, Up: M32C-Dependent
  9634. 9.19.1 M32C Options
  9635. -------------------
  9636. The Renesas M32C version of 'as' has these machine-dependent options:
  9637. '-m32c'
  9638. Assemble M32C instructions.
  9639. '-m16c'
  9640. Assemble M16C instructions (default).
  9641. '-relax'
  9642. Enable support for link-time relaxations.
  9643. '-h-tick-hex'
  9644. Support H'00 style hex constants in addition to 0x00 style.
  9645. 
  9646. File: as.info, Node: M32C-Syntax, Prev: M32C-Opts, Up: M32C-Dependent
  9647. 9.19.2 M32C Syntax
  9648. ------------------
  9649. * Menu:
  9650. * M32C-Modifiers:: Symbolic Operand Modifiers
  9651. * M32C-Chars:: Special Characters
  9652. 
  9653. File: as.info, Node: M32C-Modifiers, Next: M32C-Chars, Up: M32C-Syntax
  9654. 9.19.2.1 Symbolic Operand Modifiers
  9655. ...................................
  9656. The assembler supports several modifiers when using symbol addresses in
  9657. M32C instruction operands. The general syntax is the following:
  9658. %modifier(symbol)
  9659. '%dsp8'
  9660. '%dsp16'
  9661. These modifiers override the assembler's assumptions about how big
  9662. a symbol's address is. Normally, when it sees an operand like
  9663. 'sym[a0]' it assumes 'sym' may require the widest displacement
  9664. field (16 bits for '-m16c', 24 bits for '-m32c'). These modifiers
  9665. tell it to assume the address will fit in an 8 or 16 bit
  9666. (respectively) unsigned displacement. Note that, of course, if it
  9667. doesn't actually fit you will get linker errors. Example:
  9668. mov.w %dsp8(sym)[a0],r1
  9669. mov.b #0,%dsp8(sym)[a0]
  9670. '%hi8'
  9671. This modifier allows you to load bits 16 through 23 of a 24 bit
  9672. address into an 8 bit register. This is useful with, for example,
  9673. the M16C 'smovf' instruction, which expects a 20 bit address in
  9674. 'r1h' and 'a0'. Example:
  9675. mov.b #%hi8(sym),r1h
  9676. mov.w #%lo16(sym),a0
  9677. smovf.b
  9678. '%lo16'
  9679. Likewise, this modifier allows you to load bits 0 through 15 of a
  9680. 24 bit address into a 16 bit register.
  9681. '%hi16'
  9682. This modifier allows you to load bits 16 through 31 of a 32 bit
  9683. address into a 16 bit register. While the M32C family only has 24
  9684. bits of address space, it does support addresses in pairs of 16 bit
  9685. registers (like 'a1a0' for the 'lde' instruction). This modifier
  9686. is for loading the upper half in such cases. Example:
  9687. mov.w #%hi16(sym),a1
  9688. mov.w #%lo16(sym),a0
  9689. ...
  9690. lde.w [a1a0],r1
  9691. 
  9692. File: as.info, Node: M32C-Chars, Prev: M32C-Modifiers, Up: M32C-Syntax
  9693. 9.19.2.2 Special Characters
  9694. ...........................
  9695. The presence of a ';' character on a line indicates the start of a
  9696. comment that extends to the end of that line.
  9697. If a '#' appears as the first character of a line, the whole line is
  9698. treated as a comment, but in this case the line can also be a logical
  9699. line number directive (*note Comments::) or a preprocessor control
  9700. command (*note Preprocessing::).
  9701. The '|' character can be used to separate statements on the same
  9702. line.
  9703. 
  9704. File: as.info, Node: M32R-Dependent, Next: M68K-Dependent, Prev: M32C-Dependent, Up: Machine Dependencies
  9705. 9.20 M32R Dependent Features
  9706. ============================
  9707. * Menu:
  9708. * M32R-Opts:: M32R Options
  9709. * M32R-Directives:: M32R Directives
  9710. * M32R-Warnings:: M32R Warnings
  9711. 
  9712. File: as.info, Node: M32R-Opts, Next: M32R-Directives, Up: M32R-Dependent
  9713. 9.20.1 M32R Options
  9714. -------------------
  9715. The Renesas M32R version of 'as' has a few machine dependent options:
  9716. '-m32rx'
  9717. 'as' can assemble code for several different members of the Renesas
  9718. M32R family. Normally the default is to assemble code for the M32R
  9719. microprocessor. This option may be used to change the default to
  9720. the M32RX microprocessor, which adds some more instructions to the
  9721. basic M32R instruction set, and some additional parameters to some
  9722. of the original instructions.
  9723. '-m32r2'
  9724. This option changes the target processor to the M32R2
  9725. microprocessor.
  9726. '-m32r'
  9727. This option can be used to restore the assembler's default
  9728. behaviour of assembling for the M32R microprocessor. This can be
  9729. useful if the default has been changed by a previous command-line
  9730. option.
  9731. '-little'
  9732. This option tells the assembler to produce little-endian code and
  9733. data. The default is dependent upon how the toolchain was
  9734. configured.
  9735. '-EL'
  9736. This is a synonym for _-little_.
  9737. '-big'
  9738. This option tells the assembler to produce big-endian code and
  9739. data.
  9740. '-EB'
  9741. This is a synonym for _-big_.
  9742. '-KPIC'
  9743. This option specifies that the output of the assembler should be
  9744. marked as position-independent code (PIC).
  9745. '-parallel'
  9746. This option tells the assembler to attempts to combine two
  9747. sequential instructions into a single, parallel instruction, where
  9748. it is legal to do so.
  9749. '-no-parallel'
  9750. This option disables a previously enabled _-parallel_ option.
  9751. '-no-bitinst'
  9752. This option disables the support for the extended bit-field
  9753. instructions provided by the M32R2. If this support needs to be
  9754. re-enabled the _-bitinst_ switch can be used to restore it.
  9755. '-O'
  9756. This option tells the assembler to attempt to optimize the
  9757. instructions that it produces. This includes filling delay slots
  9758. and converting sequential instructions into parallel ones. This
  9759. option implies _-parallel_.
  9760. '-warn-explicit-parallel-conflicts'
  9761. Instructs 'as' to produce warning messages when questionable
  9762. parallel instructions are encountered. This option is enabled by
  9763. default, but 'gcc' disables it when it invokes 'as' directly.
  9764. Questionable instructions are those whose behaviour would be
  9765. different if they were executed sequentially. For example the code
  9766. fragment 'mv r1, r2 || mv r3, r1' produces a different result from
  9767. 'mv r1, r2 \n mv r3, r1' since the former moves r1 into r3 and then
  9768. r2 into r1, whereas the later moves r2 into r1 and r3.
  9769. '-Wp'
  9770. This is a shorter synonym for the
  9771. _-warn-explicit-parallel-conflicts_ option.
  9772. '-no-warn-explicit-parallel-conflicts'
  9773. Instructs 'as' not to produce warning messages when questionable
  9774. parallel instructions are encountered.
  9775. '-Wnp'
  9776. This is a shorter synonym for the
  9777. _-no-warn-explicit-parallel-conflicts_ option.
  9778. '-ignore-parallel-conflicts'
  9779. This option tells the assembler's to stop checking parallel
  9780. instructions for constraint violations. This ability is provided
  9781. for hardware vendors testing chip designs and should not be used
  9782. under normal circumstances.
  9783. '-no-ignore-parallel-conflicts'
  9784. This option restores the assembler's default behaviour of checking
  9785. parallel instructions to detect constraint violations.
  9786. '-Ip'
  9787. This is a shorter synonym for the _-ignore-parallel-conflicts_
  9788. option.
  9789. '-nIp'
  9790. This is a shorter synonym for the _-no-ignore-parallel-conflicts_
  9791. option.
  9792. '-warn-unmatched-high'
  9793. This option tells the assembler to produce a warning message if a
  9794. '.high' pseudo op is encountered without a matching '.low' pseudo
  9795. op. The presence of such an unmatched pseudo op usually indicates
  9796. a programming error.
  9797. '-no-warn-unmatched-high'
  9798. Disables a previously enabled _-warn-unmatched-high_ option.
  9799. '-Wuh'
  9800. This is a shorter synonym for the _-warn-unmatched-high_ option.
  9801. '-Wnuh'
  9802. This is a shorter synonym for the _-no-warn-unmatched-high_ option.
  9803. 
  9804. File: as.info, Node: M32R-Directives, Next: M32R-Warnings, Prev: M32R-Opts, Up: M32R-Dependent
  9805. 9.20.2 M32R Directives
  9806. ----------------------
  9807. The Renesas M32R version of 'as' has a few architecture specific
  9808. directives:
  9809. 'low EXPRESSION'
  9810. The 'low' directive computes the value of its expression and places
  9811. the lower 16-bits of the result into the immediate-field of the
  9812. instruction. For example:
  9813. or3 r0, r0, #low(0x12345678) ; compute r0 = r0 | 0x5678
  9814. add3, r0, r0, #low(fred) ; compute r0 = r0 + low 16-bits of address of fred
  9815. 'high EXPRESSION'
  9816. The 'high' directive computes the value of its expression and
  9817. places the upper 16-bits of the result into the immediate-field of
  9818. the instruction. For example:
  9819. seth r0, #high(0x12345678) ; compute r0 = 0x12340000
  9820. seth, r0, #high(fred) ; compute r0 = upper 16-bits of address of fred
  9821. 'shigh EXPRESSION'
  9822. The 'shigh' directive is very similar to the 'high' directive. It
  9823. also computes the value of its expression and places the upper
  9824. 16-bits of the result into the immediate-field of the instruction.
  9825. The difference is that 'shigh' also checks to see if the lower
  9826. 16-bits could be interpreted as a signed number, and if so it
  9827. assumes that a borrow will occur from the upper-16 bits. To
  9828. compensate for this the 'shigh' directive pre-biases the upper 16
  9829. bit value by adding one to it. For example:
  9830. For example:
  9831. seth r0, #shigh(0x12345678) ; compute r0 = 0x12340000
  9832. seth r0, #shigh(0x00008000) ; compute r0 = 0x00010000
  9833. In the second example the lower 16-bits are 0x8000. If these are
  9834. treated as a signed value and sign extended to 32-bits then the
  9835. value becomes 0xffff8000. If this value is then added to
  9836. 0x00010000 then the result is 0x00008000.
  9837. This behaviour is to allow for the different semantics of the 'or3'
  9838. and 'add3' instructions. The 'or3' instruction treats its 16-bit
  9839. immediate argument as unsigned whereas the 'add3' treats its 16-bit
  9840. immediate as a signed value. So for example:
  9841. seth r0, #shigh(0x00008000)
  9842. add3 r0, r0, #low(0x00008000)
  9843. Produces the correct result in r0, whereas:
  9844. seth r0, #shigh(0x00008000)
  9845. or3 r0, r0, #low(0x00008000)
  9846. Stores 0xffff8000 into r0.
  9847. Note - the 'shigh' directive does not know where in the assembly
  9848. source code the lower 16-bits of the value are going set, so it
  9849. cannot check to make sure that an 'or3' instruction is being used
  9850. rather than an 'add3' instruction. It is up to the programmer to
  9851. make sure that correct directives are used.
  9852. '.m32r'
  9853. The directive performs a similar thing as the _-m32r_ command line
  9854. option. It tells the assembler to only accept M32R instructions
  9855. from now on. An instructions from later M32R architectures are
  9856. refused.
  9857. '.m32rx'
  9858. The directive performs a similar thing as the _-m32rx_ command line
  9859. option. It tells the assembler to start accepting the extra
  9860. instructions in the M32RX ISA as well as the ordinary M32R ISA.
  9861. '.m32r2'
  9862. The directive performs a similar thing as the _-m32r2_ command line
  9863. option. It tells the assembler to start accepting the extra
  9864. instructions in the M32R2 ISA as well as the ordinary M32R ISA.
  9865. '.little'
  9866. The directive performs a similar thing as the _-little_ command
  9867. line option. It tells the assembler to start producing
  9868. little-endian code and data. This option should be used with care
  9869. as producing mixed-endian binary files is fraught with danger.
  9870. '.big'
  9871. The directive performs a similar thing as the _-big_ command line
  9872. option. It tells the assembler to start producing big-endian code
  9873. and data. This option should be used with care as producing
  9874. mixed-endian binary files is fraught with danger.
  9875. 
  9876. File: as.info, Node: M32R-Warnings, Prev: M32R-Directives, Up: M32R-Dependent
  9877. 9.20.3 M32R Warnings
  9878. --------------------
  9879. There are several warning and error messages that can be produced by
  9880. 'as' which are specific to the M32R:
  9881. 'output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?'
  9882. This message is only produced if warnings for explicit parallel
  9883. conflicts have been enabled. It indicates that the assembler has
  9884. encountered a parallel instruction in which the destination
  9885. register of the left hand instruction is used as an input register
  9886. in the right hand instruction. For example in this code fragment
  9887. 'mv r1, r2 || neg r3, r1' register r1 is the destination of the
  9888. move instruction and the input to the neg instruction.
  9889. 'output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?'
  9890. This message is only produced if warnings for explicit parallel
  9891. conflicts have been enabled. It indicates that the assembler has
  9892. encountered a parallel instruction in which the destination
  9893. register of the right hand instruction is used as an input register
  9894. in the left hand instruction. For example in this code fragment
  9895. 'mv r1, r2 || neg r2, r3' register r2 is the destination of the neg
  9896. instruction and the input to the move instruction.
  9897. 'instruction '...' is for the M32RX only'
  9898. This message is produced when the assembler encounters an
  9899. instruction which is only supported by the M32Rx processor, and the
  9900. '-m32rx' command-line flag has not been specified to allow assembly
  9901. of such instructions.
  9902. 'unknown instruction '...''
  9903. This message is produced when the assembler encounters an
  9904. instruction which it does not recognize.
  9905. 'only the NOP instruction can be issued in parallel on the m32r'
  9906. This message is produced when the assembler encounters a parallel
  9907. instruction which does not involve a NOP instruction and the
  9908. '-m32rx' command-line flag has not been specified. Only the M32Rx
  9909. processor is able to execute two instructions in parallel.
  9910. 'instruction '...' cannot be executed in parallel.'
  9911. This message is produced when the assembler encounters a parallel
  9912. instruction which is made up of one or two instructions which
  9913. cannot be executed in parallel.
  9914. 'Instructions share the same execution pipeline'
  9915. This message is produced when the assembler encounters a parallel
  9916. instruction whose components both use the same execution pipeline.
  9917. 'Instructions write to the same destination register.'
  9918. This message is produced when the assembler encounters a parallel
  9919. instruction where both components attempt to modify the same
  9920. register. For example these code fragments will produce this
  9921. message: 'mv r1, r2 || neg r1, r3' 'jl r0 || mv r14, r1' 'st r2,
  9922. @-r1 || mv r1, r3' 'mv r1, r2 || ld r0, @r1+' 'cmp r1, r2 || addx
  9923. r3, r4' (Both write to the condition bit)
  9924. 
  9925. File: as.info, Node: M68K-Dependent, Next: M68HC11-Dependent, Prev: M32R-Dependent, Up: Machine Dependencies
  9926. 9.21 M680x0 Dependent Features
  9927. ==============================
  9928. * Menu:
  9929. * M68K-Opts:: M680x0 Options
  9930. * M68K-Syntax:: Syntax
  9931. * M68K-Moto-Syntax:: Motorola Syntax
  9932. * M68K-Float:: Floating Point
  9933. * M68K-Directives:: 680x0 Machine Directives
  9934. * M68K-opcodes:: Opcodes
  9935. 
  9936. File: as.info, Node: M68K-Opts, Next: M68K-Syntax, Up: M68K-Dependent
  9937. 9.21.1 M680x0 Options
  9938. ---------------------
  9939. The Motorola 680x0 version of 'as' has a few machine dependent options:
  9940. '-march=ARCHITECTURE'
  9941. This option specifies a target architecture. The following
  9942. architectures are recognized: '68000', '68010', '68020', '68030',
  9943. '68040', '68060', 'cpu32', 'isaa', 'isaaplus', 'isab', 'isac' and
  9944. 'cfv4e'.
  9945. '-mcpu=CPU'
  9946. This option specifies a target cpu. When used in conjunction with
  9947. the '-march' option, the cpu must be within the specified
  9948. architecture. Also, the generic features of the architecture are
  9949. used for instruction generation, rather than those of the specific
  9950. chip.
  9951. '-m[no-]68851'
  9952. '-m[no-]68881'
  9953. '-m[no-]div'
  9954. '-m[no-]usp'
  9955. '-m[no-]float'
  9956. '-m[no-]mac'
  9957. '-m[no-]emac'
  9958. Enable or disable various architecture specific features. If a
  9959. chip or architecture by default supports an option (for instance
  9960. '-march=isaaplus' includes the '-mdiv' option), explicitly
  9961. disabling the option will override the default.
  9962. '-l'
  9963. You can use the '-l' option to shorten the size of references to
  9964. undefined symbols. If you do not use the '-l' option, references
  9965. to undefined symbols are wide enough for a full 'long' (32 bits).
  9966. (Since 'as' cannot know where these symbols end up, 'as' can only
  9967. allocate space for the linker to fill in later. Since 'as' does
  9968. not know how far away these symbols are, it allocates as much space
  9969. as it can.) If you use this option, the references are only one
  9970. word wide (16 bits). This may be useful if you want the object
  9971. file to be as small as possible, and you know that the relevant
  9972. symbols are always less than 17 bits away.
  9973. '--register-prefix-optional'
  9974. For some configurations, especially those where the compiler
  9975. normally does not prepend an underscore to the names of user
  9976. variables, the assembler requires a '%' before any use of a
  9977. register name. This is intended to let the assembler distinguish
  9978. between C variables and functions named 'a0' through 'a7', and so
  9979. on. The '%' is always accepted, but is not required for certain
  9980. configurations, notably 'sun3'. The '--register-prefix-optional'
  9981. option may be used to permit omitting the '%' even for
  9982. configurations for which it is normally required. If this is done,
  9983. it will generally be impossible to refer to C variables and
  9984. functions with the same names as register names.
  9985. '--bitwise-or'
  9986. Normally the character '|' is treated as a comment character, which
  9987. means that it can not be used in expressions. The '--bitwise-or'
  9988. option turns '|' into a normal character. In this mode, you must
  9989. either use C style comments, or start comments with a '#' character
  9990. at the beginning of a line.
  9991. '--base-size-default-16 --base-size-default-32'
  9992. If you use an addressing mode with a base register without
  9993. specifying the size, 'as' will normally use the full 32 bit value.
  9994. For example, the addressing mode '%a0@(%d0)' is equivalent to
  9995. '%a0@(%d0:l)'. You may use the '--base-size-default-16' option to
  9996. tell 'as' to default to using the 16 bit value. In this case,
  9997. '%a0@(%d0)' is equivalent to '%a0@(%d0:w)'. You may use the
  9998. '--base-size-default-32' option to restore the default behaviour.
  9999. '--disp-size-default-16 --disp-size-default-32'
  10000. If you use an addressing mode with a displacement, and the value of
  10001. the displacement is not known, 'as' will normally assume that the
  10002. value is 32 bits. For example, if the symbol 'disp' has not been
  10003. defined, 'as' will assemble the addressing mode '%a0@(disp,%d0)' as
  10004. though 'disp' is a 32 bit value. You may use the
  10005. '--disp-size-default-16' option to tell 'as' to instead assume that
  10006. the displacement is 16 bits. In this case, 'as' will assemble
  10007. '%a0@(disp,%d0)' as though 'disp' is a 16 bit value. You may use
  10008. the '--disp-size-default-32' option to restore the default
  10009. behaviour.
  10010. '--pcrel'
  10011. Always keep branches PC-relative. In the M680x0 architecture all
  10012. branches are defined as PC-relative. However, on some processors
  10013. they are limited to word displacements maximum. When 'as' needs a
  10014. long branch that is not available, it normally emits an absolute
  10015. jump instead. This option disables this substitution. When this
  10016. option is given and no long branches are available, only word
  10017. branches will be emitted. An error message will be generated if a
  10018. word branch cannot reach its target. This option has no effect on
  10019. 68020 and other processors that have long branches. *note Branch
  10020. Improvement: M68K-Branch.
  10021. '-m68000'
  10022. 'as' can assemble code for several different members of the
  10023. Motorola 680x0 family. The default depends upon how 'as' was
  10024. configured when it was built; normally, the default is to assemble
  10025. code for the 68020 microprocessor. The following options may be
  10026. used to change the default. These options control which
  10027. instructions and addressing modes are permitted. The members of
  10028. the 680x0 family are very similar. For detailed information about
  10029. the differences, see the Motorola manuals.
  10030. '-m68000'
  10031. '-m68ec000'
  10032. '-m68hc000'
  10033. '-m68hc001'
  10034. '-m68008'
  10035. '-m68302'
  10036. '-m68306'
  10037. '-m68307'
  10038. '-m68322'
  10039. '-m68356'
  10040. Assemble for the 68000. '-m68008', '-m68302', and so on are
  10041. synonyms for '-m68000', since the chips are the same from the
  10042. point of view of the assembler.
  10043. '-m68010'
  10044. Assemble for the 68010.
  10045. '-m68020'
  10046. '-m68ec020'
  10047. Assemble for the 68020. This is normally the default.
  10048. '-m68030'
  10049. '-m68ec030'
  10050. Assemble for the 68030.
  10051. '-m68040'
  10052. '-m68ec040'
  10053. Assemble for the 68040.
  10054. '-m68060'
  10055. '-m68ec060'
  10056. Assemble for the 68060.
  10057. '-mcpu32'
  10058. '-m68330'
  10059. '-m68331'
  10060. '-m68332'
  10061. '-m68333'
  10062. '-m68334'
  10063. '-m68336'
  10064. '-m68340'
  10065. '-m68341'
  10066. '-m68349'
  10067. '-m68360'
  10068. Assemble for the CPU32 family of chips.
  10069. '-m5200'
  10070. '-m5202'
  10071. '-m5204'
  10072. '-m5206'
  10073. '-m5206e'
  10074. '-m521x'
  10075. '-m5249'
  10076. '-m528x'
  10077. '-m5307'
  10078. '-m5407'
  10079. '-m547x'
  10080. '-m548x'
  10081. '-mcfv4'
  10082. '-mcfv4e'
  10083. Assemble for the ColdFire family of chips.
  10084. '-m68881'
  10085. '-m68882'
  10086. Assemble 68881 floating point instructions. This is the
  10087. default for the 68020, 68030, and the CPU32. The 68040 and
  10088. 68060 always support floating point instructions.
  10089. '-mno-68881'
  10090. Do not assemble 68881 floating point instructions. This is
  10091. the default for 68000 and the 68010. The 68040 and 68060
  10092. always support floating point instructions, even if this
  10093. option is used.
  10094. '-m68851'
  10095. Assemble 68851 MMU instructions. This is the default for the
  10096. 68020, 68030, and 68060. The 68040 accepts a somewhat
  10097. different set of MMU instructions; '-m68851' and '-m68040'
  10098. should not be used together.
  10099. '-mno-68851'
  10100. Do not assemble 68851 MMU instructions. This is the default
  10101. for the 68000, 68010, and the CPU32. The 68040 accepts a
  10102. somewhat different set of MMU instructions.
  10103. 
  10104. File: as.info, Node: M68K-Syntax, Next: M68K-Moto-Syntax, Prev: M68K-Opts, Up: M68K-Dependent
  10105. 9.21.2 Syntax
  10106. -------------
  10107. This syntax for the Motorola 680x0 was developed at MIT.
  10108. The 680x0 version of 'as' uses instructions names and syntax
  10109. compatible with the Sun assembler. Intervening periods are ignored; for
  10110. example, 'movl' is equivalent to 'mov.l'.
  10111. In the following table APC stands for any of the address registers
  10112. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10113. relative to the program counter ('%zpc'), a suppressed address register
  10114. ('%za0' through '%za7'), or it may be omitted entirely. The use of SIZE
  10115. means one of 'w' or 'l', and it may be omitted, along with the leading
  10116. colon, unless a scale is also specified. The use of SCALE means one of
  10117. '1', '2', '4', or '8', and it may always be omitted along with the
  10118. leading colon.
  10119. The following addressing modes are understood:
  10120. "Immediate"
  10121. '#NUMBER'
  10122. "Data Register"
  10123. '%d0' through '%d7'
  10124. "Address Register"
  10125. '%a0' through '%a7'
  10126. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10127. also known as '%fp', the Frame Pointer.
  10128. "Address Register Indirect"
  10129. '%a0@' through '%a7@'
  10130. "Address Register Postincrement"
  10131. '%a0@+' through '%a7@+'
  10132. "Address Register Predecrement"
  10133. '%a0@-' through '%a7@-'
  10134. "Indirect Plus Offset"
  10135. 'APC@(NUMBER)'
  10136. "Index"
  10137. 'APC@(NUMBER,REGISTER:SIZE:SCALE)'
  10138. The NUMBER may be omitted.
  10139. "Postindex"
  10140. 'APC@(NUMBER)@(ONUMBER,REGISTER:SIZE:SCALE)'
  10141. The ONUMBER or the REGISTER, but not both, may be omitted.
  10142. "Preindex"
  10143. 'APC@(NUMBER,REGISTER:SIZE:SCALE)@(ONUMBER)'
  10144. The NUMBER may be omitted. Omitting the REGISTER produces the
  10145. Postindex addressing mode.
  10146. "Absolute"
  10147. 'SYMBOL', or 'DIGITS', optionally followed by ':b', ':w', or ':l'.
  10148. 
  10149. File: as.info, Node: M68K-Moto-Syntax, Next: M68K-Float, Prev: M68K-Syntax, Up: M68K-Dependent
  10150. 9.21.3 Motorola Syntax
  10151. ----------------------
  10152. The standard Motorola syntax for this chip differs from the syntax
  10153. already discussed (*note Syntax: M68K-Syntax.). 'as' can accept
  10154. Motorola syntax for operands, even if MIT syntax is used for other
  10155. operands in the same instruction. The two kinds of syntax are fully
  10156. compatible.
  10157. In the following table APC stands for any of the address registers
  10158. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10159. relative to the program counter ('%zpc'), or a suppressed address
  10160. register ('%za0' through '%za7'). The use of SIZE means one of 'w' or
  10161. 'l', and it may always be omitted along with the leading dot. The use
  10162. of SCALE means one of '1', '2', '4', or '8', and it may always be
  10163. omitted along with the leading asterisk.
  10164. The following additional addressing modes are understood:
  10165. "Address Register Indirect"
  10166. '(%a0)' through '(%a7)'
  10167. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10168. also known as '%fp', the Frame Pointer.
  10169. "Address Register Postincrement"
  10170. '(%a0)+' through '(%a7)+'
  10171. "Address Register Predecrement"
  10172. '-(%a0)' through '-(%a7)'
  10173. "Indirect Plus Offset"
  10174. 'NUMBER(%A0)' through 'NUMBER(%A7)', or 'NUMBER(%PC)'.
  10175. The NUMBER may also appear within the parentheses, as in
  10176. '(NUMBER,%A0)'. When used with the PC, the NUMBER may be omitted
  10177. (with an address register, omitting the NUMBER produces Address
  10178. Register Indirect mode).
  10179. "Index"
  10180. 'NUMBER(APC,REGISTER.SIZE*SCALE)'
  10181. The NUMBER may be omitted, or it may appear within the parentheses.
  10182. The APC may be omitted. The REGISTER and the APC may appear in
  10183. either order. If both APC and REGISTER are address registers, and
  10184. the SIZE and SCALE are omitted, then the first register is taken as
  10185. the base register, and the second as the index register.
  10186. "Postindex"
  10187. '([NUMBER,APC],REGISTER.SIZE*SCALE,ONUMBER)'
  10188. The ONUMBER, or the REGISTER, or both, may be omitted. Either the
  10189. NUMBER or the APC may be omitted, but not both.
  10190. "Preindex"
  10191. '([NUMBER,APC,REGISTER.SIZE*SCALE],ONUMBER)'
  10192. The NUMBER, or the APC, or the REGISTER, or any two of them, may be
  10193. omitted. The ONUMBER may be omitted. The REGISTER and the APC may
  10194. appear in either order. If both APC and REGISTER are address
  10195. registers, and the SIZE and SCALE are omitted, then the first
  10196. register is taken as the base register, and the second as the index
  10197. register.
  10198. 
  10199. File: as.info, Node: M68K-Float, Next: M68K-Directives, Prev: M68K-Moto-Syntax, Up: M68K-Dependent
  10200. 9.21.4 Floating Point
  10201. ---------------------
  10202. Packed decimal (P) format floating literals are not supported. Feel
  10203. free to add the code!
  10204. The floating point formats generated by directives are these.
  10205. '.float'
  10206. 'Single' precision floating point constants.
  10207. '.double'
  10208. 'Double' precision floating point constants.
  10209. '.extend'
  10210. '.ldouble'
  10211. 'Extended' precision ('long double') floating point constants.
  10212. 
  10213. File: as.info, Node: M68K-Directives, Next: M68K-opcodes, Prev: M68K-Float, Up: M68K-Dependent
  10214. 9.21.5 680x0 Machine Directives
  10215. -------------------------------
  10216. In order to be compatible with the Sun assembler the 680x0 assembler
  10217. understands the following directives.
  10218. '.data1'
  10219. This directive is identical to a '.data 1' directive.
  10220. '.data2'
  10221. This directive is identical to a '.data 2' directive.
  10222. '.even'
  10223. This directive is a special case of the '.align' directive; it
  10224. aligns the output to an even byte boundary.
  10225. '.skip'
  10226. This directive is identical to a '.space' directive.
  10227. '.arch NAME'
  10228. Select the target architecture and extension features. Valid
  10229. values for NAME are the same as for the '-march' command-line
  10230. option. This directive cannot be specified after any instructions
  10231. have been assembled. If it is given multiple times, or in
  10232. conjunction with the '-march' option, all uses must be for the same
  10233. architecture and extension set.
  10234. '.cpu NAME'
  10235. Select the target cpu. Valid values for NAME are the same as for
  10236. the '-mcpu' command-line option. This directive cannot be
  10237. specified after any instructions have been assembled. If it is
  10238. given multiple times, or in conjunction with the '-mopt' option,
  10239. all uses must be for the same cpu.
  10240. 
  10241. File: as.info, Node: M68K-opcodes, Prev: M68K-Directives, Up: M68K-Dependent
  10242. 9.21.6 Opcodes
  10243. --------------
  10244. * Menu:
  10245. * M68K-Branch:: Branch Improvement
  10246. * M68K-Chars:: Special Characters
  10247. 
  10248. File: as.info, Node: M68K-Branch, Next: M68K-Chars, Up: M68K-opcodes
  10249. 9.21.6.1 Branch Improvement
  10250. ...........................
  10251. Certain pseudo opcodes are permitted for branch instructions. They
  10252. expand to the shortest branch instruction that reach the target.
  10253. Generally these mnemonics are made by substituting 'j' for 'b' at the
  10254. start of a Motorola mnemonic.
  10255. The following table summarizes the pseudo-operations. A '*' flags
  10256. cases that are more fully described after the table:
  10257. Displacement
  10258. +------------------------------------------------------------
  10259. | 68020 68000/10, not PC-relative OK
  10260. Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
  10261. +------------------------------------------------------------
  10262. jbsr |bsrs bsrw bsrl jsr
  10263. jra |bras braw bral jmp
  10264. * jXX |bXXs bXXw bXXl bNXs;jmp
  10265. * dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
  10266. fjXX | N/A fbXXw fbXXl N/A
  10267. XX: condition
  10268. NX: negative of condition XX
  10269. '*'--see full description below
  10270. '**'--this expansion mode is disallowed by '--pcrel'
  10271. 'jbsr'
  10272. 'jra'
  10273. These are the simplest jump pseudo-operations; they always map to
  10274. one particular machine instruction, depending on the displacement
  10275. to the branch target. This instruction will be a byte or word
  10276. branch is that is sufficient. Otherwise, a long branch will be
  10277. emitted if available. If no long branches are available and the
  10278. '--pcrel' option is not given, an absolute long jump will be
  10279. emitted instead. If no long branches are available, the '--pcrel'
  10280. option is given, and a word branch cannot reach the target, an
  10281. error message is generated.
  10282. In addition to standard branch operands, 'as' allows these
  10283. pseudo-operations to have all operands that are allowed for jsr and
  10284. jmp, substituting these instructions if the operand given is not
  10285. valid for a branch instruction.
  10286. 'jXX'
  10287. Here, 'jXX' stands for an entire family of pseudo-operations, where
  10288. XX is a conditional branch or condition-code test. The full list
  10289. of pseudo-ops in this family is:
  10290. jhi jls jcc jcs jne jeq jvc
  10291. jvs jpl jmi jge jlt jgt jle
  10292. Usually, each of these pseudo-operations expands to a single branch
  10293. instruction. However, if a word branch is not sufficient, no long
  10294. branches are available, and the '--pcrel' option is not given, 'as'
  10295. issues a longer code fragment in terms of NX, the opposite
  10296. condition to XX. For example, under these conditions:
  10297. jXX foo
  10298. gives
  10299. bNXs oof
  10300. jmp foo
  10301. oof:
  10302. 'dbXX'
  10303. The full family of pseudo-operations covered here is
  10304. dbhi dbls dbcc dbcs dbne dbeq dbvc
  10305. dbvs dbpl dbmi dbge dblt dbgt dble
  10306. dbf dbra dbt
  10307. Motorola 'dbXX' instructions allow word displacements only. When a
  10308. word displacement is sufficient, each of these pseudo-operations
  10309. expands to the corresponding Motorola instruction. When a word
  10310. displacement is not sufficient and long branches are available,
  10311. when the source reads 'dbXX foo', 'as' emits
  10312. dbXX oo1
  10313. bras oo2
  10314. oo1:bral foo
  10315. oo2:
  10316. If, however, long branches are not available and the '--pcrel'
  10317. option is not given, 'as' emits
  10318. dbXX oo1
  10319. bras oo2
  10320. oo1:jmp foo
  10321. oo2:
  10322. 'fjXX'
  10323. This family includes
  10324. fjne fjeq fjge fjlt fjgt fjle fjf
  10325. fjt fjgl fjgle fjnge fjngl fjngle fjngt
  10326. fjnle fjnlt fjoge fjogl fjogt fjole fjolt
  10327. fjor fjseq fjsf fjsne fjst fjueq fjuge
  10328. fjugt fjule fjult fjun
  10329. Each of these pseudo-operations always expands to a single Motorola
  10330. coprocessor branch instruction, word or long. All Motorola
  10331. coprocessor branch instructions allow both word and long
  10332. displacements.
  10333. 
  10334. File: as.info, Node: M68K-Chars, Prev: M68K-Branch, Up: M68K-opcodes
  10335. 9.21.6.2 Special Characters
  10336. ...........................
  10337. Line comments are introduced by the '|' character appearing anywhere on
  10338. a line, unless the '--bitwise-or' command-line option has been
  10339. specified.
  10340. An asterisk ('*') as the first character on a line marks the start of
  10341. a line comment as well.
  10342. A hash character ('#') as the first character on a line also marks
  10343. the start of a line comment, but in this case it could also be a logical
  10344. line number directive (*note Comments::) or a preprocessor control
  10345. command (*note Preprocessing::). If the hash character appears
  10346. elsewhere on a line it is used to introduce an immediate value. (This
  10347. is for compatibility with Sun's assembler).
  10348. Multiple statements on the same line can appear if they are separated
  10349. by the ';' character.
  10350. 
  10351. File: as.info, Node: M68HC11-Dependent, Next: S12Z-Dependent, Prev: M68K-Dependent, Up: Machine Dependencies
  10352. 9.22 M68HC11 and M68HC12 Dependent Features
  10353. ===========================================
  10354. * Menu:
  10355. * M68HC11-Opts:: M68HC11 and M68HC12 Options
  10356. * M68HC11-Syntax:: Syntax
  10357. * M68HC11-Modifiers:: Symbolic Operand Modifiers
  10358. * M68HC11-Directives:: Assembler Directives
  10359. * M68HC11-Float:: Floating Point
  10360. * M68HC11-opcodes:: Opcodes
  10361. 
  10362. File: as.info, Node: M68HC11-Opts, Next: M68HC11-Syntax, Up: M68HC11-Dependent
  10363. 9.22.1 M68HC11 and M68HC12 Options
  10364. ----------------------------------
  10365. The Motorola 68HC11 and 68HC12 version of 'as' have a few machine
  10366. dependent options.
  10367. '-m68hc11'
  10368. This option switches the assembler into the M68HC11 mode. In this
  10369. mode, the assembler only accepts 68HC11 operands and mnemonics. It
  10370. produces code for the 68HC11.
  10371. '-m68hc12'
  10372. This option switches the assembler into the M68HC12 mode. In this
  10373. mode, the assembler also accepts 68HC12 operands and mnemonics. It
  10374. produces code for the 68HC12. A few 68HC11 instructions are
  10375. replaced by some 68HC12 instructions as recommended by Motorola
  10376. specifications.
  10377. '-m68hcs12'
  10378. This option switches the assembler into the M68HCS12 mode. This
  10379. mode is similar to '-m68hc12' but specifies to assemble for the
  10380. 68HCS12 series. The only difference is on the assembling of the
  10381. 'movb' and 'movw' instruction when a PC-relative operand is used.
  10382. '-mm9s12x'
  10383. This option switches the assembler into the M9S12X mode. This mode
  10384. is similar to '-m68hc12' but specifies to assemble for the S12X
  10385. series which is a superset of the HCS12.
  10386. '-mm9s12xg'
  10387. This option switches the assembler into the XGATE mode for the RISC
  10388. co-processor featured on some S12X-family chips.
  10389. '--xgate-ramoffset'
  10390. This option instructs the linker to offset RAM addresses from S12X
  10391. address space into XGATE address space.
  10392. '-mshort'
  10393. This option controls the ABI and indicates to use a 16-bit integer
  10394. ABI. It has no effect on the assembled instructions. This is the
  10395. default.
  10396. '-mlong'
  10397. This option controls the ABI and indicates to use a 32-bit integer
  10398. ABI.
  10399. '-mshort-double'
  10400. This option controls the ABI and indicates to use a 32-bit float
  10401. ABI. This is the default.
  10402. '-mlong-double'
  10403. This option controls the ABI and indicates to use a 64-bit float
  10404. ABI.
  10405. '--strict-direct-mode'
  10406. You can use the '--strict-direct-mode' option to disable the
  10407. automatic translation of direct page mode addressing into extended
  10408. mode when the instruction does not support direct mode. For
  10409. example, the 'clr' instruction does not support direct page mode
  10410. addressing. When it is used with the direct page mode, 'as' will
  10411. ignore it and generate an absolute addressing. This option
  10412. prevents 'as' from doing this, and the wrong usage of the direct
  10413. page mode will raise an error.
  10414. '--short-branches'
  10415. The '--short-branches' option turns off the translation of relative
  10416. branches into absolute branches when the branch offset is out of
  10417. range. By default 'as' transforms the relative branch ('bsr',
  10418. 'bgt', 'bge', 'beq', 'bne', 'ble', 'blt', 'bhi', 'bcc', 'bls',
  10419. 'bcs', 'bmi', 'bvs', 'bvs', 'bra') into an absolute branch when the
  10420. offset is out of the -128 .. 127 range. In that case, the 'bsr'
  10421. instruction is translated into a 'jsr', the 'bra' instruction is
  10422. translated into a 'jmp' and the conditional branches instructions
  10423. are inverted and followed by a 'jmp'. This option disables these
  10424. translations and 'as' will generate an error if a relative branch
  10425. is out of range. This option does not affect the optimization
  10426. associated to the 'jbra', 'jbsr' and 'jbXX' pseudo opcodes.
  10427. '--force-long-branches'
  10428. The '--force-long-branches' option forces the translation of
  10429. relative branches into absolute branches. This option does not
  10430. affect the optimization associated to the 'jbra', 'jbsr' and 'jbXX'
  10431. pseudo opcodes.
  10432. '--print-insn-syntax'
  10433. You can use the '--print-insn-syntax' option to obtain the syntax
  10434. description of the instruction when an error is detected.
  10435. '--print-opcodes'
  10436. The '--print-opcodes' option prints the list of all the
  10437. instructions with their syntax. The first item of each line
  10438. represents the instruction name and the rest of the line indicates
  10439. the possible operands for that instruction. The list is printed in
  10440. alphabetical order. Once the list is printed 'as' exits.
  10441. '--generate-example'
  10442. The '--generate-example' option is similar to '--print-opcodes' but
  10443. it generates an example for each instruction instead.
  10444. 
  10445. File: as.info, Node: M68HC11-Syntax, Next: M68HC11-Modifiers, Prev: M68HC11-Opts, Up: M68HC11-Dependent
  10446. 9.22.2 Syntax
  10447. -------------
  10448. In the M68HC11 syntax, the instruction name comes first and it may be
  10449. followed by one or several operands (up to three). Operands are
  10450. separated by comma (','). In the normal mode, 'as' will complain if too
  10451. many operands are specified for a given instruction. In the MRI mode
  10452. (turned on with '-M' option), it will treat them as comments. Example:
  10453. inx
  10454. lda #23
  10455. bset 2,x #4
  10456. brclr *bot #8 foo
  10457. The presence of a ';' character or a '!' character anywhere on a line
  10458. indicates the start of a comment that extends to the end of that line.
  10459. A '*' or a '#' character at the start of a line also introduces a
  10460. line comment, but these characters do not work elsewhere on the line.
  10461. If the first character of the line is a '#' then as well as starting a
  10462. comment, the line could also be logical line number directive (*note
  10463. Comments::) or a preprocessor control command (*note Preprocessing::).
  10464. The M68HC11 assembler does not currently support a line separator
  10465. character.
  10466. The following addressing modes are understood for 68HC11 and 68HC12:
  10467. "Immediate"
  10468. '#NUMBER'
  10469. "Address Register"
  10470. 'NUMBER,X', 'NUMBER,Y'
  10471. The NUMBER may be omitted in which case 0 is assumed.
  10472. "Direct Addressing mode"
  10473. '*SYMBOL', or '*DIGITS'
  10474. "Absolute"
  10475. 'SYMBOL', or 'DIGITS'
  10476. The M68HC12 has other more complex addressing modes. All of them are
  10477. supported and they are represented below:
  10478. "Constant Offset Indexed Addressing Mode"
  10479. 'NUMBER,REG'
  10480. The NUMBER may be omitted in which case 0 is assumed. The register
  10481. can be either 'X', 'Y', 'SP' or 'PC'. The assembler will use the
  10482. smaller post-byte definition according to the constant value (5-bit
  10483. constant offset, 9-bit constant offset or 16-bit constant offset).
  10484. If the constant is not known by the assembler it will use the
  10485. 16-bit constant offset post-byte and the value will be resolved at
  10486. link time.
  10487. "Offset Indexed Indirect"
  10488. '[NUMBER,REG]'
  10489. The register can be either 'X', 'Y', 'SP' or 'PC'.
  10490. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  10491. 'NUMBER,-REG' 'NUMBER,+REG' 'NUMBER,REG-' 'NUMBER,REG+'
  10492. The number must be in the range '-8'..'+8' and must not be 0. The
  10493. register can be either 'X', 'Y', 'SP' or 'PC'.
  10494. "Accumulator Offset"
  10495. 'ACC,REG'
  10496. The accumulator register can be either 'A', 'B' or 'D'. The
  10497. register can be either 'X', 'Y', 'SP' or 'PC'.
  10498. "Accumulator D offset indexed-indirect"
  10499. '[D,REG]'
  10500. The register can be either 'X', 'Y', 'SP' or 'PC'.
  10501. For example:
  10502. ldab 1024,sp
  10503. ldd [10,x]
  10504. orab 3,+x
  10505. stab -2,y-
  10506. ldx a,pc
  10507. sty [d,sp]
  10508. 
  10509. File: as.info, Node: M68HC11-Modifiers, Next: M68HC11-Directives, Prev: M68HC11-Syntax, Up: M68HC11-Dependent
  10510. 9.22.3 Symbolic Operand Modifiers
  10511. ---------------------------------
  10512. The assembler supports several modifiers when using symbol addresses in
  10513. 68HC11 and 68HC12 instruction operands. The general syntax is the
  10514. following:
  10515. %modifier(symbol)
  10516. '%addr'
  10517. This modifier indicates to the assembler and linker to use the
  10518. 16-bit physical address corresponding to the symbol. This is
  10519. intended to be used on memory window systems to map a symbol in the
  10520. memory bank window. If the symbol is in a memory expansion part,
  10521. the physical address corresponds to the symbol address within the
  10522. memory bank window. If the symbol is not in a memory expansion
  10523. part, this is the symbol address (using or not using the %addr
  10524. modifier has no effect in that case).
  10525. '%page'
  10526. This modifier indicates to use the memory page number corresponding
  10527. to the symbol. If the symbol is in a memory expansion part, its
  10528. page number is computed by the linker as a number used to map the
  10529. page containing the symbol in the memory bank window. If the
  10530. symbol is not in a memory expansion part, the page number is 0.
  10531. '%hi'
  10532. This modifier indicates to use the 8-bit high part of the physical
  10533. address of the symbol.
  10534. '%lo'
  10535. This modifier indicates to use the 8-bit low part of the physical
  10536. address of the symbol.
  10537. For example a 68HC12 call to a function 'foo_example' stored in
  10538. memory expansion part could be written as follows:
  10539. call %addr(foo_example),%page(foo_example)
  10540. and this is equivalent to
  10541. call foo_example
  10542. And for 68HC11 it could be written as follows:
  10543. ldab #%page(foo_example)
  10544. stab _page_switch
  10545. jsr %addr(foo_example)
  10546. 
  10547. File: as.info, Node: M68HC11-Directives, Next: M68HC11-Float, Prev: M68HC11-Modifiers, Up: M68HC11-Dependent
  10548. 9.22.4 Assembler Directives
  10549. ---------------------------
  10550. The 68HC11 and 68HC12 version of 'as' have the following specific
  10551. assembler directives:
  10552. '.relax'
  10553. The relax directive is used by the 'GNU Compiler' to emit a
  10554. specific relocation to mark a group of instructions for linker
  10555. relaxation. The sequence of instructions within the group must be
  10556. known to the linker so that relaxation can be performed.
  10557. '.mode [mshort|mlong|mshort-double|mlong-double]'
  10558. This directive specifies the ABI. It overrides the '-mshort',
  10559. '-mlong', '-mshort-double' and '-mlong-double' options.
  10560. '.far SYMBOL'
  10561. This directive marks the symbol as a 'far' symbol meaning that it
  10562. uses a 'call/rtc' calling convention as opposed to 'jsr/rts'.
  10563. During a final link, the linker will identify references to the
  10564. 'far' symbol and will verify the proper calling convention.
  10565. '.interrupt SYMBOL'
  10566. This directive marks the symbol as an interrupt entry point. This
  10567. information is then used by the debugger to correctly unwind the
  10568. frame across interrupts.
  10569. '.xrefb SYMBOL'
  10570. This directive is defined for compatibility with the 'Specification
  10571. for Motorola 8 and 16-Bit Assembly Language Input Standard' and is
  10572. ignored.
  10573. 
  10574. File: as.info, Node: M68HC11-Float, Next: M68HC11-opcodes, Prev: M68HC11-Directives, Up: M68HC11-Dependent
  10575. 9.22.5 Floating Point
  10576. ---------------------
  10577. Packed decimal (P) format floating literals are not supported. Feel
  10578. free to add the code!
  10579. The floating point formats generated by directives are these.
  10580. '.float'
  10581. 'Single' precision floating point constants.
  10582. '.double'
  10583. 'Double' precision floating point constants.
  10584. '.extend'
  10585. '.ldouble'
  10586. 'Extended' precision ('long double') floating point constants.
  10587. 
  10588. File: as.info, Node: M68HC11-opcodes, Prev: M68HC11-Float, Up: M68HC11-Dependent
  10589. 9.22.6 Opcodes
  10590. --------------
  10591. * Menu:
  10592. * M68HC11-Branch:: Branch Improvement
  10593. 
  10594. File: as.info, Node: M68HC11-Branch, Up: M68HC11-opcodes
  10595. 9.22.6.1 Branch Improvement
  10596. ...........................
  10597. Certain pseudo opcodes are permitted for branch instructions. They
  10598. expand to the shortest branch instruction that reach the target.
  10599. Generally these mnemonics are made by prepending 'j' to the start of
  10600. Motorola mnemonic. These pseudo opcodes are not affected by the
  10601. '--short-branches' or '--force-long-branches' options.
  10602. The following table summarizes the pseudo-operations.
  10603. Displacement Width
  10604. +-------------------------------------------------------------+
  10605. | Options |
  10606. | --short-branches --force-long-branches |
  10607. +--------------------------+----------------------------------+
  10608. Op |BYTE WORD | BYTE WORD |
  10609. +--------------------------+----------------------------------+
  10610. bsr | bsr <pc-rel> <error> | jsr <abs> |
  10611. bra | bra <pc-rel> <error> | jmp <abs> |
  10612. jbsr | bsr <pc-rel> jsr <abs> | bsr <pc-rel> jsr <abs> |
  10613. jbra | bra <pc-rel> jmp <abs> | bra <pc-rel> jmp <abs> |
  10614. bXX | bXX <pc-rel> <error> | bNX +3; jmp <abs> |
  10615. jbXX | bXX <pc-rel> bNX +3; | bXX <pc-rel> bNX +3; jmp <abs> |
  10616. | jmp <abs> | |
  10617. +--------------------------+----------------------------------+
  10618. XX: condition
  10619. NX: negative of condition XX
  10620. 'jbsr'
  10621. 'jbra'
  10622. These are the simplest jump pseudo-operations; they always map to
  10623. one particular machine instruction, depending on the displacement
  10624. to the branch target.
  10625. 'jbXX'
  10626. Here, 'jbXX' stands for an entire family of pseudo-operations,
  10627. where XX is a conditional branch or condition-code test. The full
  10628. list of pseudo-ops in this family is:
  10629. jbcc jbeq jbge jbgt jbhi jbvs jbpl jblo
  10630. jbcs jbne jblt jble jbls jbvc jbmi
  10631. For the cases of non-PC relative displacements and long
  10632. displacements, 'as' issues a longer code fragment in terms of NX,
  10633. the opposite condition to XX. For example, for the non-PC relative
  10634. case:
  10635. jbXX foo
  10636. gives
  10637. bNXs oof
  10638. jmp foo
  10639. oof:
  10640. 
  10641. File: as.info, Node: S12Z-Dependent, Next: Meta-Dependent, Prev: M68HC11-Dependent, Up: Machine Dependencies
  10642. 9.23 S12Z Dependent Features
  10643. ============================
  10644. The Freescale S12Z version of 'as' has a few machine dependent features.
  10645. * Menu:
  10646. * S12Z-Opts:: S12Z Options
  10647. * S12Z-Syntax:: Syntax
  10648. * S12Z-Directives:: Assembler Directives
  10649. * S12Z-opcodes:: Opcodes
  10650. 
  10651. File: as.info, Node: S12Z-Opts, Next: S12Z-Syntax, Up: S12Z-Dependent
  10652. 9.23.1 S12Z Options
  10653. -------------------
  10654. 
  10655. File: as.info, Node: S12Z-Syntax, Next: S12Z-Directives, Prev: S12Z-Opts, Up: S12Z-Dependent
  10656. 9.23.2 Syntax
  10657. -------------
  10658. In the S12Z syntax, the instruction name comes first and it may be
  10659. followed by one or by several operands. In most cases the maximum
  10660. number of operands is three. Some instructions accept and (in certain
  10661. situations require) a suffix indicating the size of the operand. The
  10662. suffix is separated from the instruction name by a period ('.') and may
  10663. be one of 'b', 'w', 'p' or 'l' indicating 'byte' (a single byte), 'word'
  10664. (2 bytes), 'pointer' (3 bytes) or 'long' (4 bytes) respectively.
  10665. Operands are separated by a comma (','). A comma however does not act
  10666. as a separator if it appears within parentheses ('()') or within square
  10667. brackets ('[]'). 'as' will complain if too many, too few or
  10668. inappropriate operands are specified for a given instruction. The MRI
  10669. mode is not supported for this architecture. Example:
  10670. bset.b 0xA98, #5
  10671. mov.b #6, 0x2409
  10672. ld d0, #4
  10673. mov.l (d0, x), 0x2409
  10674. inc d0
  10675. cmp d0, #12
  10676. blt *-4
  10677. lea x, 0x2409
  10678. st y, (1, x)
  10679. The presence of a ';' character anywhere on a line indicates the
  10680. start of a comment that extends to the end of that line.
  10681. A '*' or a '#' character at the start of a line also introduces a
  10682. line comment, but these characters do not work elsewhere on the line.
  10683. If the first character of the line is a '#' then as well as starting a
  10684. comment, the line could also be logical line number directive (*note
  10685. Comments::) or a preprocessor control command (*note Preprocessing::).
  10686. The S12Z assembler does not currently support a line separator
  10687. character.
  10688. The following addressing modes are understood for the S12Z.
  10689. "Immediate"
  10690. '#NUMBER'
  10691. "Immediate Bit Field"
  10692. '#WIDTH:OFFSET'
  10693. Bit field instructions in the immediate mode require the width and
  10694. offset to be specified. The WIDTH pararmeter specifies the number
  10695. of bits in the field. It should be a number in the range [1,32].
  10696. OFFSET determines the position within the field where the operation
  10697. should start. It should be a number in the range [0,31].
  10698. "Relative"
  10699. '*SYMBOL', or '*[+-]DIGITS'
  10700. Program counter relative addresses have a width of 15 bits. Thus,
  10701. they must be within the range [-32768, 32767].
  10702. "Register"
  10703. 'REG'
  10704. Some instructions accept a register as an operand. In general, REG
  10705. may be a data register ('D0', 'D1' ... 'D7'), the X register or the
  10706. Y register.
  10707. A few instructions accept as an argument the stack pointer register
  10708. ('S'), and/or the program counter ('P').
  10709. Some very special instructions accept arguments which refer to the
  10710. condition code register. For these arguments the syntax is 'CCR',
  10711. 'CCH' or 'CCL' which refer to the complete condition code register,
  10712. the condition code register high byte and the condition code
  10713. register low byte respectively.
  10714. "Absolute Direct"
  10715. 'SYMBOL', or 'DIGITS'
  10716. "Absolute Indirect"
  10717. '[SYMBOL', or 'DIGITS]'
  10718. "Constant Offset Indexed"
  10719. '(NUMBER,REG)'
  10720. REG may be either 'X', 'Y', 'S' or 'P' or one of the data registers
  10721. 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ... 'D5' are
  10722. specified, then the register value is treated as a signed value.
  10723. Otherwise it is treated as unsigned. NUMBER may be any integer in
  10724. the range [-8388608,8388607].
  10725. "Offset Indexed Indirect"
  10726. '[NUMBER,REG]'
  10727. REG may be either 'X', 'Y', 'S' or 'P'. NUMBER may be any integer
  10728. in the range [-8388608,8388607].
  10729. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  10730. '-REG', '+REG', 'REG-' or 'REG+'
  10731. This addressing mode is typically used to access a value at an
  10732. address, and simultaneously to increment/decrement the register
  10733. pointing to that address. Thus REG may be any of the 24 bit
  10734. registers 'X', 'Y', or 'S'. Pre-increment and post-decrement are
  10735. not available for register 'S' (only post-increment and
  10736. pre-decrement are available).
  10737. "Register Offset Direct"
  10738. '(DATA-REG,REG)'
  10739. REG can be either 'X', 'Y', or 'S'. DATA-REG must be one of the
  10740. data registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2'
  10741. ... 'D5' are specified, then the register value is treated as a
  10742. signed value. Otherwise it is treated as unsigned.
  10743. "Register Offset Indirect"
  10744. '[DATA-REG,REG]'
  10745. REG can be either 'X' or 'Y'. DATA-REG must be one of the data
  10746. registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ...
  10747. 'D5' are specified, then the register value is treated as a signed
  10748. value. Otherwise it is treated as unsigned.
  10749. For example:
  10750. trap #197
  10751. bra *+49
  10752. bra .L0
  10753. jmp 0xFE0034
  10754. jmp [0xFD0012]
  10755. inc.b (4,x)
  10756. dec.w [4,y]
  10757. clr.p (-s)
  10758. neg.l (d0, s)
  10759. com.b [d1, x]
  10760. jsr (45, d0)
  10761. psh cch
  10762. 
  10763. File: as.info, Node: S12Z-Directives, Next: S12Z-opcodes, Prev: S12Z-Syntax, Up: S12Z-Dependent
  10764. 9.23.3 Assembler Directives
  10765. ---------------------------
  10766. 
  10767. File: as.info, Node: S12Z-opcodes, Prev: S12Z-Directives, Up: S12Z-Dependent
  10768. 9.23.4 Opcodes
  10769. --------------
  10770. 
  10771. File: as.info, Node: Meta-Dependent, Next: MicroBlaze-Dependent, Prev: S12Z-Dependent, Up: Machine Dependencies
  10772. 9.24 Meta Dependent Features
  10773. ============================
  10774. * Menu:
  10775. * Meta Options:: Options
  10776. * Meta Syntax:: Meta Assembler Syntax
  10777. 
  10778. File: as.info, Node: Meta Options, Next: Meta Syntax, Up: Meta-Dependent
  10779. 9.24.1 Options
  10780. --------------
  10781. The Imagination Technologies Meta architecture is implemented in a
  10782. number of versions, with each new version adding new features such as
  10783. instructions and registers. For precise details of what instructions
  10784. each core supports, please see the chip's technical reference manual.
  10785. The following table lists all available Meta options.
  10786. '-mcpu=metac11'
  10787. Generate code for Meta 1.1.
  10788. '-mcpu=metac12'
  10789. Generate code for Meta 1.2.
  10790. '-mcpu=metac21'
  10791. Generate code for Meta 2.1.
  10792. '-mfpu=metac21'
  10793. Allow code to use FPU hardware of Meta 2.1.
  10794. 
  10795. File: as.info, Node: Meta Syntax, Prev: Meta Options, Up: Meta-Dependent
  10796. 9.24.2 Syntax
  10797. -------------
  10798. * Menu:
  10799. * Meta-Chars:: Special Characters
  10800. * Meta-Regs:: Register Names
  10801. 
  10802. File: as.info, Node: Meta-Chars, Next: Meta-Regs, Up: Meta Syntax
  10803. 9.24.2.1 Special Characters
  10804. ...........................
  10805. '!' is the line comment character.
  10806. You can use ';' instead of a newline to separate statements.
  10807. Since '$' has no special meaning, you may use it in symbol names.
  10808. 
  10809. File: as.info, Node: Meta-Regs, Prev: Meta-Chars, Up: Meta Syntax
  10810. 9.24.2.2 Register Names
  10811. .......................
  10812. Registers can be specified either using their mnemonic names, such as
  10813. 'D0Re0', or using the unit plus register number separated by a '.', such
  10814. as 'D0.0'.
  10815. 
  10816. File: as.info, Node: MicroBlaze-Dependent, Next: MIPS-Dependent, Prev: Meta-Dependent, Up: Machine Dependencies
  10817. 9.25 MicroBlaze Dependent Features
  10818. ==================================
  10819. The Xilinx MicroBlaze processor family includes several variants, all
  10820. using the same core instruction set. This chapter covers features of
  10821. the GNU assembler that are specific to the MicroBlaze architecture. For
  10822. details about the MicroBlaze instruction set, please see the 'MicroBlaze
  10823. Processor Reference Guide (UG081)' available at www.xilinx.com.
  10824. * Menu:
  10825. * MicroBlaze Directives:: Directives for MicroBlaze Processors.
  10826. * MicroBlaze Syntax:: Syntax for the MicroBlaze
  10827. 
  10828. File: as.info, Node: MicroBlaze Directives, Next: MicroBlaze Syntax, Up: MicroBlaze-Dependent
  10829. 9.25.1 Directives
  10830. -----------------
  10831. A number of assembler directives are available for MicroBlaze.
  10832. '.data8 EXPRESSION,...'
  10833. This directive is an alias for '.byte'. Each expression is
  10834. assembled into an eight-bit value.
  10835. '.data16 EXPRESSION,...'
  10836. This directive is an alias for '.hword'. Each expression is
  10837. assembled into an 16-bit value.
  10838. '.data32 EXPRESSION,...'
  10839. This directive is an alias for '.word'. Each expression is
  10840. assembled into an 32-bit value.
  10841. '.ent NAME[,LABEL]'
  10842. This directive is an alias for '.func' denoting the start of
  10843. function NAME at (optional) LABEL.
  10844. '.end NAME[,LABEL]'
  10845. This directive is an alias for '.endfunc' denoting the end of
  10846. function NAME.
  10847. '.gpword LABEL,...'
  10848. This directive is an alias for '.rva'. The resolved address of
  10849. LABEL is stored in the data section.
  10850. '.weakext LABEL'
  10851. Declare that LABEL is a weak external symbol.
  10852. '.rodata'
  10853. Switch to .rodata section. Equivalent to '.section .rodata'
  10854. '.sdata2'
  10855. Switch to .sdata2 section. Equivalent to '.section .sdata2'
  10856. '.sdata'
  10857. Switch to .sdata section. Equivalent to '.section .sdata'
  10858. '.bss'
  10859. Switch to .bss section. Equivalent to '.section .bss'
  10860. '.sbss'
  10861. Switch to .sbss section. Equivalent to '.section .sbss'
  10862. 
  10863. File: as.info, Node: MicroBlaze Syntax, Prev: MicroBlaze Directives, Up: MicroBlaze-Dependent
  10864. 9.25.2 Syntax for the MicroBlaze
  10865. --------------------------------
  10866. * Menu:
  10867. * MicroBlaze-Chars:: Special Characters
  10868. 
  10869. File: as.info, Node: MicroBlaze-Chars, Up: MicroBlaze Syntax
  10870. 9.25.2.1 Special Characters
  10871. ...........................
  10872. The presence of a '#' on a line indicates the start of a comment that
  10873. extends to the end of the current line.
  10874. If a '#' appears as the first character of a line, the whole line is
  10875. treated as a comment, but in this case the line can also be a logical
  10876. line number directive (*note Comments::) or a preprocessor control
  10877. command (*note Preprocessing::).
  10878. The ';' character can be used to separate statements on the same
  10879. line.
  10880. 
  10881. File: as.info, Node: MIPS-Dependent, Next: MMIX-Dependent, Prev: MicroBlaze-Dependent, Up: Machine Dependencies
  10882. 9.26 MIPS Dependent Features
  10883. ============================
  10884. GNU 'as' for MIPS architectures supports several different MIPS
  10885. processors, and MIPS ISA levels I through V, MIPS32, and MIPS64. For
  10886. information about the MIPS instruction set, see 'MIPS RISC
  10887. Architecture', by Kane and Heindrich (Prentice-Hall). For an overview
  10888. of MIPS assembly conventions, see "Appendix D: Assembly Language
  10889. Programming" in the same work.
  10890. * Menu:
  10891. * MIPS Options:: Assembler options
  10892. * MIPS Macros:: High-level assembly macros
  10893. * MIPS Symbol Sizes:: Directives to override the size of symbols
  10894. * MIPS Small Data:: Controlling the use of small data accesses
  10895. * MIPS ISA:: Directives to override the ISA level
  10896. * MIPS assembly options:: Directives to control code generation
  10897. * MIPS autoextend:: Directives for extending MIPS 16 bit instructions
  10898. * MIPS insn:: Directive to mark data as an instruction
  10899. * MIPS FP ABIs:: Marking which FP ABI is in use
  10900. * MIPS NaN Encodings:: Directives to record which NaN encoding is being used
  10901. * MIPS Option Stack:: Directives to save and restore options
  10902. * MIPS ASE Instruction Generation Overrides:: Directives to control
  10903. generation of MIPS ASE instructions
  10904. * MIPS Floating-Point:: Directives to override floating-point options
  10905. * MIPS Syntax:: MIPS specific syntactical considerations
  10906. 
  10907. File: as.info, Node: MIPS Options, Next: MIPS Macros, Up: MIPS-Dependent
  10908. 9.26.1 Assembler options
  10909. ------------------------
  10910. The MIPS configurations of GNU 'as' support these special options:
  10911. '-G NUM'
  10912. Set the "small data" limit to N bytes. The default limit is 8
  10913. bytes. *Note Controlling the use of small data accesses: MIPS
  10914. Small Data.
  10915. '-EB'
  10916. '-EL'
  10917. Any MIPS configuration of 'as' can select big-endian or
  10918. little-endian output at run time (unlike the other GNU development
  10919. tools, which must be configured for one or the other). Use '-EB'
  10920. to select big-endian output, and '-EL' for little-endian.
  10921. '-KPIC'
  10922. Generate SVR4-style PIC. This option tells the assembler to
  10923. generate SVR4-style position-independent macro expansions. It also
  10924. tells the assembler to mark the output file as PIC.
  10925. '-mvxworks-pic'
  10926. Generate VxWorks PIC. This option tells the assembler to generate
  10927. VxWorks-style position-independent macro expansions.
  10928. '-mips1'
  10929. '-mips2'
  10930. '-mips3'
  10931. '-mips4'
  10932. '-mips5'
  10933. '-mips32'
  10934. '-mips32r2'
  10935. '-mips32r3'
  10936. '-mips32r5'
  10937. '-mips32r6'
  10938. '-mips64'
  10939. '-mips64r2'
  10940. '-mips64r3'
  10941. '-mips64r5'
  10942. '-mips64r6'
  10943. Generate code for a particular MIPS Instruction Set Architecture
  10944. level. '-mips1' corresponds to the R2000 and R3000 processors,
  10945. '-mips2' to the R6000 processor, '-mips3' to the R4000 processor,
  10946. and '-mips4' to the R8000 and R10000 processors. '-mips5',
  10947. '-mips32', '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6',
  10948. '-mips64', '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6'
  10949. correspond to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32
  10950. Release 3, MIPS32 Release 5, MIPS32 Release 6, MIPS64, and MIPS64
  10951. Release 2, MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6
  10952. ISA processors, respectively. You can also switch instruction sets
  10953. during the assembly; see *note Directives to override the ISA
  10954. level: MIPS ISA.
  10955. '-mgp32'
  10956. '-mfp32'
  10957. Some macros have different expansions for 32-bit and 64-bit
  10958. registers. The register sizes are normally inferred from the ISA
  10959. and ABI, but these flags force a certain group of registers to be
  10960. treated as 32 bits wide at all times. '-mgp32' controls the size
  10961. of general-purpose registers and '-mfp32' controls the size of
  10962. floating-point registers.
  10963. The '.set gp=32' and '.set fp=32' directives allow the size of
  10964. registers to be changed for parts of an object. The default value
  10965. is restored by '.set gp=default' and '.set fp=default'.
  10966. On some MIPS variants there is a 32-bit mode flag; when this flag
  10967. is set, 64-bit instructions generate a trap. Also, some 32-bit
  10968. OSes only save the 32-bit registers on a context switch, so it is
  10969. essential never to use the 64-bit registers.
  10970. '-mgp64'
  10971. '-mfp64'
  10972. Assume that 64-bit registers are available. This is provided in
  10973. the interests of symmetry with '-mgp32' and '-mfp32'.
  10974. The '.set gp=64' and '.set fp=64' directives allow the size of
  10975. registers to be changed for parts of an object. The default value
  10976. is restored by '.set gp=default' and '.set fp=default'.
  10977. '-mfpxx'
  10978. Make no assumptions about whether 32-bit or 64-bit floating-point
  10979. registers are available. This is provided to support having
  10980. modules compatible with either '-mfp32' or '-mfp64'. This option
  10981. can only be used with MIPS II and above.
  10982. The '.set fp=xx' directive allows a part of an object to be marked
  10983. as not making assumptions about 32-bit or 64-bit FP registers. The
  10984. default value is restored by '.set fp=default'.
  10985. '-modd-spreg'
  10986. '-mno-odd-spreg'
  10987. Enable use of floating-point operations on odd-numbered
  10988. single-precision registers when supported by the ISA. '-mfpxx'
  10989. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'
  10990. '-mips16'
  10991. '-no-mips16'
  10992. Generate code for the MIPS 16 processor. This is equivalent to
  10993. putting '.module mips16' at the start of the assembly file.
  10994. '-no-mips16' turns off this option.
  10995. '-mmips16e2'
  10996. '-mno-mips16e2'
  10997. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  10998. equivalent to putting '.module mips16e2' at the start of the
  10999. assembly file. '-mno-mips16e2' turns off this option.
  11000. '-mmicromips'
  11001. '-mno-micromips'
  11002. Generate code for the microMIPS processor. This is equivalent to
  11003. putting '.module micromips' at the start of the assembly file.
  11004. '-mno-micromips' turns off this option. This is equivalent to
  11005. putting '.module nomicromips' at the start of the assembly file.
  11006. '-msmartmips'
  11007. '-mno-smartmips'
  11008. Enables the SmartMIPS extensions to the MIPS32 instruction set,
  11009. which provides a number of new instructions which target smartcard
  11010. and cryptographic applications. This is equivalent to putting
  11011. '.module smartmips' at the start of the assembly file.
  11012. '-mno-smartmips' turns off this option.
  11013. '-mips3d'
  11014. '-no-mips3d'
  11015. Generate code for the MIPS-3D Application Specific Extension. This
  11016. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  11017. turns off this option.
  11018. '-mdmx'
  11019. '-no-mdmx'
  11020. Generate code for the MDMX Application Specific Extension. This
  11021. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  11022. off this option.
  11023. '-mdsp'
  11024. '-mno-dsp'
  11025. Generate code for the DSP Release 1 Application Specific Extension.
  11026. This tells the assembler to accept DSP Release 1 instructions.
  11027. '-mno-dsp' turns off this option.
  11028. '-mdspr2'
  11029. '-mno-dspr2'
  11030. Generate code for the DSP Release 2 Application Specific Extension.
  11031. This option implies '-mdsp'. This tells the assembler to accept
  11032. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  11033. '-mdspr3'
  11034. '-mno-dspr3'
  11035. Generate code for the DSP Release 3 Application Specific Extension.
  11036. This option implies '-mdsp' and '-mdspr2'. This tells the
  11037. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  11038. off this option.
  11039. '-mmt'
  11040. '-mno-mt'
  11041. Generate code for the MT Application Specific Extension. This
  11042. tells the assembler to accept MT instructions. '-mno-mt' turns off
  11043. this option.
  11044. '-mmcu'
  11045. '-mno-mcu'
  11046. Generate code for the MCU Application Specific Extension. This
  11047. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  11048. off this option.
  11049. '-mmsa'
  11050. '-mno-msa'
  11051. Generate code for the MIPS SIMD Architecture Extension. This tells
  11052. the assembler to accept MSA instructions. '-mno-msa' turns off
  11053. this option.
  11054. '-mxpa'
  11055. '-mno-xpa'
  11056. Generate code for the MIPS eXtended Physical Address (XPA)
  11057. Extension. This tells the assembler to accept XPA instructions.
  11058. '-mno-xpa' turns off this option.
  11059. '-mvirt'
  11060. '-mno-virt'
  11061. Generate code for the Virtualization Application Specific
  11062. Extension. This tells the assembler to accept Virtualization
  11063. instructions. '-mno-virt' turns off this option.
  11064. '-mcrc'
  11065. '-mno-crc'
  11066. Generate code for the cyclic redundancy check (CRC) Application
  11067. Specific Extension. This tells the assembler to accept CRC
  11068. instructions. '-mno-crc' turns off this option.
  11069. '-mginv'
  11070. '-mno-ginv'
  11071. Generate code for the Global INValidate (GINV) Application Specific
  11072. Extension. This tells the assembler to accept GINV instructions.
  11073. '-mno-ginv' turns off this option.
  11074. '-mloongson-mmi'
  11075. '-mno-loongson-mmi'
  11076. Generate code for the Loongson MultiMedia extensions Instructions
  11077. (MMI) Application Specific Extension. This tells the assembler to
  11078. accept MMI instructions. '-mno-loongson-mmi' turns off this
  11079. option.
  11080. '-mloongson-cam'
  11081. '-mno-loongson-cam'
  11082. Generate code for the Loongson Content Address Memory (CAM)
  11083. Application Specific Extension. This tells the assembler to accept
  11084. CAM instructions. '-mno-loongson-cam' turns off this option.
  11085. '-mloongson-ext'
  11086. '-mno-loongson-ext'
  11087. Generate code for the Loongson EXTensions (EXT) instructions
  11088. Application Specific Extension. This tells the assembler to accept
  11089. EXT instructions. '-mno-loongson-ext' turns off this option.
  11090. '-mloongson-ext2'
  11091. '-mno-loongson-ext2'
  11092. Generate code for the Loongson EXTensions R2 (EXT2) instructions
  11093. Application Specific Extension. This tells the assembler to accept
  11094. EXT2 instructions. '-mno-loongson-ext2' turns off this option.
  11095. '-minsn32'
  11096. '-mno-insn32'
  11097. Only use 32-bit instruction encodings when generating code for the
  11098. microMIPS processor. This option inhibits the use of any 16-bit
  11099. instructions. This is equivalent to putting '.set insn32' at the
  11100. start of the assembly file. '-mno-insn32' turns off this option.
  11101. This is equivalent to putting '.set noinsn32' at the start of the
  11102. assembly file. By default '-mno-insn32' is selected, allowing all
  11103. instructions to be used.
  11104. '-mfix7000'
  11105. '-mno-fix7000'
  11106. Cause nops to be inserted if the read of the destination register
  11107. of an mfhi or mflo instruction occurs in the following two
  11108. instructions.
  11109. '-mfix-rm7000'
  11110. '-mno-fix-rm7000'
  11111. Cause nops to be inserted if a dmult or dmultu instruction is
  11112. followed by a load instruction.
  11113. '-mfix-loongson2f-jump'
  11114. '-mno-fix-loongson2f-jump'
  11115. Eliminate instruction fetch from outside 256M region to work around
  11116. the Loongson2F 'jump' instructions. Without it, under extreme
  11117. cases, the kernel may crash. The issue has been solved in latest
  11118. processor batches, but this fix has no side effect to them.
  11119. '-mfix-loongson2f-nop'
  11120. '-mno-fix-loongson2f-nop'
  11121. Replace nops by 'or at,at,zero' to work around the Loongson2F 'nop'
  11122. errata. Without it, under extreme cases, the CPU might deadlock.
  11123. The issue has been solved in later Loongson2F batches, but this fix
  11124. has no side effect to them.
  11125. '-mfix-vr4120'
  11126. '-mno-fix-vr4120'
  11127. Insert nops to work around certain VR4120 errata. This option is
  11128. intended to be used on GCC-generated code: it is not designed to
  11129. catch all problems in hand-written assembler code.
  11130. '-mfix-vr4130'
  11131. '-mno-fix-vr4130'
  11132. Insert nops to work around the VR4130 'mflo'/'mfhi' errata.
  11133. '-mfix-24k'
  11134. '-mno-fix-24k'
  11135. Insert nops to work around the 24K 'eret'/'deret' errata.
  11136. '-mfix-cn63xxp1'
  11137. '-mno-fix-cn63xxp1'
  11138. Replace 'pref' hints 0 - 4 and 6 - 24 with hint 28 to work around
  11139. certain CN63XXP1 errata.
  11140. '-mfix-r5900'
  11141. '-mno-fix-r5900'
  11142. Do not attempt to schedule the preceding instruction into the delay
  11143. slot of a branch instruction placed at the end of a short loop of
  11144. six instructions or fewer and always schedule a 'nop' instruction
  11145. there instead. The short loop bug under certain conditions causes
  11146. loops to execute only once or twice, due to a hardware bug in the
  11147. R5900 chip.
  11148. '-m4010'
  11149. '-no-m4010'
  11150. Generate code for the LSI R4010 chip. This tells the assembler to
  11151. accept the R4010-specific instructions ('addciu', 'ffc', etc.), and
  11152. to not schedule 'nop' instructions around accesses to the 'HI' and
  11153. 'LO' registers. '-no-m4010' turns off this option.
  11154. '-m4650'
  11155. '-no-m4650'
  11156. Generate code for the MIPS R4650 chip. This tells the assembler to
  11157. accept the 'mad' and 'madu' instruction, and to not schedule 'nop'
  11158. instructions around accesses to the 'HI' and 'LO' registers.
  11159. '-no-m4650' turns off this option.
  11160. '-m3900'
  11161. '-no-m3900'
  11162. '-m4100'
  11163. '-no-m4100'
  11164. For each option '-mNNNN', generate code for the MIPS RNNNN chip.
  11165. This tells the assembler to accept instructions specific to that
  11166. chip, and to schedule for that chip's hazards.
  11167. '-march=CPU'
  11168. Generate code for a particular MIPS CPU. It is exactly equivalent
  11169. to '-mCPU', except that there are more value of CPU understood.
  11170. Valid CPU value are:
  11171. 2000, 3000, 3900, 4000, 4010, 4100, 4111, vr4120, vr4130,
  11172. vr4181, 4300, 4400, 4600, 4650, 5000, rm5200, rm5230, rm5231,
  11173. rm5261, rm5721, vr5400, vr5500, 6000, rm7000, 8000, rm9000,
  11174. 10000, 12000, 14000, 16000, 4kc, 4km, 4kp, 4ksc, 4kec, 4kem,
  11175. 4kep, 4ksd, m4k, m4kp, m14k, m14kc, m14ke, m14kec, 24kc,
  11176. 24kf2_1, 24kf, 24kf1_1, 24kec, 24kef2_1, 24kef, 24kef1_1,
  11177. 34kc, 34kf2_1, 34kf, 34kf1_1, 34kn, 74kc, 74kf2_1, 74kf,
  11178. 74kf1_1, 74kf3_2, 1004kc, 1004kf2_1, 1004kf, 1004kf1_1,
  11179. interaptiv, interaptiv-mr2, m5100, m5101, p5600, 5kc, 5kf,
  11180. 20kc, 25kf, sb1, sb1a, i6400, p6600, loongson2e, loongson2f,
  11181. gs464, gs464e, gs264e, octeon, octeon+, octeon2, octeon3, xlr,
  11182. xlp
  11183. For compatibility reasons, 'Nx' and 'Bfx' are accepted as synonyms
  11184. for 'Nf1_1'. These values are deprecated.
  11185. '-mtune=CPU'
  11186. Schedule and tune for a particular MIPS CPU. Valid CPU values are
  11187. identical to '-march=CPU'.
  11188. '-mabi=ABI'
  11189. Record which ABI the source code uses. The recognized arguments
  11190. are: '32', 'n32', 'o64', '64' and 'eabi'.
  11191. '-msym32'
  11192. '-mno-sym32'
  11193. Equivalent to adding '.set sym32' or '.set nosym32' to the
  11194. beginning of the assembler input. *Note MIPS Symbol Sizes::.
  11195. '-nocpp'
  11196. This option is ignored. It is accepted for command-line
  11197. compatibility with other assemblers, which use it to turn off C
  11198. style preprocessing. With GNU 'as', there is no need for '-nocpp',
  11199. because the GNU assembler itself never runs the C preprocessor.
  11200. '-msoft-float'
  11201. '-mhard-float'
  11202. Disable or enable floating-point instructions. Note that by
  11203. default floating-point instructions are always allowed even with
  11204. CPU targets that don't have support for these instructions.
  11205. '-msingle-float'
  11206. '-mdouble-float'
  11207. Disable or enable double-precision floating-point operations. Note
  11208. that by default double-precision floating-point operations are
  11209. always allowed even with CPU targets that don't have support for
  11210. these operations.
  11211. '--construct-floats'
  11212. '--no-construct-floats'
  11213. The '--no-construct-floats' option disables the construction of
  11214. double width floating point constants by loading the two halves of
  11215. the value into the two single width floating point registers that
  11216. make up the double width register. This feature is useful if the
  11217. processor support the FR bit in its status register, and this bit
  11218. is known (by the programmer) to be set. This bit prevents the
  11219. aliasing of the double width register by the single width
  11220. registers.
  11221. By default '--construct-floats' is selected, allowing construction
  11222. of these floating point constants.
  11223. '--relax-branch'
  11224. '--no-relax-branch'
  11225. The '--relax-branch' option enables the relaxation of out-of-range
  11226. branches. Any branches whose target cannot be reached directly are
  11227. converted to a small instruction sequence including an
  11228. inverse-condition branch to the physically next instruction, and a
  11229. jump to the original target is inserted between the two
  11230. instructions. In PIC code the jump will involve further
  11231. instructions for address calculation.
  11232. The 'BC1ANY2F', 'BC1ANY2T', 'BC1ANY4F', 'BC1ANY4T', 'BPOSGE32' and
  11233. 'BPOSGE64' instructions are excluded from relaxation, because they
  11234. have no complementing counterparts. They could be relaxed with the
  11235. use of a longer sequence involving another branch, however this has
  11236. not been implemented and if their target turns out of reach, they
  11237. produce an error even if branch relaxation is enabled.
  11238. Also no MIPS16 branches are ever relaxed.
  11239. By default '--no-relax-branch' is selected, causing any
  11240. out-of-range branches to produce an error.
  11241. '-mignore-branch-isa'
  11242. '-mno-ignore-branch-isa'
  11243. Ignore branch checks for invalid transitions between ISA modes.
  11244. The semantics of branches does not provide for an ISA mode switch,
  11245. so in most cases the ISA mode a branch has been encoded for has to
  11246. be the same as the ISA mode of the branch's target label. If the
  11247. ISA modes do not match, then such a branch, if taken, will cause
  11248. the ISA mode to remain unchanged and instructions that follow will
  11249. be executed in the wrong ISA mode causing the program to misbehave
  11250. or crash.
  11251. In the case of the 'BAL' instruction it may be possible to relax it
  11252. to an equivalent 'JALX' instruction so that the ISA mode is
  11253. switched at the run time as required. For other branches no
  11254. relaxation is possible and therefore GAS has checks implemented
  11255. that verify in branch assembly that the two ISA modes match, and
  11256. report an error otherwise so that the problem with code can be
  11257. diagnosed at the assembly time rather than at the run time.
  11258. However some assembly code, including generated code produced by
  11259. some versions of GCC, may incorrectly include branches to data
  11260. labels, which appear to require a mode switch but are either dead
  11261. or immediately followed by valid instructions encoded for the same
  11262. ISA the branch has been encoded for. While not strictly correct at
  11263. the source level such code will execute as intended, so to help
  11264. with these cases '-mignore-branch-isa' is supported which disables
  11265. ISA mode checks for branches.
  11266. By default '-mno-ignore-branch-isa' is selected, causing any
  11267. invalid branch requiring a transition between ISA modes to produce
  11268. an error.
  11269. '-mnan=ENCODING'
  11270. This option indicates whether the source code uses the IEEE 2008
  11271. NaN encoding ('-mnan=2008') or the original MIPS encoding
  11272. ('-mnan=legacy'). It is equivalent to adding a '.nan' directive to
  11273. the beginning of the source file. *Note MIPS NaN Encodings::.
  11274. '-mnan=legacy' is the default if no '-mnan' option or '.nan'
  11275. directive is used.
  11276. '--trap'
  11277. '--no-break'
  11278. 'as' automatically macro expands certain division and
  11279. multiplication instructions to check for overflow and division by
  11280. zero. This option causes 'as' to generate code to take a trap
  11281. exception rather than a break exception when an error is detected.
  11282. The trap instructions are only supported at Instruction Set
  11283. Architecture level 2 and higher.
  11284. '--break'
  11285. '--no-trap'
  11286. Generate code to take a break exception rather than a trap
  11287. exception when an error is detected. This is the default.
  11288. '-mpdr'
  11289. '-mno-pdr'
  11290. Control generation of '.pdr' sections. Off by default on IRIX, on
  11291. elsewhere.
  11292. '-mshared'
  11293. '-mno-shared'
  11294. When generating code using the Unix calling conventions (selected
  11295. by '-KPIC' or '-mcall_shared'), gas will normally generate code
  11296. which can go into a shared library. The '-mno-shared' option tells
  11297. gas to generate code which uses the calling convention, but can not
  11298. go into a shared library. The resulting code is slightly more
  11299. efficient. This option only affects the handling of the '.cpload'
  11300. and '.cpsetup' pseudo-ops.
  11301. 
  11302. File: as.info, Node: MIPS Macros, Next: MIPS Symbol Sizes, Prev: MIPS Options, Up: MIPS-Dependent
  11303. 9.26.2 High-level assembly macros
  11304. ---------------------------------
  11305. MIPS assemblers have traditionally provided a wider range of
  11306. instructions than the MIPS architecture itself. These extra
  11307. instructions are usually referred to as "macro" instructions (1).
  11308. Some MIPS macro instructions extend an underlying architectural
  11309. instruction while others are entirely new. An example of the former
  11310. type is 'and', which allows the third operand to be either a register or
  11311. an arbitrary immediate value. Examples of the latter type include
  11312. 'bgt', which branches to the third operand when the first operand is
  11313. greater than the second operand, and 'ulh', which implements an
  11314. unaligned 2-byte load.
  11315. One of the most common extensions provided by macros is to expand
  11316. memory offsets to the full address range (32 or 64 bits) and to allow
  11317. symbolic offsets such as 'my_data + 4' to be used in place of integer
  11318. constants. For example, the architectural instruction 'lbu' allows only
  11319. a signed 16-bit offset, whereas the macro 'lbu' allows code such as 'lbu
  11320. $4,array+32769($5)'. The implementation of these symbolic offsets
  11321. depends on several factors, such as whether the assembler is generating
  11322. SVR4-style PIC (selected by '-KPIC', *note Assembler options: MIPS
  11323. Options.), the size of symbols (*note Directives to override the size of
  11324. symbols: MIPS Symbol Sizes.), and the small data limit (*note
  11325. Controlling the use of small data accesses: MIPS Small Data.).
  11326. Sometimes it is undesirable to have one assembly instruction expand
  11327. to several machine instructions. The directive '.set nomacro' tells the
  11328. assembler to warn when this happens. '.set macro' restores the default
  11329. behavior.
  11330. Some macro instructions need a temporary register to store
  11331. intermediate results. This register is usually '$1', also known as
  11332. '$at', but it can be changed to any core register REG using '.set
  11333. at=REG'. Note that '$at' always refers to '$1' regardless of which
  11334. register is being used as the temporary register.
  11335. Implicit uses of the temporary register in macros could interfere
  11336. with explicit uses in the assembly code. The assembler therefore warns
  11337. whenever it sees an explicit use of the temporary register. The
  11338. directive '.set noat' silences this warning while '.set at' restores the
  11339. default behavior. It is safe to use '.set noat' while '.set nomacro' is
  11340. in effect since single-instruction macros never need a temporary
  11341. register.
  11342. Note that while the GNU assembler provides these macros for
  11343. compatibility, it does not make any attempt to optimize them with the
  11344. surrounding code.
  11345. ---------- Footnotes ----------
  11346. (1) The term "macro" is somewhat overloaded here, since these macros
  11347. have no relation to those defined by '.macro', *note '.macro': Macro.
  11348. 
  11349. File: as.info, Node: MIPS Symbol Sizes, Next: MIPS Small Data, Prev: MIPS Macros, Up: MIPS-Dependent
  11350. 9.26.3 Directives to override the size of symbols
  11351. -------------------------------------------------
  11352. The n64 ABI allows symbols to have any 64-bit value. Although this
  11353. provides a great deal of flexibility, it means that some macros have
  11354. much longer expansions than their 32-bit counterparts. For example, the
  11355. non-PIC expansion of 'dla $4,sym' is usually:
  11356. lui $4,%highest(sym)
  11357. lui $1,%hi(sym)
  11358. daddiu $4,$4,%higher(sym)
  11359. daddiu $1,$1,%lo(sym)
  11360. dsll32 $4,$4,0
  11361. daddu $4,$4,$1
  11362. whereas the 32-bit expansion is simply:
  11363. lui $4,%hi(sym)
  11364. daddiu $4,$4,%lo(sym)
  11365. n64 code is sometimes constructed in such a way that all symbolic
  11366. constants are known to have 32-bit values, and in such cases, it's
  11367. preferable to use the 32-bit expansion instead of the 64-bit expansion.
  11368. You can use the '.set sym32' directive to tell the assembler that,
  11369. from this point on, all expressions of the form 'SYMBOL' or 'SYMBOL +
  11370. OFFSET' have 32-bit values. For example:
  11371. .set sym32
  11372. dla $4,sym
  11373. lw $4,sym+16
  11374. sw $4,sym+0x8000($4)
  11375. will cause the assembler to treat 'sym', 'sym+16' and 'sym+0x8000' as
  11376. 32-bit values. The handling of non-symbolic addresses is not affected.
  11377. The directive '.set nosym32' ends a '.set sym32' block and reverts to
  11378. the normal behavior. It is also possible to change the symbol size
  11379. using the command-line options '-msym32' and '-mno-sym32'.
  11380. These options and directives are always accepted, but at present,
  11381. they have no effect for anything other than n64.
  11382. 
  11383. File: as.info, Node: MIPS Small Data, Next: MIPS ISA, Prev: MIPS Symbol Sizes, Up: MIPS-Dependent
  11384. 9.26.4 Controlling the use of small data accesses
  11385. -------------------------------------------------
  11386. It often takes several instructions to load the address of a symbol.
  11387. For example, when 'addr' is a 32-bit symbol, the non-PIC expansion of
  11388. 'dla $4,addr' is usually:
  11389. lui $4,%hi(addr)
  11390. daddiu $4,$4,%lo(addr)
  11391. The sequence is much longer when 'addr' is a 64-bit symbol. *Note
  11392. Directives to override the size of symbols: MIPS Symbol Sizes.
  11393. In order to cut down on this overhead, most embedded MIPS systems set
  11394. aside a 64-kilobyte "small data" area and guarantee that all data of
  11395. size N and smaller will be placed in that area. The limit N is passed
  11396. to both the assembler and the linker using the command-line option '-G
  11397. N', *note Assembler options: MIPS Options. Note that the same value of
  11398. N must be used when linking and when assembling all input files to the
  11399. link; any inconsistency could cause a relocation overflow error.
  11400. The size of an object in the '.bss' section is set by the '.comm' or
  11401. '.lcomm' directive that defines it. The size of an external object may
  11402. be set with the '.extern' directive. For example, '.extern sym,4'
  11403. declares that the object at 'sym' is 4 bytes in length, while leaving
  11404. 'sym' otherwise undefined.
  11405. When no '-G' option is given, the default limit is 8 bytes. The
  11406. option '-G 0' prevents any data from being automatically classified as
  11407. small.
  11408. It is also possible to mark specific objects as small by putting them
  11409. in the special sections '.sdata' and '.sbss', which are "small"
  11410. counterparts of '.data' and '.bss' respectively. The toolchain will
  11411. treat such data as small regardless of the '-G' setting.
  11412. On startup, systems that support a small data area are expected to
  11413. initialize register '$28', also known as '$gp', in such a way that small
  11414. data can be accessed using a 16-bit offset from that register. For
  11415. example, when 'addr' is small data, the 'dla $4,addr' instruction above
  11416. is equivalent to:
  11417. daddiu $4,$28,%gp_rel(addr)
  11418. Small data is not supported for SVR4-style PIC.
  11419. 
  11420. File: as.info, Node: MIPS ISA, Next: MIPS assembly options, Prev: MIPS Small Data, Up: MIPS-Dependent
  11421. 9.26.5 Directives to override the ISA level
  11422. -------------------------------------------
  11423. GNU 'as' supports an additional directive to change the MIPS Instruction
  11424. Set Architecture level on the fly: '.set mipsN'. N should be a number
  11425. from 0 to 5, or 32, 32r2, 32r3, 32r5, 32r6, 64, 64r2, 64r3, 64r5 or
  11426. 64r6. The values other than 0 make the assembler accept instructions
  11427. for the corresponding ISA level, from that point on in the assembly.
  11428. '.set mipsN' affects not only which instructions are permitted, but also
  11429. how certain macros are expanded. '.set mips0' restores the ISA level to
  11430. its original level: either the level you selected with command-line
  11431. options, or the default for your configuration. You can use this
  11432. feature to permit specific MIPS III instructions while assembling in 32
  11433. bit mode. Use this directive with care!
  11434. The '.set arch=CPU' directive provides even finer control. It
  11435. changes the effective CPU target and allows the assembler to use
  11436. instructions specific to a particular CPU. All CPUs supported by the
  11437. '-march' command-line option are also selectable by this directive. The
  11438. original value is restored by '.set arch=default'.
  11439. The directive '.set mips16' puts the assembler into MIPS 16 mode, in
  11440. which it will assemble instructions for the MIPS 16 processor. Use
  11441. '.set nomips16' to return to normal 32 bit mode.
  11442. Traditional MIPS assemblers do not support this directive.
  11443. The directive '.set micromips' puts the assembler into microMIPS
  11444. mode, in which it will assemble instructions for the microMIPS
  11445. processor. Use '.set nomicromips' to return to normal 32 bit mode.
  11446. Traditional MIPS assemblers do not support this directive.
  11447. 
  11448. File: as.info, Node: MIPS assembly options, Next: MIPS autoextend, Prev: MIPS ISA, Up: MIPS-Dependent
  11449. 9.26.6 Directives to control code generation
  11450. --------------------------------------------
  11451. The '.module' directive allows command-line options to be set directly
  11452. from assembly. The format of the directive matches the '.set' directive
  11453. but only those options which are relevant to a whole module are
  11454. supported. The effect of a '.module' directive is the same as the
  11455. corresponding command-line option. Where '.set' directives support
  11456. returning to a default then the '.module' directives do not as they
  11457. define the defaults.
  11458. These module-level directives must appear first in assembly.
  11459. Traditional MIPS assemblers do not support this directive.
  11460. The directive '.set insn32' makes the assembler only use 32-bit
  11461. instruction encodings when generating code for the microMIPS processor.
  11462. This directive inhibits the use of any 16-bit instructions from that
  11463. point on in the assembly. The '.set noinsn32' directive allows 16-bit
  11464. instructions to be accepted.
  11465. Traditional MIPS assemblers do not support this directive.
  11466. 
  11467. File: as.info, Node: MIPS autoextend, Next: MIPS insn, Prev: MIPS assembly options, Up: MIPS-Dependent
  11468. 9.26.7 Directives for extending MIPS 16 bit instructions
  11469. --------------------------------------------------------
  11470. By default, MIPS 16 instructions are automatically extended to 32 bits
  11471. when necessary. The directive '.set noautoextend' will turn this off.
  11472. When '.set noautoextend' is in effect, any 32 bit instruction must be
  11473. explicitly extended with the '.e' modifier (e.g., 'li.e $4,1000'). The
  11474. directive '.set autoextend' may be used to once again automatically
  11475. extend instructions when necessary.
  11476. This directive is only meaningful when in MIPS 16 mode. Traditional
  11477. MIPS assemblers do not support this directive.
  11478. 
  11479. File: as.info, Node: MIPS insn, Next: MIPS FP ABIs, Prev: MIPS autoextend, Up: MIPS-Dependent
  11480. 9.26.8 Directive to mark data as an instruction
  11481. -----------------------------------------------
  11482. The '.insn' directive tells 'as' that the following data is actually
  11483. instructions. This makes a difference in MIPS 16 and microMIPS modes:
  11484. when loading the address of a label which precedes instructions, 'as'
  11485. automatically adds 1 to the value, so that jumping to the loaded address
  11486. will do the right thing.
  11487. The '.global' and '.globl' directives supported by 'as' will by
  11488. default mark the symbol as pointing to a region of data not code. This
  11489. means that, for example, any instructions following such a symbol will
  11490. not be disassembled by 'objdump' as it will regard them as data. To
  11491. change this behavior an optional section name can be placed after the
  11492. symbol name in the '.global' directive. If this section exists and is
  11493. known to be a code section, then the symbol will be marked as pointing
  11494. at code not data. Ie the syntax for the directive is:
  11495. '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
  11496. Here is a short example:
  11497. .global foo .text, bar, baz .data
  11498. foo:
  11499. nop
  11500. bar:
  11501. .word 0x0
  11502. baz:
  11503. .word 0x1
  11504. 
  11505. File: as.info, Node: MIPS FP ABIs, Next: MIPS NaN Encodings, Prev: MIPS insn, Up: MIPS-Dependent
  11506. 9.26.9 Directives to control the FP ABI
  11507. ---------------------------------------
  11508. * Menu:
  11509. * MIPS FP ABI History:: History of FP ABIs
  11510. * MIPS FP ABI Variants:: Supported FP ABIs
  11511. * MIPS FP ABI Selection:: Automatic selection of FP ABI
  11512. * MIPS FP ABI Compatibility:: Linking different FP ABI variants
  11513. 
  11514. File: as.info, Node: MIPS FP ABI History, Next: MIPS FP ABI Variants, Up: MIPS FP ABIs
  11515. 9.26.9.1 History of FP ABIs
  11516. ...........................
  11517. The MIPS ABIs support a variety of different floating-point extensions
  11518. where calling-convention and register sizes vary for floating-point
  11519. data. The extensions exist to support a wide variety of optional
  11520. architecture features. The resulting ABI variants are generally
  11521. incompatible with each other and must be tracked carefully.
  11522. Traditionally the use of an explicit '.gnu_attribute 4, N' directive
  11523. is used to indicate which ABI is in use by a specific module. It was
  11524. then left to the user to ensure that command-line options and the
  11525. selected ABI were compatible with some potential for inconsistencies.
  11526. 
  11527. File: as.info, Node: MIPS FP ABI Variants, Next: MIPS FP ABI Selection, Prev: MIPS FP ABI History, Up: MIPS FP ABIs
  11528. 9.26.9.2 Supported FP ABIs
  11529. ..........................
  11530. The supported floating-point ABI variants are:
  11531. '0 - No floating-point'
  11532. This variant is used to indicate that floating-point is not used
  11533. within the module at all and therefore has no impact on the ABI.
  11534. This is the default.
  11535. '1 - Double-precision'
  11536. This variant indicates that double-precision support is used. For
  11537. 64-bit ABIs this means that 64-bit wide floating-point registers
  11538. are required. For 32-bit ABIs this means that 32-bit wide
  11539. floating-point registers are required and double-precision
  11540. operations use pairs of registers.
  11541. '2 - Single-precision'
  11542. This variant indicates that single-precision support is used.
  11543. Double precision operations will be supported via soft-float
  11544. routines.
  11545. '3 - Soft-float'
  11546. This variant indicates that although floating-point support is used
  11547. all operations are emulated in software. This means the ABI is
  11548. modified to pass all floating-point data in general-purpose
  11549. registers.
  11550. '4 - Deprecated'
  11551. This variant existed as an initial attempt at supporting 64-bit
  11552. wide floating-point registers for O32 ABI on a MIPS32r2 CPU. This
  11553. has been superseded by 5, 6 and 7.
  11554. '5 - Double-precision 32-bit CPU, 32-bit or 64-bit FPU'
  11555. This variant is used by 32-bit ABIs to indicate that the
  11556. floating-point code in the module has been designed to operate
  11557. correctly with either 32-bit wide or 64-bit wide floating-point
  11558. registers. Double-precision support is used. Only O32 currently
  11559. supports this variant and requires a minimum architecture of MIPS
  11560. II.
  11561. '6 - Double-precision 32-bit FPU, 64-bit FPU'
  11562. This variant is used by 32-bit ABIs to indicate that the
  11563. floating-point code in the module requires 64-bit wide
  11564. floating-point registers. Double-precision support is used. Only
  11565. O32 currently supports this variant and requires a minimum
  11566. architecture of MIPS32r2.
  11567. '7 - Double-precision compat 32-bit FPU, 64-bit FPU'
  11568. This variant is used by 32-bit ABIs to indicate that the
  11569. floating-point code in the module requires 64-bit wide
  11570. floating-point registers. Double-precision support is used. This
  11571. differs from the previous ABI as it restricts use of odd-numbered
  11572. single-precision registers. Only O32 currently supports this
  11573. variant and requires a minimum architecture of MIPS32r2.
  11574. 
  11575. File: as.info, Node: MIPS FP ABI Selection, Next: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Variants, Up: MIPS FP ABIs
  11576. 9.26.9.3 Automatic selection of FP ABI
  11577. ......................................
  11578. In order to simplify and add safety to the process of selecting the
  11579. correct floating-point ABI, the assembler will automatically infer the
  11580. correct '.gnu_attribute 4, N' directive based on command-line options
  11581. and '.module' overrides. Where an explicit '.gnu_attribute 4, N'
  11582. directive has been seen then a warning will be raised if it does not
  11583. match an inferred setting.
  11584. The floating-point ABI is inferred as follows. If '-msoft-float' has
  11585. been used the module will be marked as soft-float. If '-msingle-float'
  11586. has been used then the module will be marked as single-precision. The
  11587. remaining ABIs are then selected based on the FP register width.
  11588. Double-precision is selected if the width of GP and FP registers match
  11589. and the special double-precision variants for 32-bit ABIs are then
  11590. selected depending on '-mfpxx', '-mfp64' and '-mno-odd-spreg'.
  11591. 
  11592. File: as.info, Node: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Selection, Up: MIPS FP ABIs
  11593. 9.26.9.4 Linking different FP ABI variants
  11594. ..........................................
  11595. Modules using the default FP ABI (no floating-point) can be linked with
  11596. any other (singular) FP ABI variant.
  11597. Special compatibility support exists for O32 with the four
  11598. double-precision FP ABI variants. The '-mfpxx' FP ABI is specifically
  11599. designed to be compatible with the standard double-precision ABI and the
  11600. '-mfp64' FP ABIs. This makes it desirable for O32 modules to be built
  11601. as '-mfpxx' to ensure the maximum compatibility with other modules
  11602. produced for more specific needs. The only FP ABIs which cannot be
  11603. linked together are the standard double-precision ABI and the full
  11604. '-mfp64' ABI with '-modd-spreg'.
  11605. 
  11606. File: as.info, Node: MIPS NaN Encodings, Next: MIPS Option Stack, Prev: MIPS FP ABIs, Up: MIPS-Dependent
  11607. 9.26.10 Directives to record which NaN encoding is being used
  11608. -------------------------------------------------------------
  11609. The IEEE 754 floating-point standard defines two types of not-a-number
  11610. (NaN) data: "signalling" NaNs and "quiet" NaNs. The original version of
  11611. the standard did not specify how these two types should be
  11612. distinguished. Most implementations followed the i387 model, in which
  11613. the first bit of the significand is set for quiet NaNs and clear for
  11614. signalling NaNs. However, the original MIPS implementation assigned the
  11615. opposite meaning to the bit, so that it was set for signalling NaNs and
  11616. clear for quiet NaNs.
  11617. The 2008 revision of the standard formally suggested the i387 choice
  11618. and as from Sep 2012 the current release of the MIPS architecture
  11619. therefore optionally supports that form. Code that uses one NaN
  11620. encoding would usually be incompatible with code that uses the other NaN
  11621. encoding, so MIPS ELF objects have a flag ('EF_MIPS_NAN2008') to record
  11622. which encoding is being used.
  11623. Assembly files can use the '.nan' directive to select between the two
  11624. encodings. '.nan 2008' says that the assembly file uses the IEEE
  11625. 754-2008 encoding while '.nan legacy' says that the file uses the
  11626. original MIPS encoding. If several '.nan' directives are given, the
  11627. final setting is the one that is used.
  11628. The command-line options '-mnan=legacy' and '-mnan=2008' can be used
  11629. instead of '.nan legacy' and '.nan 2008' respectively. However, any
  11630. '.nan' directive overrides the command-line setting.
  11631. '.nan legacy' is the default if no '.nan' directive or '-mnan' option
  11632. is given.
  11633. Note that GNU 'as' does not produce NaNs itself and therefore these
  11634. directives do not affect code generation. They simply control the
  11635. setting of the 'EF_MIPS_NAN2008' flag.
  11636. Traditional MIPS assemblers do not support these directives.
  11637. 
  11638. File: as.info, Node: MIPS Option Stack, Next: MIPS ASE Instruction Generation Overrides, Prev: MIPS NaN Encodings, Up: MIPS-Dependent
  11639. 9.26.11 Directives to save and restore options
  11640. ----------------------------------------------
  11641. The directives '.set push' and '.set pop' may be used to save and
  11642. restore the current settings for all the options which are controlled by
  11643. '.set'. The '.set push' directive saves the current settings on a
  11644. stack. The '.set pop' directive pops the stack and restores the
  11645. settings.
  11646. These directives can be useful inside an macro which must change an
  11647. option such as the ISA level or instruction reordering but does not want
  11648. to change the state of the code which invoked the macro.
  11649. Traditional MIPS assemblers do not support these directives.
  11650. 
  11651. File: as.info, Node: MIPS ASE Instruction Generation Overrides, Next: MIPS Floating-Point, Prev: MIPS Option Stack, Up: MIPS-Dependent
  11652. 9.26.12 Directives to control generation of MIPS ASE instructions
  11653. -----------------------------------------------------------------
  11654. The directive '.set mips3d' makes the assembler accept instructions from
  11655. the MIPS-3D Application Specific Extension from that point on in the
  11656. assembly. The '.set nomips3d' directive prevents MIPS-3D instructions
  11657. from being accepted.
  11658. The directive '.set smartmips' makes the assembler accept
  11659. instructions from the SmartMIPS Application Specific Extension to the
  11660. MIPS32 ISA from that point on in the assembly. The '.set nosmartmips'
  11661. directive prevents SmartMIPS instructions from being accepted.
  11662. The directive '.set mdmx' makes the assembler accept instructions
  11663. from the MDMX Application Specific Extension from that point on in the
  11664. assembly. The '.set nomdmx' directive prevents MDMX instructions from
  11665. being accepted.
  11666. The directive '.set dsp' makes the assembler accept instructions from
  11667. the DSP Release 1 Application Specific Extension from that point on in
  11668. the assembly. The '.set nodsp' directive prevents DSP Release 1
  11669. instructions from being accepted.
  11670. The directive '.set dspr2' makes the assembler accept instructions
  11671. from the DSP Release 2 Application Specific Extension from that point on
  11672. in the assembly. This directive implies '.set dsp'. The '.set nodspr2'
  11673. directive prevents DSP Release 2 instructions from being accepted.
  11674. The directive '.set dspr3' makes the assembler accept instructions
  11675. from the DSP Release 3 Application Specific Extension from that point on
  11676. in the assembly. This directive implies '.set dsp' and '.set dspr2'.
  11677. The '.set nodspr3' directive prevents DSP Release 3 instructions from
  11678. being accepted.
  11679. The directive '.set mt' makes the assembler accept instructions from
  11680. the MT Application Specific Extension from that point on in the
  11681. assembly. The '.set nomt' directive prevents MT instructions from being
  11682. accepted.
  11683. The directive '.set mcu' makes the assembler accept instructions from
  11684. the MCU Application Specific Extension from that point on in the
  11685. assembly. The '.set nomcu' directive prevents MCU instructions from
  11686. being accepted.
  11687. The directive '.set msa' makes the assembler accept instructions from
  11688. the MIPS SIMD Architecture Extension from that point on in the assembly.
  11689. The '.set nomsa' directive prevents MSA instructions from being
  11690. accepted.
  11691. The directive '.set virt' makes the assembler accept instructions
  11692. from the Virtualization Application Specific Extension from that point
  11693. on in the assembly. The '.set novirt' directive prevents Virtualization
  11694. instructions from being accepted.
  11695. The directive '.set xpa' makes the assembler accept instructions from
  11696. the XPA Extension from that point on in the assembly. The '.set noxpa'
  11697. directive prevents XPA instructions from being accepted.
  11698. The directive '.set mips16e2' makes the assembler accept instructions
  11699. from the MIPS16e2 Application Specific Extension from that point on in
  11700. the assembly, whenever in MIPS16 mode. The '.set nomips16e2' directive
  11701. prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.
  11702. Neither directive affects the state of MIPS16 mode being active itself
  11703. which has separate controls.
  11704. The directive '.set crc' makes the assembler accept instructions from
  11705. the CRC Extension from that point on in the assembly. The '.set nocrc'
  11706. directive prevents CRC instructions from being accepted.
  11707. The directive '.set ginv' makes the assembler accept instructions
  11708. from the GINV Extension from that point on in the assembly. The '.set
  11709. noginv' directive prevents GINV instructions from being accepted.
  11710. The directive '.set loongson-mmi' makes the assembler accept
  11711. instructions from the MMI Extension from that point on in the assembly.
  11712. The '.set noloongson-mmi' directive prevents MMI instructions from being
  11713. accepted.
  11714. The directive '.set loongson-cam' makes the assembler accept
  11715. instructions from the Loongson CAM from that point on in the assembly.
  11716. The '.set noloongson-cam' directive prevents Loongson CAM instructions
  11717. from being accepted.
  11718. The directive '.set loongson-ext' makes the assembler accept
  11719. instructions from the Loongson EXT from that point on in the assembly.
  11720. The '.set noloongson-ext' directive prevents Loongson EXT instructions
  11721. from being accepted.
  11722. The directive '.set loongson-ext2' makes the assembler accept
  11723. instructions from the Loongson EXT2 from that point on in the assembly.
  11724. This directive implies '.set loognson-ext'. The '.set noloongson-ext2'
  11725. directive prevents Loongson EXT2 instructions from being accepted.
  11726. Traditional MIPS assemblers do not support these directives.
  11727. 
  11728. File: as.info, Node: MIPS Floating-Point, Next: MIPS Syntax, Prev: MIPS ASE Instruction Generation Overrides, Up: MIPS-Dependent
  11729. 9.26.13 Directives to override floating-point options
  11730. -----------------------------------------------------
  11731. The directives '.set softfloat' and '.set hardfloat' provide finer
  11732. control of disabling and enabling float-point instructions. These
  11733. directives always override the default (that hard-float instructions are
  11734. accepted) or the command-line options ('-msoft-float' and
  11735. '-mhard-float').
  11736. The directives '.set singlefloat' and '.set doublefloat' provide
  11737. finer control of disabling and enabling double-precision float-point
  11738. operations. These directives always override the default (that
  11739. double-precision operations are accepted) or the command-line options
  11740. ('-msingle-float' and '-mdouble-float').
  11741. Traditional MIPS assemblers do not support these directives.
  11742. 
  11743. File: as.info, Node: MIPS Syntax, Prev: MIPS Floating-Point, Up: MIPS-Dependent
  11744. 9.26.14 Syntactical considerations for the MIPS assembler
  11745. ---------------------------------------------------------
  11746. * Menu:
  11747. * MIPS-Chars:: Special Characters
  11748. 
  11749. File: as.info, Node: MIPS-Chars, Up: MIPS Syntax
  11750. 9.26.14.1 Special Characters
  11751. ............................
  11752. The presence of a '#' on a line indicates the start of a comment that
  11753. extends to the end of the current line.
  11754. If a '#' appears as the first character of a line, the whole line is
  11755. treated as a comment, but in this case the line can also be a logical
  11756. line number directive (*note Comments::) or a preprocessor control
  11757. command (*note Preprocessing::).
  11758. The ';' character can be used to separate statements on the same
  11759. line.
  11760. 
  11761. File: as.info, Node: MMIX-Dependent, Next: MSP430-Dependent, Prev: MIPS-Dependent, Up: Machine Dependencies
  11762. 9.27 MMIX Dependent Features
  11763. ============================
  11764. * Menu:
  11765. * MMIX-Opts:: Command-line Options
  11766. * MMIX-Expand:: Instruction expansion
  11767. * MMIX-Syntax:: Syntax
  11768. * MMIX-mmixal:: Differences to 'mmixal' syntax and semantics
  11769. 
  11770. File: as.info, Node: MMIX-Opts, Next: MMIX-Expand, Up: MMIX-Dependent
  11771. 9.27.1 Command-line Options
  11772. ---------------------------
  11773. The MMIX version of 'as' has some machine-dependent options.
  11774. When '--fixed-special-register-names' is specified, only the register
  11775. names specified in *note MMIX-Regs:: are recognized in the instructions
  11776. 'PUT' and 'GET'.
  11777. You can use the '--globalize-symbols' to make all symbols global.
  11778. This option is useful when splitting up a 'mmixal' program into several
  11779. files.
  11780. The '--gnu-syntax' turns off most syntax compatibility with 'mmixal'.
  11781. Its usability is currently doubtful.
  11782. The '--relax' option is not fully supported, but will eventually make
  11783. the object file prepared for linker relaxation.
  11784. If you want to avoid inadvertently calling a predefined symbol and
  11785. would rather get an error, for example when using 'as' with a compiler
  11786. or other machine-generated code, specify '--no-predefined-syms'. This
  11787. turns off built-in predefined definitions of all such symbols, including
  11788. rounding-mode symbols, segment symbols, 'BIT' symbols, and 'TRAP'
  11789. symbols used in 'mmix' "system calls". It also turns off predefined
  11790. special-register names, except when used in 'PUT' and 'GET'
  11791. instructions.
  11792. By default, some instructions are expanded to fit the size of the
  11793. operand or an external symbol (*note MMIX-Expand::). By passing
  11794. '--no-expand', no such expansion will be done, instead causing errors at
  11795. link time if the operand does not fit.
  11796. The 'mmixal' documentation (*note mmixsite::) specifies that global
  11797. registers allocated with the 'GREG' directive (*note MMIX-greg::) and
  11798. initialized to the same non-zero value, will refer to the same global
  11799. register. This isn't strictly enforceable in 'as' since the final
  11800. addresses aren't known until link-time, but it will do an effort unless
  11801. the '--no-merge-gregs' option is specified. (Register merging isn't yet
  11802. implemented in 'ld'.)
  11803. 'as' will warn every time it expands an instruction to fit an operand
  11804. unless the option '-x' is specified. It is believed that this behaviour
  11805. is more useful than just mimicking 'mmixal''s behaviour, in which
  11806. instructions are only expanded if the '-x' option is specified, and
  11807. assembly fails otherwise, when an instruction needs to be expanded. It
  11808. needs to be kept in mind that 'mmixal' is both an assembler and linker,
  11809. while 'as' will expand instructions that at link stage can be
  11810. contracted. (Though linker relaxation isn't yet implemented in 'ld'.)
  11811. The option '-x' also implies '--linker-allocated-gregs'.
  11812. If instruction expansion is enabled, 'as' can expand a 'PUSHJ'
  11813. instruction into a series of instructions. The shortest expansion is to
  11814. not expand it, but just mark the call as redirectable to a stub, which
  11815. 'ld' creates at link-time, but only if the original 'PUSHJ' instruction
  11816. is found not to reach the target. The stub consists of the necessary
  11817. instructions to form a jump to the target. This happens if 'as' can
  11818. assert that the 'PUSHJ' instruction can reach such a stub. The option
  11819. '--no-pushj-stubs' disables this shorter expansion, and the longer
  11820. series of instructions is then created at assembly-time. The option
  11821. '--no-stubs' is a synonym, intended for compatibility with future
  11822. releases, where generation of stubs for other instructions may be
  11823. implemented.
  11824. Usually a two-operand-expression (*note GREG-base::) without a
  11825. matching 'GREG' directive is treated as an error by 'as'. When the
  11826. option '--linker-allocated-gregs' is in effect, they are instead passed
  11827. through to the linker, which will allocate as many global registers as
  11828. is needed.
  11829. 
  11830. File: as.info, Node: MMIX-Expand, Next: MMIX-Syntax, Prev: MMIX-Opts, Up: MMIX-Dependent
  11831. 9.27.2 Instruction expansion
  11832. ----------------------------
  11833. When 'as' encounters an instruction with an operand that is either not
  11834. known or does not fit the operand size of the instruction, 'as' (and
  11835. 'ld') will expand the instruction into a sequence of instructions
  11836. semantically equivalent to the operand fitting the instruction.
  11837. Expansion will take place for the following instructions:
  11838. 'GETA'
  11839. Expands to a sequence of four instructions: 'SETL', 'INCML',
  11840. 'INCMH' and 'INCH'. The operand must be a multiple of four.
  11841. Conditional branches
  11842. A branch instruction is turned into a branch with the complemented
  11843. condition and prediction bit over five instructions; four
  11844. instructions setting '$255' to the operand value, which like with
  11845. 'GETA' must be a multiple of four, and a final 'GO $255,$255,0'.
  11846. 'PUSHJ'
  11847. Similar to expansion for conditional branches; four instructions
  11848. set '$255' to the operand value, followed by a 'PUSHGO
  11849. $255,$255,0'.
  11850. 'JMP'
  11851. Similar to conditional branches and 'PUSHJ'. The final instruction
  11852. is 'GO $255,$255,0'.
  11853. The linker 'ld' is expected to shrink these expansions for code
  11854. assembled with '--relax' (though not currently implemented).
  11855. 
  11856. File: as.info, Node: MMIX-Syntax, Next: MMIX-mmixal, Prev: MMIX-Expand, Up: MMIX-Dependent
  11857. 9.27.3 Syntax
  11858. -------------
  11859. The assembly syntax is supposed to be upward compatible with that
  11860. described in Sections 1.3 and 1.4 of 'The Art of Computer Programming,
  11861. Volume 1'. Draft versions of those chapters as well as other MMIX
  11862. information is located at
  11863. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>. Most code
  11864. examples from the mmixal package located there should work unmodified
  11865. when assembled and linked as single files, with a few noteworthy
  11866. exceptions (*note MMIX-mmixal::).
  11867. Before an instruction is emitted, the current location is aligned to
  11868. the next four-byte boundary. If a label is defined at the beginning of
  11869. the line, its value will be the aligned value.
  11870. In addition to the traditional hex-prefix '0x', a hexadecimal number
  11871. can also be specified by the prefix character '#'.
  11872. After all operands to an MMIX instruction or directive have been
  11873. specified, the rest of the line is ignored, treated as a comment.
  11874. * Menu:
  11875. * MMIX-Chars:: Special Characters
  11876. * MMIX-Symbols:: Symbols
  11877. * MMIX-Regs:: Register Names
  11878. * MMIX-Pseudos:: Assembler Directives
  11879. 
  11880. File: as.info, Node: MMIX-Chars, Next: MMIX-Symbols, Up: MMIX-Syntax
  11881. 9.27.3.1 Special Characters
  11882. ...........................
  11883. The characters '*' and '#' are line comment characters; each start a
  11884. comment at the beginning of a line, but only at the beginning of a line.
  11885. A '#' prefixes a hexadecimal number if found elsewhere on a line. If a
  11886. '#' appears at the start of a line the whole line is treated as a
  11887. comment, but the line can also act as a logical line number directive
  11888. (*note Comments::) or a preprocessor control command (*note
  11889. Preprocessing::).
  11890. Two other characters, '%' and '!', each start a comment anywhere on
  11891. the line. Thus you can't use the 'modulus' and 'not' operators in
  11892. expressions normally associated with these two characters.
  11893. A ';' is a line separator, treated as a new-line, so separate
  11894. instructions can be specified on a single line.
  11895. 
  11896. File: as.info, Node: MMIX-Symbols, Next: MMIX-Regs, Prev: MMIX-Chars, Up: MMIX-Syntax
  11897. 9.27.3.2 Symbols
  11898. ................
  11899. The character ':' is permitted in identifiers. There are two exceptions
  11900. to it being treated as any other symbol character: if a symbol begins
  11901. with ':', it means that the symbol is in the global namespace and that
  11902. the current prefix should not be prepended to that symbol (*note
  11903. MMIX-prefix::). The ':' is then not considered part of the symbol. For
  11904. a symbol in the label position (first on a line), a ':' at the end of a
  11905. symbol is silently stripped off. A label is permitted, but not
  11906. required, to be followed by a ':', as with many other assembly formats.
  11907. The character '@' in an expression, is a synonym for '.', the current
  11908. location.
  11909. In addition to the common forward and backward local symbol formats
  11910. (*note Symbol Names::), they can be specified with upper-case 'B' and
  11911. 'F', as in '8B' and '9F'. A local label defined for the current
  11912. position is written with a 'H' appended to the number:
  11913. 3H LDB $0,$1,2
  11914. This and traditional local-label formats cannot be mixed: a label
  11915. must be defined and referred to using the same format.
  11916. There's a minor caveat: just as for the ordinary local symbols, the
  11917. local symbols are translated into ordinary symbols using control
  11918. characters are to hide the ordinal number of the symbol. Unfortunately,
  11919. these symbols are not translated back in error messages. Thus you may
  11920. see confusing error messages when local symbols are used. Control
  11921. characters '\003' (control-C) and '\004' (control-D) are used for the
  11922. MMIX-specific local-symbol syntax.
  11923. The symbol 'Main' is handled specially; it is always global.
  11924. By defining the symbols '__.MMIX.start..text' and
  11925. '__.MMIX.start..data', the address of respectively the '.text' and
  11926. '.data' segments of the final program can be defined, though when
  11927. linking more than one object file, the code or data in the object file
  11928. containing the symbol is not guaranteed to be start at that position;
  11929. just the final executable. *Note MMIX-loc::.
  11930. 
  11931. File: as.info, Node: MMIX-Regs, Next: MMIX-Pseudos, Prev: MMIX-Symbols, Up: MMIX-Syntax
  11932. 9.27.3.3 Register names
  11933. .......................
  11934. Local and global registers are specified as '$0' to '$255'. The
  11935. recognized special register names are 'rJ', 'rA', 'rB', 'rC', 'rD',
  11936. 'rE', 'rF', 'rG', 'rH', 'rI', 'rK', 'rL', 'rM', 'rN', 'rO', 'rP', 'rQ',
  11937. 'rR', 'rS', 'rT', 'rU', 'rV', 'rW', 'rX', 'rY', 'rZ', 'rBB', 'rTT',
  11938. 'rWW', 'rXX', 'rYY' and 'rZZ'. A leading ':' is optional for special
  11939. register names.
  11940. Local and global symbols can be equated to register names and used in
  11941. place of ordinary registers.
  11942. Similarly for special registers, local and global symbols can be
  11943. used. Also, symbols equated from numbers and constant expressions are
  11944. allowed in place of a special register, except when either of the
  11945. options '--no-predefined-syms' and '--fixed-special-register-names' are
  11946. specified. Then only the special register names above are allowed for
  11947. the instructions having a special register operand; 'GET' and 'PUT'.
  11948. 
  11949. File: as.info, Node: MMIX-Pseudos, Prev: MMIX-Regs, Up: MMIX-Syntax
  11950. 9.27.3.4 Assembler Directives
  11951. .............................
  11952. 'LOC'
  11953. The 'LOC' directive sets the current location to the value of the
  11954. operand field, which may include changing sections. If the operand
  11955. is a constant, the section is set to either '.data' if the value is
  11956. '0x2000000000000000' or larger, else it is set to '.text'. Within
  11957. a section, the current location may only be changed to
  11958. monotonically higher addresses. A LOC expression must be a
  11959. previously defined symbol or a "pure" constant.
  11960. An example, which sets the label PREV to the current location, and
  11961. updates the current location to eight bytes forward:
  11962. prev LOC @+8
  11963. When a LOC has a constant as its operand, a symbol
  11964. '__.MMIX.start..text' or '__.MMIX.start..data' is defined depending
  11965. on the address as mentioned above. Each such symbol is interpreted
  11966. as special by the linker, locating the section at that address.
  11967. Note that if multiple files are linked, the first object file with
  11968. that section will be mapped to that address (not necessarily the
  11969. file with the LOC definition).
  11970. 'LOCAL'
  11971. Example:
  11972. LOCAL external_symbol
  11973. LOCAL 42
  11974. .local asymbol
  11975. This directive-operation generates a link-time assertion that the
  11976. operand does not correspond to a global register. The operand is
  11977. an expression that at link-time resolves to a register symbol or a
  11978. number. A number is treated as the register having that number.
  11979. There is one restriction on the use of this directive: the
  11980. pseudo-directive must be placed in a section with contents, code or
  11981. data.
  11982. 'IS'
  11983. The 'IS' directive:
  11984. asymbol IS an_expression
  11985. sets the symbol 'asymbol' to 'an_expression'. A symbol may not be
  11986. set more than once using this directive. Local labels may be set
  11987. using this directive, for example:
  11988. 5H IS @+4
  11989. 'GREG'
  11990. This directive reserves a global register, gives it an initial
  11991. value and optionally gives it a symbolic name. Some examples:
  11992. areg GREG
  11993. breg GREG data_value
  11994. GREG data_buffer
  11995. .greg creg, another_data_value
  11996. The symbolic register name can be used in place of a (non-special)
  11997. register. If a value isn't provided, it defaults to zero. Unless
  11998. the option '--no-merge-gregs' is specified, non-zero registers
  11999. allocated with this directive may be eliminated by 'as'; another
  12000. register with the same value used in its place. Any of the
  12001. instructions 'CSWAP', 'GO', 'LDA', 'LDBU', 'LDB', 'LDHT', 'LDOU',
  12002. 'LDO', 'LDSF', 'LDTU', 'LDT', 'LDUNC', 'LDVTS', 'LDWU', 'LDW',
  12003. 'PREGO', 'PRELD', 'PREST', 'PUSHGO', 'STBU', 'STB', 'STCO', 'STHT',
  12004. 'STOU', 'STSF', 'STTU', 'STT', 'STUNC', 'SYNCD', 'SYNCID', can have
  12005. a value nearby an initial value in place of its second and third
  12006. operands. Here, "nearby" is defined as within the range 0...255
  12007. from the initial value of such an allocated register.
  12008. buffer1 BYTE 0,0,0,0,0
  12009. buffer2 BYTE 0,0,0,0,0
  12010. ...
  12011. GREG buffer1
  12012. LDOU $42,buffer2
  12013. In the example above, the 'Y' field of the 'LDOUI' instruction
  12014. (LDOU with a constant Z) will be replaced with the global register
  12015. allocated for 'buffer1', and the 'Z' field will have the value 5,
  12016. the offset from 'buffer1' to 'buffer2'. The result is equivalent
  12017. to this code:
  12018. buffer1 BYTE 0,0,0,0,0
  12019. buffer2 BYTE 0,0,0,0,0
  12020. ...
  12021. tmpreg GREG buffer1
  12022. LDOU $42,tmpreg,(buffer2-buffer1)
  12023. Global registers allocated with this directive are allocated in
  12024. order higher-to-lower within a file. Other than that, the exact
  12025. order of register allocation and elimination is undefined. For
  12026. example, the order is undefined when more than one file with such
  12027. directives are linked together. With the options '-x' and
  12028. '--linker-allocated-gregs', 'GREG' directives for two-operand cases
  12029. like the one mentioned above can be omitted. Sufficient global
  12030. registers will then be allocated by the linker.
  12031. 'BYTE'
  12032. The 'BYTE' directive takes a series of operands separated by a
  12033. comma. If an operand is a string (*note Strings::), each character
  12034. of that string is emitted as a byte. Other operands must be
  12035. constant expressions without forward references, in the range
  12036. 0...255. If you need operands having expressions with forward
  12037. references, use '.byte' (*note Byte::). An operand can be omitted,
  12038. defaulting to a zero value.
  12039. 'WYDE'
  12040. 'TETRA'
  12041. 'OCTA'
  12042. The directives 'WYDE', 'TETRA' and 'OCTA' emit constants of two,
  12043. four and eight bytes size respectively. Before anything else
  12044. happens for the directive, the current location is aligned to the
  12045. respective constant-size boundary. If a label is defined at the
  12046. beginning of the line, its value will be that after the alignment.
  12047. A single operand can be omitted, defaulting to a zero value emitted
  12048. for the directive. Operands can be expressed as strings (*note
  12049. Strings::), in which case each character in the string is emitted
  12050. as a separate constant of the size indicated by the directive.
  12051. 'PREFIX'
  12052. The 'PREFIX' directive sets a symbol name prefix to be prepended to
  12053. all symbols (except local symbols, *note MMIX-Symbols::), that are
  12054. not prefixed with ':', until the next 'PREFIX' directive. Such
  12055. prefixes accumulate. For example,
  12056. PREFIX a
  12057. PREFIX b
  12058. c IS 0
  12059. defines a symbol 'abc' with the value 0.
  12060. 'BSPEC'
  12061. 'ESPEC'
  12062. A pair of 'BSPEC' and 'ESPEC' directives delimit a section of
  12063. special contents (without specified semantics). Example:
  12064. BSPEC 42
  12065. TETRA 1,2,3
  12066. ESPEC
  12067. The single operand to 'BSPEC' must be number in the range 0...255.
  12068. The 'BSPEC' number 80 is used by the GNU binutils implementation.
  12069. 
  12070. File: as.info, Node: MMIX-mmixal, Prev: MMIX-Syntax, Up: MMIX-Dependent
  12071. 9.27.4 Differences to 'mmixal'
  12072. ------------------------------
  12073. The binutils 'as' and 'ld' combination has a few differences in function
  12074. compared to 'mmixal' (*note mmixsite::).
  12075. The replacement of a symbol with a GREG-allocated register (*note
  12076. GREG-base::) is not handled the exactly same way in 'as' as in 'mmixal'.
  12077. This is apparent in the 'mmixal' example file 'inout.mms', where
  12078. different registers with different offsets, eventually yielding the same
  12079. address, are used in the first instruction. This type of difference
  12080. should however not affect the function of any program unless it has
  12081. specific assumptions about the allocated register number.
  12082. Line numbers (in the 'mmo' object format) are currently not
  12083. supported.
  12084. Expression operator precedence is not that of mmixal: operator
  12085. precedence is that of the C programming language. It's recommended to
  12086. use parentheses to explicitly specify wanted operator precedence
  12087. whenever more than one type of operators are used.
  12088. The serialize unary operator '&', the fractional division operator
  12089. '//', the logical not operator '!' and the modulus operator '%' are not
  12090. available.
  12091. Symbols are not global by default, unless the option
  12092. '--globalize-symbols' is passed. Use the '.global' directive to
  12093. globalize symbols (*note Global::).
  12094. Operand syntax is a bit stricter with 'as' than 'mmixal'. For
  12095. example, you can't say 'addu 1,2,3', instead you must write 'addu
  12096. $1,$2,3'.
  12097. You can't LOC to a lower address than those already visited (i.e.,
  12098. "backwards").
  12099. A LOC directive must come before any emitted code.
  12100. Predefined symbols are visible as file-local symbols after use. (In
  12101. the ELF file, that is--the linked mmo file has no notion of a file-local
  12102. symbol.)
  12103. Some mapping of constant expressions to sections in LOC expressions
  12104. is attempted, but that functionality is easily confused and should be
  12105. avoided unless compatibility with 'mmixal' is required. A LOC
  12106. expression to '0x2000000000000000' or higher, maps to the '.data'
  12107. section and lower addresses map to the '.text' section (*note
  12108. MMIX-loc::).
  12109. The code and data areas are each contiguous. Sparse programs with
  12110. far-away LOC directives will take up the same amount of space as a
  12111. contiguous program with zeros filled in the gaps between the LOC
  12112. directives. If you need sparse programs, you might try and get the
  12113. wanted effect with a linker script and splitting up the code parts into
  12114. sections (*note Section::). Assembly code for this, to be compatible
  12115. with 'mmixal', would look something like:
  12116. .if 0
  12117. LOC away_expression
  12118. .else
  12119. .section away,"ax"
  12120. .fi
  12121. 'as' will not execute the LOC directive and 'mmixal' ignores the
  12122. lines with '.'. This construct can be used generally to help
  12123. compatibility.
  12124. Symbols can't be defined twice-not even to the same value.
  12125. Instruction mnemonics are recognized case-insensitive, though the
  12126. 'IS' and 'GREG' pseudo-operations must be specified in upper-case
  12127. characters.
  12128. There's no unicode support.
  12129. The following is a list of programs in 'mmix.tar.gz', available at
  12130. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>, last checked
  12131. with the version dated 2001-08-25 (md5sum
  12132. c393470cfc86fac040487d22d2bf0172) that assemble with 'mmixal' but do not
  12133. assemble with 'as':
  12134. 'silly.mms'
  12135. LOC to a previous address.
  12136. 'sim.mms'
  12137. Redefines symbol 'Done'.
  12138. 'test.mms'
  12139. Uses the serial operator '&'.
  12140. 
  12141. File: as.info, Node: MSP430-Dependent, Next: NDS32-Dependent, Prev: MMIX-Dependent, Up: Machine Dependencies
  12142. 9.28 MSP 430 Dependent Features
  12143. ===============================
  12144. * Menu:
  12145. * MSP430 Options:: Options
  12146. * MSP430 Syntax:: Syntax
  12147. * MSP430 Floating Point:: Floating Point
  12148. * MSP430 Directives:: MSP 430 Machine Directives
  12149. * MSP430 Opcodes:: Opcodes
  12150. * MSP430 Profiling Capability:: Profiling Capability
  12151. 
  12152. File: as.info, Node: MSP430 Options, Next: MSP430 Syntax, Up: MSP430-Dependent
  12153. 9.28.1 Options
  12154. --------------
  12155. '-mmcu'
  12156. selects the mcu architecture. If the architecture is 430Xv2 then
  12157. this also enables NOP generation unless the '-mN' is also
  12158. specified.
  12159. '-mcpu'
  12160. selects the cpu architecture. If the architecture is 430Xv2 then
  12161. this also enables NOP generation unless the '-mN' is also
  12162. specified.
  12163. '-msilicon-errata=NAME[,NAME...]'
  12164. Implements a fixup for named silicon errata. Multiple silicon
  12165. errata can be specified by multiple uses of the '-msilicon-errata'
  12166. option and/or by including the errata names, separated by commas,
  12167. on an individual '-msilicon-errata' option. Errata names currently
  12168. recognised by the assembler are:
  12169. 'cpu4'
  12170. 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
  12171. This option is enabled by default, and cannot be disabled.
  12172. 'cpu8'
  12173. Do not set the 'SP' to an odd value.
  12174. 'cpu11'
  12175. Do not update the 'SR' and the 'PC' in the same instruction.
  12176. 'cpu12'
  12177. Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
  12178. 'cpu13'
  12179. Do not use an arithmetic instruction to modify the 'SR'.
  12180. 'cpu19'
  12181. Insert 'NOP' after 'CPUOFF'.
  12182. '-msilicon-errata-warn=NAME[,NAME...]'
  12183. Like the '-msilicon-errata' option except that instead of fixing
  12184. the specified errata, a warning message is issued instead. This
  12185. option can be used alongside '-msilicon-errata' to generate
  12186. messages whenever a problem is fixed, or on its own in order to
  12187. inspect code for potential problems.
  12188. '-mP'
  12189. enables polymorph instructions handler.
  12190. '-mQ'
  12191. enables relaxation at assembly time. DANGEROUS!
  12192. '-ml'
  12193. indicates that the input uses the large code model.
  12194. '-mn'
  12195. enables the generation of a NOP instruction following any
  12196. instruction that might change the interrupts enabled/disabled
  12197. state. The pipelined nature of the MSP430 core means that any
  12198. instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
  12199. #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
  12200. instruction in order to ensure the correct processing of
  12201. interrupts. By default it is up to the programmer to supply these
  12202. NOP instructions, but this command-line option enables the
  12203. automatic insertion by the assembler, if they are missing.
  12204. '-mN'
  12205. disables the generation of a NOP instruction following any
  12206. instruction that might change the interrupts enabled/disabled
  12207. state. This is the default behaviour.
  12208. '-my'
  12209. tells the assembler to generate a warning message if a NOP does not
  12210. immediately follow an instruction that enables or disables
  12211. interrupts. This is the default.
  12212. Note that this option can be stacked with the '-mn' option so that
  12213. the assembler will both warn about missing NOP instructions and
  12214. then insert them automatically.
  12215. '-mY'
  12216. disables warnings about missing NOP instructions.
  12217. '-md'
  12218. mark the object file as one that requires data to copied from ROM
  12219. to RAM at execution startup. Disabled by default.
  12220. '-mdata-region=REGION'
  12221. Select the region data will be placed in. Region placement is
  12222. performed by the compiler and linker. The only effect this option
  12223. will have on the assembler is that if UPPER or EITHER is selected,
  12224. then the symbols to initialise high data and bss will be defined.
  12225. Valid REGION values are:
  12226. 'none'
  12227. 'lower'
  12228. 'upper'
  12229. 'either'
  12230. 
  12231. File: as.info, Node: MSP430 Syntax, Next: MSP430 Floating Point, Prev: MSP430 Options, Up: MSP430-Dependent
  12232. 9.28.2 Syntax
  12233. -------------
  12234. * Menu:
  12235. * MSP430-Macros:: Macros
  12236. * MSP430-Chars:: Special Characters
  12237. * MSP430-Regs:: Register Names
  12238. * MSP430-Ext:: Assembler Extensions
  12239. 
  12240. File: as.info, Node: MSP430-Macros, Next: MSP430-Chars, Up: MSP430 Syntax
  12241. 9.28.2.1 Macros
  12242. ...............
  12243. The macro syntax used on the MSP 430 is like that described in the MSP
  12244. 430 Family Assembler Specification. Normal 'as' macros should still
  12245. work.
  12246. Additional built-in macros are:
  12247. 'llo(exp)'
  12248. Extracts least significant word from 32-bit expression 'exp'.
  12249. 'lhi(exp)'
  12250. Extracts most significant word from 32-bit expression 'exp'.
  12251. 'hlo(exp)'
  12252. Extracts 3rd word from 64-bit expression 'exp'.
  12253. 'hhi(exp)'
  12254. Extracts 4rd word from 64-bit expression 'exp'.
  12255. They normally being used as an immediate source operand.
  12256. mov #llo(1), r10 ; == mov #1, r10
  12257. mov #lhi(1), r10 ; == mov #0, r10
  12258. 
  12259. File: as.info, Node: MSP430-Chars, Next: MSP430-Regs, Prev: MSP430-Macros, Up: MSP430 Syntax
  12260. 9.28.2.2 Special Characters
  12261. ...........................
  12262. A semicolon (';') appearing anywhere on a line starts a comment that
  12263. extends to the end of that line.
  12264. If a '#' appears as the first character of a line then the whole line
  12265. is treated as a comment, but it can also be a logical line number
  12266. directive (*note Comments::) or a preprocessor control command (*note
  12267. Preprocessing::).
  12268. Multiple statements can appear on the same line provided that they
  12269. are separated by the '{' character.
  12270. The character '$' in jump instructions indicates current location and
  12271. implemented only for TI syntax compatibility.
  12272. 
  12273. File: as.info, Node: MSP430-Regs, Next: MSP430-Ext, Prev: MSP430-Chars, Up: MSP430 Syntax
  12274. 9.28.2.3 Register Names
  12275. .......................
  12276. General-purpose registers are represented by predefined symbols of the
  12277. form 'rN' (for global registers), where N represents a number between
  12278. '0' and '15'. The leading letters may be in either upper or lower case;
  12279. for example, 'r13' and 'R7' are both valid register names.
  12280. Register names 'PC', 'SP' and 'SR' cannot be used as register names
  12281. and will be treated as variables. Use 'r0', 'r1', and 'r2' instead.
  12282. 
  12283. File: as.info, Node: MSP430-Ext, Prev: MSP430-Regs, Up: MSP430 Syntax
  12284. 9.28.2.4 Assembler Extensions
  12285. .............................
  12286. '@rN'
  12287. As destination operand being treated as '0(rn)'
  12288. '0(rN)'
  12289. As source operand being treated as '@rn'
  12290. 'jCOND +N'
  12291. Skips next N bytes followed by jump instruction and equivalent to
  12292. 'jCOND $+N+2'
  12293. Also, there are some instructions, which cannot be found in other
  12294. assemblers. These are branch instructions, which has different opcodes
  12295. upon jump distance. They all got PC relative addressing mode.
  12296. 'beq label'
  12297. A polymorph instruction which is 'jeq label' in case if jump
  12298. distance within allowed range for cpu's jump instruction. If not,
  12299. this unrolls into a sequence of
  12300. jne $+6
  12301. br label
  12302. 'bne label'
  12303. A polymorph instruction which is 'jne label' or 'jeq +4; br label'
  12304. 'blt label'
  12305. A polymorph instruction which is 'jl label' or 'jge +4; br label'
  12306. 'bltn label'
  12307. A polymorph instruction which is 'jn label' or 'jn +2; jmp +4; br
  12308. label'
  12309. 'bltu label'
  12310. A polymorph instruction which is 'jlo label' or 'jhs +2; br label'
  12311. 'bge label'
  12312. A polymorph instruction which is 'jge label' or 'jl +4; br label'
  12313. 'bgeu label'
  12314. A polymorph instruction which is 'jhs label' or 'jlo +4; br label'
  12315. 'bgt label'
  12316. A polymorph instruction which is 'jeq +2; jge label' or 'jeq +6; jl
  12317. +4; br label'
  12318. 'bgtu label'
  12319. A polymorph instruction which is 'jeq +2; jhs label' or 'jeq +6;
  12320. jlo +4; br label'
  12321. 'bleu label'
  12322. A polymorph instruction which is 'jeq label; jlo label' or 'jeq +2;
  12323. jhs +4; br label'
  12324. 'ble label'
  12325. A polymorph instruction which is 'jeq label; jl label' or 'jeq +2;
  12326. jge +4; br label'
  12327. 'jump label'
  12328. A polymorph instruction which is 'jmp label' or 'br label'
  12329. 
  12330. File: as.info, Node: MSP430 Floating Point, Next: MSP430 Directives, Prev: MSP430 Syntax, Up: MSP430-Dependent
  12331. 9.28.3 Floating Point
  12332. ---------------------
  12333. The MSP 430 family uses IEEE 32-bit floating-point numbers.
  12334. 
  12335. File: as.info, Node: MSP430 Directives, Next: MSP430 Opcodes, Prev: MSP430 Floating Point, Up: MSP430-Dependent
  12336. 9.28.4 MSP 430 Machine Directives
  12337. ---------------------------------
  12338. '.file'
  12339. This directive is ignored; it is accepted for compatibility with
  12340. other MSP 430 assemblers.
  12341. _Warning:_ in other versions of the GNU assembler, '.file' is
  12342. used for the directive called '.app-file' in the MSP 430
  12343. support.
  12344. '.line'
  12345. This directive is ignored; it is accepted for compatibility with
  12346. other MSP 430 assemblers.
  12347. '.arch'
  12348. Sets the target microcontroller in the same way as the '-mmcu'
  12349. command-line option.
  12350. '.cpu'
  12351. Sets the target architecture in the same way as the '-mcpu'
  12352. command-line option.
  12353. '.profiler'
  12354. This directive instructs assembler to add new profile entry to the
  12355. object file.
  12356. '.refsym'
  12357. This directive instructs assembler to add an undefined reference to
  12358. the symbol following the directive. The maximum symbol name length
  12359. is 1023 characters. No relocation is created for this symbol; it
  12360. will exist purely for pulling in object files from archives. Note
  12361. that this reloc is not sufficient to prevent garbage collection;
  12362. use a KEEP() directive in the linker file to preserve such objects.
  12363. 
  12364. File: as.info, Node: MSP430 Opcodes, Next: MSP430 Profiling Capability, Prev: MSP430 Directives, Up: MSP430-Dependent
  12365. 9.28.5 Opcodes
  12366. --------------
  12367. 'as' implements all the standard MSP 430 opcodes. No additional
  12368. pseudo-instructions are needed on this family.
  12369. For information on the 430 machine instruction set, see 'MSP430
  12370. User's Manual, document slau049d', Texas Instrument, Inc.
  12371. 
  12372. File: as.info, Node: MSP430 Profiling Capability, Prev: MSP430 Opcodes, Up: MSP430-Dependent
  12373. 9.28.6 Profiling Capability
  12374. ---------------------------
  12375. It is a performance hit to use gcc's profiling approach for this tiny
  12376. target. Even more - jtag hardware facility does not perform any
  12377. profiling functions. However we've got gdb's built-in simulator where
  12378. we can do anything.
  12379. We define new section '.profiler' which holds all profiling
  12380. information. We define new pseudo operation '.profiler' which will
  12381. instruct assembler to add new profile entry to the object file. Profile
  12382. should take place at the present address.
  12383. Pseudo operation format:
  12384. '.profiler flags,function_to_profile [, cycle_corrector, extra]'
  12385. where:
  12386. 'flags' is a combination of the following characters:
  12387. 's'
  12388. function entry
  12389. 'x'
  12390. function exit
  12391. 'i'
  12392. function is in init section
  12393. 'f'
  12394. function is in fini section
  12395. 'l'
  12396. library call
  12397. 'c'
  12398. libc standard call
  12399. 'd'
  12400. stack value demand
  12401. 'I'
  12402. interrupt service routine
  12403. 'P'
  12404. prologue start
  12405. 'p'
  12406. prologue end
  12407. 'E'
  12408. epilogue start
  12409. 'e'
  12410. epilogue end
  12411. 'j'
  12412. long jump / sjlj unwind
  12413. 'a'
  12414. an arbitrary code fragment
  12415. 't'
  12416. extra parameter saved (a constant value like frame size)
  12417. 'function_to_profile'
  12418. a function address
  12419. 'cycle_corrector'
  12420. a value which should be added to the cycle counter, zero if
  12421. omitted.
  12422. 'extra'
  12423. any extra parameter, zero if omitted.
  12424. For example:
  12425. .global fxx
  12426. .type fxx,@function
  12427. fxx:
  12428. .LFrameOffset_fxx=0x08
  12429. .profiler "scdP", fxx ; function entry.
  12430. ; we also demand stack value to be saved
  12431. push r11
  12432. push r10
  12433. push r9
  12434. push r8
  12435. .profiler "cdpt",fxx,0, .LFrameOffset_fxx ; check stack value at this point
  12436. ; (this is a prologue end)
  12437. ; note, that spare var filled with
  12438. ; the farme size
  12439. mov r15,r8
  12440. ...
  12441. .profiler cdE,fxx ; check stack
  12442. pop r8
  12443. pop r9
  12444. pop r10
  12445. pop r11
  12446. .profiler xcde,fxx,3 ; exit adds 3 to the cycle counter
  12447. ret ; cause 'ret' insn takes 3 cycles
  12448. 
  12449. File: as.info, Node: NDS32-Dependent, Next: NiosII-Dependent, Prev: MSP430-Dependent, Up: Machine Dependencies
  12450. 9.29 NDS32 Dependent Features
  12451. =============================
  12452. The NDS32 processors family includes high-performance and low-power
  12453. 32-bit processors for high-end to low-end. GNU 'as' for NDS32
  12454. architectures supports NDS32 ISA version 3. For detail about NDS32
  12455. instruction set, please see the AndeStar ISA User Manual which is
  12456. available at http://www.andestech.com/en/index/index.htm
  12457. * Menu:
  12458. * NDS32 Options:: Assembler options
  12459. * NDS32 Syntax:: High-level assembly macros
  12460. 
  12461. File: as.info, Node: NDS32 Options, Next: NDS32 Syntax, Up: NDS32-Dependent
  12462. 9.29.1 NDS32 Options
  12463. --------------------
  12464. The NDS32 configurations of GNU 'as' support these special options:
  12465. '-O1'
  12466. Optimize for performance.
  12467. '-Os'
  12468. Optimize for space.
  12469. '-EL'
  12470. Produce little endian data output.
  12471. '-EB'
  12472. Produce little endian data output.
  12473. '-mpic'
  12474. Generate PIC.
  12475. '-mno-fp-as-gp-relax'
  12476. Suppress fp-as-gp relaxation for this file.
  12477. '-mb2bb-relax'
  12478. Back-to-back branch optimization.
  12479. '-mno-all-relax'
  12480. Suppress all relaxation for this file.
  12481. '-march=<arch name>'
  12482. Assemble for architecture <arch name> which could be v3, v3j, v3m,
  12483. v3f, v3s, v2, v2j, v2f, v2s.
  12484. '-mbaseline=<baseline>'
  12485. Assemble for baseline <baseline> which could be v2, v3, v3m.
  12486. '-mfpu-freg=FREG'
  12487. Specify a FPU configuration.
  12488. '0 8 SP / 4 DP registers'
  12489. '1 16 SP / 8 DP registers'
  12490. '2 32 SP / 16 DP registers'
  12491. '3 32 SP / 32 DP registers'
  12492. '-mabi=ABI'
  12493. Specify a abi version <abi> could be v1, v2, v2fp, v2fpp.
  12494. '-m[no-]mac'
  12495. Enable/Disable Multiply instructions support.
  12496. '-m[no-]div'
  12497. Enable/Disable Divide instructions support.
  12498. '-m[no-]16bit-ext'
  12499. Enable/Disable 16-bit extension
  12500. '-m[no-]dx-regs'
  12501. Enable/Disable d0/d1 registers
  12502. '-m[no-]perf-ext'
  12503. Enable/Disable Performance extension
  12504. '-m[no-]perf2-ext'
  12505. Enable/Disable Performance extension 2
  12506. '-m[no-]string-ext'
  12507. Enable/Disable String extension
  12508. '-m[no-]reduced-regs'
  12509. Enable/Disable Reduced Register configuration (GPR16) option
  12510. '-m[no-]audio-isa-ext'
  12511. Enable/Disable AUDIO ISA extension
  12512. '-m[no-]fpu-sp-ext'
  12513. Enable/Disable FPU SP extension
  12514. '-m[no-]fpu-dp-ext'
  12515. Enable/Disable FPU DP extension
  12516. '-m[no-]fpu-fma'
  12517. Enable/Disable FPU fused-multiply-add instructions
  12518. '-mall-ext'
  12519. Turn on all extensions and instructions support
  12520. 
  12521. File: as.info, Node: NDS32 Syntax, Prev: NDS32 Options, Up: NDS32-Dependent
  12522. 9.29.2 Syntax
  12523. -------------
  12524. * Menu:
  12525. * NDS32-Chars:: Special Characters
  12526. * NDS32-Regs:: Register Names
  12527. * NDS32-Ops:: Pseudo Instructions
  12528. 
  12529. File: as.info, Node: NDS32-Chars, Next: NDS32-Regs, Up: NDS32 Syntax
  12530. 9.29.2.1 Special Characters
  12531. ...........................
  12532. Use '#' at column 1 and '!' anywhere in the line except inside quotes.
  12533. Multiple instructions in a line are allowed though not recommended
  12534. and should be separated by ';'.
  12535. Assembler is not case-sensitive in general except user defined label.
  12536. For example, 'jral F1' is different from 'jral f1' while it is the same
  12537. as 'JRAL F1'.
  12538. 
  12539. File: as.info, Node: NDS32-Regs, Next: NDS32-Ops, Prev: NDS32-Chars, Up: NDS32 Syntax
  12540. 9.29.2.2 Register Names
  12541. .......................
  12542. 'General purpose registers (GPR)'
  12543. There are 32 32-bit general purpose registers $r0 to $r31.
  12544. 'Accumulators d0 and d1'
  12545. 64-bit accumulators: $d0.hi, $d0.lo, $d1.hi, and $d1.lo.
  12546. 'Assembler reserved register $ta'
  12547. Register $ta ($r15) is reserved for assembler using.
  12548. 'Operating system reserved registers $p0 and $p1'
  12549. Registers $p0 ($r26) and $p1 ($r27) are used by operating system as
  12550. scratch registers.
  12551. 'Frame pointer $fp'
  12552. Register $r28 is regarded as the frame pointer.
  12553. 'Global pointer'
  12554. Register $r29 is regarded as the global pointer.
  12555. 'Link pointer'
  12556. Register $r30 is regarded as the link pointer.
  12557. 'Stack pointer'
  12558. Register $r31 is regarded as the stack pointer.
  12559. 
  12560. File: as.info, Node: NDS32-Ops, Prev: NDS32-Regs, Up: NDS32 Syntax
  12561. 9.29.2.3 Pseudo Instructions
  12562. ............................
  12563. 'li rt5,imm32'
  12564. load 32-bit integer into register rt5. 'sethi rt5,hi20(imm32)' and
  12565. then 'ori rt5,reg,lo12(imm32)'.
  12566. 'la rt5,var'
  12567. Load 32-bit address of var into register rt5. 'sethi
  12568. rt5,hi20(var)' and then 'ori reg,rt5,lo12(var)'
  12569. 'l.[bhw] rt5,var'
  12570. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  12571. then 'l[bhw]i rt5,[$ta+lo12(var)]'
  12572. 'l.[bh]s rt5,var'
  12573. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  12574. then 'l[bh]si rt5,[$ta+lo12(var)]'
  12575. 'l.[bhw]p rt5,var,inc'
  12576. Load value of var into register rt5 and increment $ta by amount
  12577. inc. 'la $ta,var' and then 'l[bhw]i.bi rt5,[$ta],inc'
  12578. 'l.[bhw]pc rt5,inc'
  12579. Continue loading value of var into register rt5 and increment $ta
  12580. by amount inc. 'l[bhw]i.bi rt5,[$ta],inc.'
  12581. 'l.[bh]sp rt5,var,inc'
  12582. Load value of var into register rt5 and increment $ta by amount
  12583. inc. 'la $ta,var' and then 'l[bh]si.bi rt5,[$ta],inc'
  12584. 'l.[bh]spc rt5,inc'
  12585. Continue loading value of var into register rt5 and increment $ta
  12586. by amount inc. 'l[bh]si.bi rt5,[$ta],inc.'
  12587. 's.[bhw] rt5,var'
  12588. Store register rt5 to var. 'sethi $ta,hi20(var)' and then 's[bhw]i
  12589. rt5,[$ta+lo12(var)]'
  12590. 's.[bhw]p rt5,var,inc'
  12591. Store register rt5 to var and increment $ta by amount inc. 'la
  12592. $ta,var' and then 's[bhw]i.bi rt5,[$ta],inc'
  12593. 's.[bhw]pc rt5,inc'
  12594. Continue storing register rt5 to var and increment $ta by amount
  12595. inc. 's[bhw]i.bi rt5,[$ta],inc.'
  12596. 'not rt5,ra5'
  12597. Alias of 'nor rt5,ra5,ra5'.
  12598. 'neg rt5,ra5'
  12599. Alias of 'subri rt5,ra5,0'.
  12600. 'br rb5'
  12601. Depending on how it is assembled, it is translated into 'r5 rb5' or
  12602. 'jr rb5'.
  12603. 'b label'
  12604. Branch to label depending on how it is assembled, it is translated
  12605. into 'j8 label', 'j label', or "'la $ta,label' 'br $ta'".
  12606. 'bral rb5'
  12607. Alias of jral br5 depending on how it is assembled, it is
  12608. translated into 'jral5 rb5' or 'jral rb5'.
  12609. 'bal fname'
  12610. Alias of jal fname depending on how it is assembled, it is
  12611. translated into 'jal fname' or "'la $ta,fname' 'bral $ta'".
  12612. 'call fname'
  12613. Call function fname same as 'jal fname'.
  12614. 'move rt5,ra5'
  12615. For 16-bit, this is 'mov55 rt5,ra5'. For no 16-bit, this is 'ori
  12616. rt5,ra5,0'.
  12617. 'move rt5,var'
  12618. This is the same as 'l.w rt5,var'.
  12619. 'move rt5,imm32'
  12620. This is the same as 'li rt5,imm32'.
  12621. 'pushm ra5,rb5'
  12622. Push contents of registers from ra5 to rb5 into stack.
  12623. 'push ra5'
  12624. Push content of register ra5 into stack. (same 'pushm ra5,ra5').
  12625. 'push.d var'
  12626. Push value of double-word variable var into stack.
  12627. 'push.w var'
  12628. Push value of word variable var into stack.
  12629. 'push.h var'
  12630. Push value of half-word variable var into stack.
  12631. 'push.b var'
  12632. Push value of byte variable var into stack.
  12633. 'pusha var'
  12634. Push 32-bit address of variable var into stack.
  12635. 'pushi imm32'
  12636. Push 32-bit immediate value into stack.
  12637. 'popm ra5,rb5'
  12638. Pop top of stack values into registers ra5 to rb5.
  12639. 'pop rt5'
  12640. Pop top of stack value into register. (same as 'popm rt5,rt5'.)
  12641. 'pop.d var,ra5'
  12642. Pop value of double-word variable var from stack using register ra5
  12643. as 2nd scratch register. (1st is $ta)
  12644. 'pop.w var,ra5'
  12645. Pop value of word variable var from stack using register ra5.
  12646. 'pop.h var,ra5'
  12647. Pop value of half-word variable var from stack using register ra5.
  12648. 'pop.b var,ra5'
  12649. Pop value of byte variable var from stack using register ra5.
  12650. 
  12651. File: as.info, Node: NiosII-Dependent, Next: NS32K-Dependent, Prev: NDS32-Dependent, Up: Machine Dependencies
  12652. 9.30 Nios II Dependent Features
  12653. ===============================
  12654. * Menu:
  12655. * Nios II Options:: Options
  12656. * Nios II Syntax:: Syntax
  12657. * Nios II Relocations:: Relocations
  12658. * Nios II Directives:: Nios II Machine Directives
  12659. * Nios II Opcodes:: Opcodes
  12660. 
  12661. File: as.info, Node: Nios II Options, Next: Nios II Syntax, Up: NiosII-Dependent
  12662. 9.30.1 Options
  12663. --------------
  12664. '-relax-section'
  12665. Replace identified out-of-range branches with PC-relative 'jmp'
  12666. sequences when possible. The generated code sequences are suitable
  12667. for use in position-independent code, but there is a practical
  12668. limit on the extended branch range because of the length of the
  12669. sequences. This option is the default.
  12670. '-relax-all'
  12671. Replace branch instructions not determinable to be in range and all
  12672. call instructions with 'jmp' and 'callr' sequences (respectively).
  12673. This option generates absolute relocations against the target
  12674. symbols and is not appropriate for position-independent code.
  12675. '-no-relax'
  12676. Do not replace any branches or calls.
  12677. '-EB'
  12678. Generate big-endian output.
  12679. '-EL'
  12680. Generate little-endian output. This is the default.
  12681. '-march=ARCHITECTURE'
  12682. This option specifies the target architecture. The assembler
  12683. issues an error message if an attempt is made to assemble an
  12684. instruction which will not execute on the target architecture. The
  12685. following architecture names are recognized: 'r1', 'r2'. The
  12686. default is 'r1'.
  12687. 
  12688. File: as.info, Node: Nios II Syntax, Next: Nios II Relocations, Prev: Nios II Options, Up: NiosII-Dependent
  12689. 9.30.2 Syntax
  12690. -------------
  12691. * Menu:
  12692. * Nios II Chars:: Special Characters
  12693. 
  12694. File: as.info, Node: Nios II Chars, Up: Nios II Syntax
  12695. 9.30.2.1 Special Characters
  12696. ...........................
  12697. '#' is the line comment character. ';' is the line separator character.
  12698. 
  12699. File: as.info, Node: Nios II Relocations, Next: Nios II Directives, Prev: Nios II Syntax, Up: NiosII-Dependent
  12700. 9.30.3 Nios II Machine Relocations
  12701. ----------------------------------
  12702. '%hiadj(EXPRESSION)'
  12703. Extract the upper 16 bits of EXPRESSION and add one if the 15th bit
  12704. is set.
  12705. The value of '%hiadj(EXPRESSION)' is:
  12706. ((EXPRESSION >> 16) & 0xffff) + ((EXPRESSION >> 15) & 0x01)
  12707. The '%hiadj' relocation is intended to be used with the 'addi',
  12708. 'ld' or 'st' instructions along with a '%lo', in order to load a
  12709. 32-bit constant.
  12710. movhi r2, %hiadj(symbol)
  12711. addi r2, r2, %lo(symbol)
  12712. '%hi(EXPRESSION)'
  12713. Extract the upper 16 bits of EXPRESSION.
  12714. '%lo(EXPRESSION)'
  12715. Extract the lower 16 bits of EXPRESSION.
  12716. '%gprel(EXPRESSION)'
  12717. Subtract the value of the symbol '_gp' from EXPRESSION.
  12718. The intention of the '%gprel' relocation is to have a fast small
  12719. area of memory which only takes a 16-bit immediate to access.
  12720. .section .sdata
  12721. fastint:
  12722. .int 123
  12723. .section .text
  12724. ldw r4, %gprel(fastint)(gp)
  12725. '%call(EXPRESSION)'
  12726. '%call_lo(EXPRESSION)'
  12727. '%call_hiadj(EXPRESSION)'
  12728. '%got(EXPRESSION)'
  12729. '%got_lo(EXPRESSION)'
  12730. '%got_hiadj(EXPRESSION)'
  12731. '%gotoff(EXPRESSION)'
  12732. '%gotoff_lo(EXPRESSION)'
  12733. '%gotoff_hiadj(EXPRESSION)'
  12734. '%tls_gd(EXPRESSION)'
  12735. '%tls_ie(EXPRESSION)'
  12736. '%tls_le(EXPRESSION)'
  12737. '%tls_ldm(EXPRESSION)'
  12738. '%tls_ldo(EXPRESSION)'
  12739. These relocations support the ABI for Linux Systems documented in
  12740. the 'Nios II Processor Reference Handbook'.
  12741. 
  12742. File: as.info, Node: Nios II Directives, Next: Nios II Opcodes, Prev: Nios II Relocations, Up: NiosII-Dependent
  12743. 9.30.4 Nios II Machine Directives
  12744. ---------------------------------
  12745. '.align EXPRESSION [, EXPRESSION]'
  12746. This is the generic '.align' directive, however this aligns to a
  12747. power of two.
  12748. '.half EXPRESSION'
  12749. Create an aligned constant 2 bytes in size.
  12750. '.word EXPRESSION'
  12751. Create an aligned constant 4 bytes in size.
  12752. '.dword EXPRESSION'
  12753. Create an aligned constant 8 bytes in size.
  12754. '.2byte EXPRESSION'
  12755. Create an unaligned constant 2 bytes in size.
  12756. '.4byte EXPRESSION'
  12757. Create an unaligned constant 4 bytes in size.
  12758. '.8byte EXPRESSION'
  12759. Create an unaligned constant 8 bytes in size.
  12760. '.16byte EXPRESSION'
  12761. Create an unaligned constant 16 bytes in size.
  12762. '.set noat'
  12763. Allows assembly code to use 'at' register without warning. Macro
  12764. or relaxation expansions generate warnings.
  12765. '.set at'
  12766. Assembly code using 'at' register generates warnings, and macro
  12767. expansion and relaxation are enabled.
  12768. '.set nobreak'
  12769. Allows assembly code to use 'ba' and 'bt' registers without
  12770. warning.
  12771. '.set break'
  12772. Turns warnings back on for using 'ba' and 'bt' registers.
  12773. '.set norelax'
  12774. Do not replace any branches or calls.
  12775. '.set relaxsection'
  12776. Replace identified out-of-range branches with 'jmp' sequences
  12777. (default).
  12778. '.set relaxsection'
  12779. Replace all branch and call instructions with 'jmp' and 'callr'
  12780. sequences.
  12781. '.set ...'
  12782. All other '.set' are the normal use.
  12783. 
  12784. File: as.info, Node: Nios II Opcodes, Prev: Nios II Directives, Up: NiosII-Dependent
  12785. 9.30.5 Opcodes
  12786. --------------
  12787. 'as' implements all the standard Nios II opcodes documented in the 'Nios
  12788. II Processor Reference Handbook', including the assembler
  12789. pseudo-instructions.
  12790. 
  12791. File: as.info, Node: NS32K-Dependent, Next: OpenRISC-Dependent, Prev: NiosII-Dependent, Up: Machine Dependencies
  12792. 9.31 NS32K Dependent Features
  12793. =============================
  12794. * Menu:
  12795. * NS32K Syntax:: Syntax
  12796. 
  12797. File: as.info, Node: NS32K Syntax, Up: NS32K-Dependent
  12798. 9.31.1 Syntax
  12799. -------------
  12800. * Menu:
  12801. * NS32K-Chars:: Special Characters
  12802. 
  12803. File: as.info, Node: NS32K-Chars, Up: NS32K Syntax
  12804. 9.31.1.1 Special Characters
  12805. ...........................
  12806. The presence of a '#' appearing anywhere on a line indicates the start
  12807. of a comment that extends to the end of that line.
  12808. If a '#' appears as the first character of a line then the whole line
  12809. is treated as a comment, but in this case the line can also be a logical
  12810. line number directive (*note Comments::) or a preprocessor control
  12811. command (*note Preprocessing::).
  12812. If Sequent compatibility has been configured into the assembler then
  12813. the '|' character appearing as the first character on a line will also
  12814. indicate the start of a line comment.
  12815. The ';' character can be used to separate statements on the same
  12816. line.
  12817. 
  12818. File: as.info, Node: OpenRISC-Dependent, Next: PDP-11-Dependent, Prev: NS32K-Dependent, Up: Machine Dependencies
  12819. 9.32 OPENRISC Dependent Features
  12820. ================================
  12821. * Menu:
  12822. * OpenRISC-Syntax:: Syntax
  12823. * OpenRISC-Float:: Floating Point
  12824. * OpenRISC-Directives:: OpenRISC Machine Directives
  12825. * OpenRISC-Opcodes:: Opcodes
  12826. 
  12827. File: as.info, Node: OpenRISC-Syntax, Next: OpenRISC-Float, Up: OpenRISC-Dependent
  12828. 9.32.1 OpenRISC Syntax
  12829. ----------------------
  12830. The assembler syntax follows the OpenRISC 1000 Architecture Manual.
  12831. * Menu:
  12832. * OpenRISC-Chars:: Special Characters
  12833. * OpenRISC-Regs:: Register Names
  12834. * OpenRISC-Relocs:: Relocations
  12835. 
  12836. File: as.info, Node: OpenRISC-Chars, Next: OpenRISC-Regs, Up: OpenRISC-Syntax
  12837. 9.32.1.1 Special Characters
  12838. ...........................
  12839. A '#' character appearing anywhere on a line indicates the start of a
  12840. comment that extends to the end of that line.
  12841. ';' can be used instead of a newline to separate statements.
  12842. 
  12843. File: as.info, Node: OpenRISC-Regs, Next: OpenRISC-Relocs, Prev: OpenRISC-Chars, Up: OpenRISC-Syntax
  12844. 9.32.1.2 Register Names
  12845. .......................
  12846. The OpenRISC register file contains 32 general pupose registers.
  12847. * The 32 general purpose registers are referred to as 'rN'.
  12848. * The stack pointer register 'r1' can be referenced using the alias
  12849. 'sp'.
  12850. * The frame pointer register 'r2' can be referenced using the alias
  12851. 'fp'.
  12852. * The link register 'r9' can be referenced using the alias 'lr'.
  12853. Floating point operations use the same general purpose registers.
  12854. The instructions 'lf.itof.s' (single precision) and 'lf.itof.d' (double
  12855. precision) can be used to convert integer values to floating point.
  12856. Likewise, instructions 'lf.ftoi.s' (single precision) and 'lf.ftoi.d'
  12857. (double precision) can be used to convert floating point to integer.
  12858. OpenRISC also contains privileged special purpose registers (SPRs).
  12859. The SPRs are accessed using the 'l.mfspr' and 'l.mtspr' instructions.
  12860. 
  12861. File: as.info, Node: OpenRISC-Relocs, Prev: OpenRISC-Regs, Up: OpenRISC-Syntax
  12862. 9.32.1.3 Relocations
  12863. ....................
  12864. ELF relocations are available as defined in the OpenRISC architecture
  12865. specification.
  12866. 'R_OR1K_HI_16_IN_INSN' is obtained using 'hi' and
  12867. 'R_OR1K_LO_16_IN_INSN' and 'R_OR1K_SLO16' are obtained using 'lo'. For
  12868. signed offsets 'R_OR1K_AHI16' is obtained from 'ha'. For example:
  12869. l.movhi r5, hi(symbol)
  12870. l.ori r5, r5, lo(symbol)
  12871. l.movhi r5, ha(symbol)
  12872. l.addi r5, r5, lo(symbol)
  12873. These "high" mnemonics extract bits 31:16 of their operand, and the
  12874. "low" mnemonics extract bits 15:0 of their operand.
  12875. The PC relative relocation 'R_OR1K_GOTPC_HI16' can be obtained by
  12876. enclosing an operand inside of 'gotpchi'. Likewise, the
  12877. 'R_OR1K_GOTPC_LO16' relocation can be obtained using 'gotpclo'. These
  12878. are mostly used when assembling PIC code. For example, the standard PIC
  12879. sequence on OpenRISC to get the base of the global offset table, PC
  12880. relative, into a register, can be performed as:
  12881. l.jal 0x8
  12882. l.movhi r17, gotpchi(_GLOBAL_OFFSET_TABLE_-4)
  12883. l.ori r17, r17, gotpclo(_GLOBAL_OFFSET_TABLE_+0)
  12884. l.add r17, r17, r9
  12885. Several relocations exist to allow the link editor to perform GOT
  12886. data references. The 'R_OR1K_GOT16' relocation can obtained by
  12887. enclosing an operand inside of 'got'. For example, assuming the GOT
  12888. base is in register 'r17'.
  12889. l.lwz r19, got(a)(r17)
  12890. l.lwz r21, 0(r19)
  12891. Also, several relocations exist for local GOT references. The
  12892. 'R_OR1K_GOTOFF_AHI16' relocation can obtained by enclosing an operand
  12893. inside of 'gotoffha'. Likewise, 'R_OR1K_GOTOFF_LO16' and
  12894. 'R_OR1K_GOTOFF_SLO16' can be obtained by enclosing an operand inside of
  12895. 'gotofflo'. For example, assuming the GOT base is in register 'rl7':
  12896. l.movhi r19, gotoffha(symbol)
  12897. l.add r19, r19, r17
  12898. l.lwz r19, gotofflo(symbol)(r19)
  12899. The above PC relative relocations use a 'l.jal' (jump) instruction
  12900. and reading of the link register to load the PC. OpenRISC also supports
  12901. page offset PC relative locations without a jump instruction using the
  12902. 'l.adrp' instruction. By default the 'l.adrp' instruction will create
  12903. an 'R_OR1K_PCREL_PG21' relocation. Likewise, 'BFD_RELOC_OR1K_LO13' and
  12904. 'BFD_RELOC_OR1K_SLO13' can be obtained by enclosing an operand inside of
  12905. 'po'. For example:
  12906. l.adrp r3, symbol
  12907. l.ori r4, r3, po(symbol)
  12908. l.lbz r5, po(symbol)(r3)
  12909. l.sb po(symbol)(r3), r6
  12910. Likewise the page offset relocations can be used with GOT references.
  12911. The relocation 'R_OR1K_GOT_PG21' can be obtained by enclosing an
  12912. 'l.adrp' immediate operand inside of 'got'. Likewise, 'R_OR1K_GOT_LO13'
  12913. can be obtained by enclosing an operand inside of 'gotpo'. For example
  12914. to load the value of a GOT symbol into register 'r5' we can do:
  12915. l.adrp r17, got(_GLOBAL_OFFSET_TABLE_)
  12916. l.lwz r5, gotpo(symbol)(r17)
  12917. There are many relocations that can be requested for access to thread
  12918. local storage variables. All of the OpenRISC TLS mnemonics are
  12919. supported:
  12920. * 'R_OR1K_TLS_GD_HI16' is requested using 'tlsgdhi'.
  12921. * 'R_OR1K_TLS_GD_LO16' is requested using 'tlsgdlo'.
  12922. * 'R_OR1K_TLS_GD_PG21' is requested using 'tldgd'.
  12923. * 'R_OR1K_TLS_GD_LO13' is requested using 'tlsgdpo'.
  12924. * 'R_OR1K_TLS_LDM_HI16' is requested using 'tlsldmhi'.
  12925. * 'R_OR1K_TLS_LDM_LO16' is requested using 'tlsldmlo'.
  12926. * 'R_OR1K_TLS_LDM_PG21' is requested using 'tldldm'.
  12927. * 'R_OR1K_TLS_LDM_LO13' is requested using 'tlsldmpo'.
  12928. * 'R_OR1K_TLS_LDO_HI16' is requested using 'dtpoffhi'.
  12929. * 'R_OR1K_TLS_LDO_LO16' is requested using 'dtpofflo'.
  12930. * 'R_OR1K_TLS_IE_HI16' is requested using 'gottpoffhi'.
  12931. * 'R_OR1K_TLS_IE_AHI16' is requested using 'gottpoffha'.
  12932. * 'R_OR1K_TLS_IE_LO16' is requested using 'gottpofflo'.
  12933. * 'R_OR1K_TLS_IE_PG21' is requested using 'gottp'.
  12934. * 'R_OR1K_TLS_IE_LO13' is requested using 'gottppo'.
  12935. * 'R_OR1K_TLS_LE_HI16' is requested using 'tpoffhi'.
  12936. * 'R_OR1K_TLS_LE_AHI16' is requested using 'tpoffha'.
  12937. * 'R_OR1K_TLS_LE_LO16' is requested using 'tpofflo'.
  12938. * 'R_OR1K_TLS_LE_SLO16' also is requested using 'tpofflo' depending
  12939. on the instruction format.
  12940. Here are some example TLS model sequences.
  12941. First, General Dynamic:
  12942. l.movhi r17, tlsgdhi(symbol)
  12943. l.ori r17, r17, tlsgdlo(symbol)
  12944. l.add r17, r17, r16
  12945. l.or r3, r17, r17
  12946. l.jal plt(__tls_get_addr)
  12947. l.nop
  12948. Initial Exec:
  12949. l.movhi r17, gottpoffhi(symbol)
  12950. l.add r17, r17, r16
  12951. l.lwz r17, gottpofflo(symbol)(r17)
  12952. l.add r17, r17, r10
  12953. l.lbs r17, 0(r17)
  12954. And finally, Local Exec:
  12955. l.movhi r17, tpoffha(symbol)
  12956. l.add r17, r17, r10
  12957. l.addi r17, r17, tpofflo(symbol)
  12958. l.lbs r17, 0(r17)
  12959. 
  12960. File: as.info, Node: OpenRISC-Float, Next: OpenRISC-Directives, Prev: OpenRISC-Syntax, Up: OpenRISC-Dependent
  12961. 9.32.2 Floating Point
  12962. ---------------------
  12963. OpenRISC uses IEEE floating-point numbers.
  12964. 
  12965. File: as.info, Node: OpenRISC-Directives, Next: OpenRISC-Opcodes, Prev: OpenRISC-Float, Up: OpenRISC-Dependent
  12966. 9.32.3 OpenRISC Machine Directives
  12967. ----------------------------------
  12968. The OpenRISC version of 'as' supports the following additional machine
  12969. directives:
  12970. '.align'
  12971. This must be followed by the desired alignment in bytes.
  12972. '.word'
  12973. On the OpenRISC, the '.word' directive produces a 32 bit value.
  12974. '.nodelay'
  12975. On the OpenRISC, the '.nodelay' directive sets a flag in elf
  12976. binaries indicating that the binary is generated catering for no
  12977. delay slots.
  12978. '.proc'
  12979. This directive is ignored. Any text following it on the same line
  12980. is also ignored.
  12981. '.endproc'
  12982. This directive is ignored. Any text following it on the same line
  12983. is also ignored.
  12984. 
  12985. File: as.info, Node: OpenRISC-Opcodes, Prev: OpenRISC-Directives, Up: OpenRISC-Dependent
  12986. 9.32.4 Opcodes
  12987. --------------
  12988. For detailed information on the OpenRISC machine instruction set, see
  12989. <http://www.openrisc.io/architecture/>.
  12990. 'as' implements all the standard OpenRISC opcodes.
  12991. 
  12992. File: as.info, Node: PDP-11-Dependent, Next: PJ-Dependent, Prev: OpenRISC-Dependent, Up: Machine Dependencies
  12993. 9.33 PDP-11 Dependent Features
  12994. ==============================
  12995. * Menu:
  12996. * PDP-11-Options:: Options
  12997. * PDP-11-Pseudos:: Assembler Directives
  12998. * PDP-11-Syntax:: DEC Syntax versus BSD Syntax
  12999. * PDP-11-Mnemonics:: Instruction Naming
  13000. * PDP-11-Synthetic:: Synthetic Instructions
  13001. 
  13002. File: as.info, Node: PDP-11-Options, Next: PDP-11-Pseudos, Up: PDP-11-Dependent
  13003. 9.33.1 Options
  13004. --------------
  13005. The PDP-11 version of 'as' has a rich set of machine dependent options.
  13006. 9.33.1.1 Code Generation Options
  13007. ................................
  13008. '-mpic | -mno-pic'
  13009. Generate position-independent (or position-dependent) code.
  13010. The default is to generate position-independent code.
  13011. 9.33.1.2 Instruction Set Extension Options
  13012. ..........................................
  13013. These options enables or disables the use of extensions over the base
  13014. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  13015. Most options come in two variants: a '-m'EXTENSION that enables
  13016. EXTENSION, and a '-mno-'EXTENSION that disables EXTENSION.
  13017. The default is to enable all extensions.
  13018. '-mall | -mall-extensions'
  13019. Enable all instruction set extensions.
  13020. '-mno-extensions'
  13021. Disable all instruction set extensions.
  13022. '-mcis | -mno-cis'
  13023. Enable (or disable) the use of the commercial instruction set,
  13024. which consists of these instructions: 'ADDNI', 'ADDN', 'ADDPI',
  13025. 'ADDP', 'ASHNI', 'ASHN', 'ASHPI', 'ASHP', 'CMPCI', 'CMPC', 'CMPNI',
  13026. 'CMPN', 'CMPPI', 'CMPP', 'CVTLNI', 'CVTLN', 'CVTLPI', 'CVTLP',
  13027. 'CVTNLI', 'CVTNL', 'CVTNPI', 'CVTNP', 'CVTPLI', 'CVTPL', 'CVTPNI',
  13028. 'CVTPN', 'DIVPI', 'DIVP', 'L2DR', 'L3DR', 'LOCCI', 'LOCC', 'MATCI',
  13029. 'MATC', 'MOVCI', 'MOVC', 'MOVRCI', 'MOVRC', 'MOVTCI', 'MOVTC',
  13030. 'MULPI', 'MULP', 'SCANCI', 'SCANC', 'SKPCI', 'SKPC', 'SPANCI',
  13031. 'SPANC', 'SUBNI', 'SUBN', 'SUBPI', and 'SUBP'.
  13032. '-mcsm | -mno-csm'
  13033. Enable (or disable) the use of the 'CSM' instruction.
  13034. '-meis | -mno-eis'
  13035. Enable (or disable) the use of the extended instruction set, which
  13036. consists of these instructions: 'ASHC', 'ASH', 'DIV', 'MARK',
  13037. 'MUL', 'RTT', 'SOB' 'SXT', and 'XOR'.
  13038. '-mfis | -mkev11'
  13039. '-mno-fis | -mno-kev11'
  13040. Enable (or disable) the use of the KEV11 floating-point
  13041. instructions: 'FADD', 'FDIV', 'FMUL', and 'FSUB'.
  13042. '-mfpp | -mfpu | -mfp-11'
  13043. '-mno-fpp | -mno-fpu | -mno-fp-11'
  13044. Enable (or disable) the use of FP-11 floating-point instructions:
  13045. 'ABSF', 'ADDF', 'CFCC', 'CLRF', 'CMPF', 'DIVF', 'LDCFF', 'LDCIF',
  13046. 'LDEXP', 'LDF', 'LDFPS', 'MODF', 'MULF', 'NEGF', 'SETD', 'SETF',
  13047. 'SETI', 'SETL', 'STCFF', 'STCFI', 'STEXP', 'STF', 'STFPS', 'STST',
  13048. 'SUBF', and 'TSTF'.
  13049. '-mlimited-eis | -mno-limited-eis'
  13050. Enable (or disable) the use of the limited extended instruction
  13051. set: 'MARK', 'RTT', 'SOB', 'SXT', and 'XOR'.
  13052. The -mno-limited-eis options also implies -mno-eis.
  13053. '-mmfpt | -mno-mfpt'
  13054. Enable (or disable) the use of the 'MFPT' instruction.
  13055. '-mmultiproc | -mno-multiproc'
  13056. Enable (or disable) the use of multiprocessor instructions:
  13057. 'TSTSET' and 'WRTLCK'.
  13058. '-mmxps | -mno-mxps'
  13059. Enable (or disable) the use of the 'MFPS' and 'MTPS' instructions.
  13060. '-mspl | -mno-spl'
  13061. Enable (or disable) the use of the 'SPL' instruction.
  13062. Enable (or disable) the use of the microcode instructions: 'LDUB',
  13063. 'MED', and 'XFC'.
  13064. 9.33.1.3 CPU Model Options
  13065. ..........................
  13066. These options enable the instruction set extensions supported by a
  13067. particular CPU, and disables all other extensions.
  13068. '-mka11'
  13069. KA11 CPU. Base line instruction set only.
  13070. '-mkb11'
  13071. KB11 CPU. Enable extended instruction set and 'SPL'.
  13072. '-mkd11a'
  13073. KD11-A CPU. Enable limited extended instruction set.
  13074. '-mkd11b'
  13075. KD11-B CPU. Base line instruction set only.
  13076. '-mkd11d'
  13077. KD11-D CPU. Base line instruction set only.
  13078. '-mkd11e'
  13079. KD11-E CPU. Enable extended instruction set, 'MFPS', and 'MTPS'.
  13080. '-mkd11f | -mkd11h | -mkd11q'
  13081. KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction
  13082. set, 'MFPS', and 'MTPS'.
  13083. '-mkd11k'
  13084. KD11-K CPU. Enable extended instruction set, 'LDUB', 'MED', 'MFPS',
  13085. 'MFPT', 'MTPS', and 'XFC'.
  13086. '-mkd11z'
  13087. KD11-Z CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13088. 'MTPS', and 'SPL'.
  13089. '-mf11'
  13090. F11 CPU. Enable extended instruction set, 'MFPS', 'MFPT', and
  13091. 'MTPS'.
  13092. '-mj11'
  13093. J11 CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13094. 'MTPS', 'SPL', 'TSTSET', and 'WRTLCK'.
  13095. '-mt11'
  13096. T11 CPU. Enable limited extended instruction set, 'MFPS', and
  13097. 'MTPS'.
  13098. 9.33.1.4 Machine Model Options
  13099. ..............................
  13100. These options enable the instruction set extensions supported by a
  13101. particular machine model, and disables all other extensions.
  13102. '-m11/03'
  13103. Same as '-mkd11f'.
  13104. '-m11/04'
  13105. Same as '-mkd11d'.
  13106. '-m11/05 | -m11/10'
  13107. Same as '-mkd11b'.
  13108. '-m11/15 | -m11/20'
  13109. Same as '-mka11'.
  13110. '-m11/21'
  13111. Same as '-mt11'.
  13112. '-m11/23 | -m11/24'
  13113. Same as '-mf11'.
  13114. '-m11/34'
  13115. Same as '-mkd11e'.
  13116. '-m11/34a'
  13117. Ame as '-mkd11e' '-mfpp'.
  13118. '-m11/35 | -m11/40'
  13119. Same as '-mkd11a'.
  13120. '-m11/44'
  13121. Same as '-mkd11z'.
  13122. '-m11/45 | -m11/50 | -m11/55 | -m11/70'
  13123. Same as '-mkb11'.
  13124. '-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94'
  13125. Same as '-mj11'.
  13126. '-m11/60'
  13127. Same as '-mkd11k'.
  13128. 
  13129. File: as.info, Node: PDP-11-Pseudos, Next: PDP-11-Syntax, Prev: PDP-11-Options, Up: PDP-11-Dependent
  13130. 9.33.2 Assembler Directives
  13131. ---------------------------
  13132. The PDP-11 version of 'as' has a few machine dependent assembler
  13133. directives.
  13134. '.bss'
  13135. Switch to the 'bss' section.
  13136. '.even'
  13137. Align the location counter to an even number.
  13138. 
  13139. File: as.info, Node: PDP-11-Syntax, Next: PDP-11-Mnemonics, Prev: PDP-11-Pseudos, Up: PDP-11-Dependent
  13140. 9.33.3 PDP-11 Assembly Language Syntax
  13141. --------------------------------------
  13142. 'as' supports both DEC syntax and BSD syntax. The only difference is
  13143. that in DEC syntax, a '#' character is used to denote an immediate
  13144. constants, while in BSD syntax the character for this purpose is '$'.
  13145. general-purpose registers are named 'r0' through 'r7'. Mnemonic
  13146. alternatives for 'r6' and 'r7' are 'sp' and 'pc', respectively.
  13147. Floating-point registers are named 'ac0' through 'ac3', or
  13148. alternatively 'fr0' through 'fr3'.
  13149. Comments are started with a '#' or a '/' character, and extend to the
  13150. end of the line. (FIXME: clash with immediates?)
  13151. Multiple statements on the same line can be separated by the ';'
  13152. character.
  13153. 
  13154. File: as.info, Node: PDP-11-Mnemonics, Next: PDP-11-Synthetic, Prev: PDP-11-Syntax, Up: PDP-11-Dependent
  13155. 9.33.4 Instruction Naming
  13156. -------------------------
  13157. Some instructions have alternative names.
  13158. 'BCC'
  13159. 'BHIS'
  13160. 'BCS'
  13161. 'BLO'
  13162. 'L2DR'
  13163. 'L2D'
  13164. 'L3DR'
  13165. 'L3D'
  13166. 'SYS'
  13167. 'TRAP'
  13168. 
  13169. File: as.info, Node: PDP-11-Synthetic, Prev: PDP-11-Mnemonics, Up: PDP-11-Dependent
  13170. 9.33.5 Synthetic Instructions
  13171. -----------------------------
  13172. The 'JBR' and 'J'CC synthetic instructions are not supported yet.
  13173. 
  13174. File: as.info, Node: PJ-Dependent, Next: PPC-Dependent, Prev: PDP-11-Dependent, Up: Machine Dependencies
  13175. 9.34 picoJava Dependent Features
  13176. ================================
  13177. * Menu:
  13178. * PJ Options:: Options
  13179. * PJ Syntax:: PJ Syntax
  13180. 
  13181. File: as.info, Node: PJ Options, Next: PJ Syntax, Up: PJ-Dependent
  13182. 9.34.1 Options
  13183. --------------
  13184. 'as' has two additional command-line options for the picoJava
  13185. architecture.
  13186. '-ml'
  13187. This option selects little endian data output.
  13188. '-mb'
  13189. This option selects big endian data output.
  13190. 
  13191. File: as.info, Node: PJ Syntax, Prev: PJ Options, Up: PJ-Dependent
  13192. 9.34.2 PJ Syntax
  13193. ----------------
  13194. * Menu:
  13195. * PJ-Chars:: Special Characters
  13196. 
  13197. File: as.info, Node: PJ-Chars, Up: PJ Syntax
  13198. 9.34.2.1 Special Characters
  13199. ...........................
  13200. The presence of a '!' or '/' on a line indicates the start of a comment
  13201. that extends to the end of the current line.
  13202. If a '#' appears as the first character of a line then the whole line
  13203. is treated as a comment, but in this case the line could also be a
  13204. logical line number directive (*note Comments::) or a preprocessor
  13205. control command (*note Preprocessing::).
  13206. The ';' character can be used to separate statements on the same
  13207. line.
  13208. 
  13209. File: as.info, Node: PPC-Dependent, Next: PRU-Dependent, Prev: PJ-Dependent, Up: Machine Dependencies
  13210. 9.35 PowerPC Dependent Features
  13211. ===============================
  13212. * Menu:
  13213. * PowerPC-Opts:: Options
  13214. * PowerPC-Pseudo:: PowerPC Assembler Directives
  13215. * PowerPC-Syntax:: PowerPC Syntax
  13216. 
  13217. File: as.info, Node: PowerPC-Opts, Next: PowerPC-Pseudo, Up: PPC-Dependent
  13218. 9.35.1 Options
  13219. --------------
  13220. The PowerPC chip family includes several successive levels, using the
  13221. same core instruction set, but including a few additional instructions
  13222. at each level. There are exceptions to this however. For details on
  13223. what instructions each variant supports, please see the chip's
  13224. architecture reference manual.
  13225. The following table lists all available PowerPC options.
  13226. '-a32'
  13227. Generate ELF32 or XCOFF32.
  13228. '-a64'
  13229. Generate ELF64 or XCOFF64.
  13230. '-K PIC'
  13231. Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  13232. '-mpwrx | -mpwr2'
  13233. Generate code for POWER/2 (RIOS2).
  13234. '-mpwr'
  13235. Generate code for POWER (RIOS1)
  13236. '-m601'
  13237. Generate code for PowerPC 601.
  13238. '-mppc, -mppc32, -m603, -m604'
  13239. Generate code for PowerPC 603/604.
  13240. '-m403, -m405'
  13241. Generate code for PowerPC 403/405.
  13242. '-m440'
  13243. Generate code for PowerPC 440. BookE and some 405 instructions.
  13244. '-m464'
  13245. Generate code for PowerPC 464.
  13246. '-m476'
  13247. Generate code for PowerPC 476.
  13248. '-m7400, -m7410, -m7450, -m7455'
  13249. Generate code for PowerPC 7400/7410/7450/7455.
  13250. '-m750cl, -mgekko, -mbroadway'
  13251. Generate code for PowerPC 750CL/Gekko/Broadway.
  13252. '-m821, -m850, -m860'
  13253. Generate code for PowerPC 821/850/860.
  13254. '-mppc64, -m620'
  13255. Generate code for PowerPC 620/625/630.
  13256. '-me500, -me500x2'
  13257. Generate code for Motorola e500 core complex.
  13258. '-me500mc'
  13259. Generate code for Freescale e500mc core complex.
  13260. '-me500mc64'
  13261. Generate code for Freescale e500mc64 core complex.
  13262. '-me5500'
  13263. Generate code for Freescale e5500 core complex.
  13264. '-me6500'
  13265. Generate code for Freescale e6500 core complex.
  13266. '-mspe'
  13267. Generate code for Motorola SPE instructions.
  13268. '-mspe2'
  13269. Generate code for Freescale SPE2 instructions.
  13270. '-mtitan'
  13271. Generate code for AppliedMicro Titan core complex.
  13272. '-mppc64bridge'
  13273. Generate code for PowerPC 64, including bridge insns.
  13274. '-mbooke'
  13275. Generate code for 32-bit BookE.
  13276. '-ma2'
  13277. Generate code for A2 architecture.
  13278. '-me300'
  13279. Generate code for PowerPC e300 family.
  13280. '-maltivec'
  13281. Generate code for processors with AltiVec instructions.
  13282. '-mvle'
  13283. Generate code for Freescale PowerPC VLE instructions.
  13284. '-mvsx'
  13285. Generate code for processors with Vector-Scalar (VSX) instructions.
  13286. '-mhtm'
  13287. Generate code for processors with Hardware Transactional Memory
  13288. instructions.
  13289. '-mpower4, -mpwr4'
  13290. Generate code for Power4 architecture.
  13291. '-mpower5, -mpwr5, -mpwr5x'
  13292. Generate code for Power5 architecture.
  13293. '-mpower6, -mpwr6'
  13294. Generate code for Power6 architecture.
  13295. '-mpower7, -mpwr7'
  13296. Generate code for Power7 architecture.
  13297. '-mpower8, -mpwr8'
  13298. Generate code for Power8 architecture.
  13299. '-mpower9, -mpwr9'
  13300. Generate code for Power9 architecture.
  13301. '-mcell'
  13302. '-mcell'
  13303. Generate code for Cell Broadband Engine architecture.
  13304. '-mcom'
  13305. Generate code Power/PowerPC common instructions.
  13306. '-many'
  13307. Generate code for any architecture (PWR/PWRX/PPC).
  13308. '-mregnames'
  13309. Allow symbolic names for registers.
  13310. '-mno-regnames'
  13311. Do not allow symbolic names for registers.
  13312. '-mrelocatable'
  13313. Support for GCC's -mrelocatable option.
  13314. '-mrelocatable-lib'
  13315. Support for GCC's -mrelocatable-lib option.
  13316. '-memb'
  13317. Set PPC_EMB bit in ELF flags.
  13318. '-mlittle, -mlittle-endian, -le'
  13319. Generate code for a little endian machine.
  13320. '-mbig, -mbig-endian, -be'
  13321. Generate code for a big endian machine.
  13322. '-msolaris'
  13323. Generate code for Solaris.
  13324. '-mno-solaris'
  13325. Do not generate code for Solaris.
  13326. '-nops=COUNT'
  13327. If an alignment directive inserts more than COUNT nops, put a
  13328. branch at the beginning to skip execution of the nops.
  13329. 
  13330. File: as.info, Node: PowerPC-Pseudo, Next: PowerPC-Syntax, Prev: PowerPC-Opts, Up: PPC-Dependent
  13331. 9.35.2 PowerPC Assembler Directives
  13332. -----------------------------------
  13333. A number of assembler directives are available for PowerPC. The
  13334. following table is far from complete.
  13335. '.machine "string"'
  13336. This directive allows you to change the machine for which code is
  13337. generated. '"string"' may be any of the -m cpu selection options
  13338. (without the -m) enclosed in double quotes, '"push"', or '"pop"'.
  13339. '.machine "push"' saves the currently selected cpu, which may be
  13340. restored with '.machine "pop"'.
  13341. 
  13342. File: as.info, Node: PowerPC-Syntax, Prev: PowerPC-Pseudo, Up: PPC-Dependent
  13343. 9.35.3 PowerPC Syntax
  13344. ---------------------
  13345. * Menu:
  13346. * PowerPC-Chars:: Special Characters
  13347. 
  13348. File: as.info, Node: PowerPC-Chars, Up: PowerPC-Syntax
  13349. 9.35.3.1 Special Characters
  13350. ...........................
  13351. The presence of a '#' on a line indicates the start of a comment that
  13352. extends to the end of the current line.
  13353. If a '#' appears as the first character of a line then the whole line
  13354. is treated as a comment, but in this case the line could also be a
  13355. logical line number directive (*note Comments::) or a preprocessor
  13356. control command (*note Preprocessing::).
  13357. If the assembler has been configured for the ppc-*-solaris* target
  13358. then the '!' character also acts as a line comment character. This can
  13359. be disabled via the '-mno-solaris' command-line option.
  13360. The ';' character can be used to separate statements on the same
  13361. line.
  13362. 
  13363. File: as.info, Node: PRU-Dependent, Next: RISC-V-Dependent, Prev: PPC-Dependent, Up: Machine Dependencies
  13364. 9.36 PRU Dependent Features
  13365. ===========================
  13366. * Menu:
  13367. * PRU Options:: Options
  13368. * PRU Syntax:: Syntax
  13369. * PRU Relocations:: Relocations
  13370. * PRU Directives:: PRU Machine Directives
  13371. * PRU Opcodes:: Opcodes
  13372. 
  13373. File: as.info, Node: PRU Options, Next: PRU Syntax, Up: PRU-Dependent
  13374. 9.36.1 Options
  13375. --------------
  13376. '-mlink-relax'
  13377. Assume that LD would optimize LDI32 instructions by checking the
  13378. upper 16 bits of the EXPRESSION. If they are all zeros, then LD
  13379. would shorten the LDI32 instruction to a single LDI. In such case
  13380. 'as' will output DIFF relocations for diff expressions.
  13381. '-mno-link-relax'
  13382. Assume that LD would not optimize LDI32 instructions. As a
  13383. consequence, DIFF relocations will not be emitted.
  13384. '-mno-warn-regname-label'
  13385. Do not warn if a label name matches a register name. Usually
  13386. assembler programmers will want this warning to be emitted. C
  13387. compilers may want to turn this off.
  13388. 
  13389. File: as.info, Node: PRU Syntax, Next: PRU Relocations, Prev: PRU Options, Up: PRU-Dependent
  13390. 9.36.2 Syntax
  13391. -------------
  13392. * Menu:
  13393. * PRU Chars:: Special Characters
  13394. 
  13395. File: as.info, Node: PRU Chars, Up: PRU Syntax
  13396. 9.36.2.1 Special Characters
  13397. ...........................
  13398. '#' and ';' are the line comment characters.
  13399. 
  13400. File: as.info, Node: PRU Relocations, Next: PRU Directives, Prev: PRU Syntax, Up: PRU-Dependent
  13401. 9.36.3 PRU Machine Relocations
  13402. ------------------------------
  13403. '%pmem(EXPRESSION)'
  13404. Convert EXPRESSION from byte-address to a word-address. In other
  13405. words, shift right by two.
  13406. '%label(EXPRESSION)'
  13407. Mark the given operand as a label. This is useful if you need to
  13408. jump to a label that matches a register name.
  13409. r1:
  13410. jmp r1 ; Will jump to register R1
  13411. jmp %label(r1) ; Will jump to label r1
  13412. 
  13413. File: as.info, Node: PRU Directives, Next: PRU Opcodes, Prev: PRU Relocations, Up: PRU-Dependent
  13414. 9.36.4 PRU Machine Directives
  13415. -----------------------------
  13416. '.align EXPRESSION [, EXPRESSION]'
  13417. This is the generic '.align' directive, however this aligns to a
  13418. power of two.
  13419. '.word EXPRESSION'
  13420. Create an aligned constant 4 bytes in size.
  13421. '.dword EXPRESSION'
  13422. Create an aligned constant 8 bytes in size.
  13423. '.2byte EXPRESSION'
  13424. Create an unaligned constant 2 bytes in size.
  13425. '.4byte EXPRESSION'
  13426. Create an unaligned constant 4 bytes in size.
  13427. '.8byte EXPRESSION'
  13428. Create an unaligned constant 8 bytes in size.
  13429. '.16byte EXPRESSION'
  13430. Create an unaligned constant 16 bytes in size.
  13431. '.set no_warn_regname_label'
  13432. Do not output warnings when a label name matches a register name.
  13433. Equivalent to passing the '-mno-warn-regname-label' command-line
  13434. option.
  13435. 
  13436. File: as.info, Node: PRU Opcodes, Prev: PRU Directives, Up: PRU-Dependent
  13437. 9.36.5 Opcodes
  13438. --------------
  13439. 'as' implements all the standard PRU core V3 opcodes in the original
  13440. pasm assembler. Older cores are not supported by 'as'.
  13441. GAS also implements the LDI32 pseudo instruction for loading a 32-bit
  13442. immediate value into a register.
  13443. ldi32 sp, __stack_top
  13444. ldi32 r14, 0x12345678
  13445. 
  13446. File: as.info, Node: RISC-V-Dependent, Next: RL78-Dependent, Prev: PRU-Dependent, Up: Machine Dependencies
  13447. 9.37 RISC-V Dependent Features
  13448. ==============================
  13449. * Menu:
  13450. * RISC-V-Options:: RISC-V Options
  13451. * RISC-V-Directives:: RISC-V Directives
  13452. * RISC-V-Formats:: RISC-V Instruction Formats
  13453. * RISC-V-ATTRIBUTE:: RISC-V Object Attribute
  13454. 
  13455. File: as.info, Node: RISC-V-Options, Next: RISC-V-Directives, Up: RISC-V-Dependent
  13456. 9.37.1 RISC-V Options
  13457. ---------------------
  13458. The following table lists all available RISC-V specific options.
  13459. '-fpic'
  13460. '-fPIC'
  13461. Generate position-independent code
  13462. '-fno-pic'
  13463. Don't generate position-independent code (default)
  13464. '-march=ISA'
  13465. Select the base isa, as specified by ISA. For example
  13466. -march=rv32ima.
  13467. '-mabi=ABI'
  13468. Selects the ABI, which is either "ilp32" or "lp64", optionally
  13469. followed by "f", "d", or "q" to indicate single-precision,
  13470. double-precision, or quad-precision floating-point calling
  13471. convention, or none to indicate the soft-float calling convention.
  13472. Also, "ilp32" can optionally be followed by "e" to indicate the RVE
  13473. ABI, which is always soft-float.
  13474. '-mrelax'
  13475. Take advantage of linker relaxations to reduce the number of
  13476. instructions required to materialize symbol addresses. (default)
  13477. '-mno-relax'
  13478. Don't do linker relaxations.
  13479. 
  13480. File: as.info, Node: RISC-V-Directives, Next: RISC-V-Formats, Prev: RISC-V-Options, Up: RISC-V-Dependent
  13481. 9.37.2 RISC-V Directives
  13482. ------------------------
  13483. The following table lists all available RISC-V specific directives.
  13484. '.align SIZE-LOG-2'
  13485. Align to the given boundary, with the size given as log2 the number
  13486. of bytes to align to.
  13487. '.half VALUE'
  13488. '.word VALUE'
  13489. '.dword VALUE'
  13490. Emits a half-word, word, or double-word value at the current
  13491. position.
  13492. '.dtprelword VALUE'
  13493. '.dtpreldword VALUE'
  13494. Emits a DTP-relative word (or double-word) at the current position.
  13495. This is meant to be used by the compiler in shared libraries for
  13496. DWARF debug info for thread local variables.
  13497. '.bss'
  13498. Sets the current section to the BSS section.
  13499. '.uleb128 VALUE'
  13500. '.sleb128 VALUE'
  13501. Emits a signed or unsigned LEB128 value at the current position.
  13502. This only accepts constant expressions, because symbol addresses
  13503. can change with relaxation, and we don't support relocations to
  13504. modify LEB128 values at link time.
  13505. '.option ARGUMENT'
  13506. Modifies RISC-V specific assembler options inline with the assembly
  13507. code. This is used when particular instruction sequences must be
  13508. assembled with a specific set of options. For example, since we
  13509. relax addressing sequences to shorter GP-relative sequences when
  13510. possible the initial load of GP must not be relaxed and should be
  13511. emitted as something like
  13512. .option push
  13513. .option norelax
  13514. la gp, __global_pointer$
  13515. .option pop
  13516. in order to produce after linker relaxation the expected
  13517. auipc gp, %pcrel_hi(__global_pointer$)
  13518. addi gp, gp, %pcrel_lo(__global_pointer$)
  13519. instead of just
  13520. addi gp, gp, 0
  13521. It's not expected that options are changed in this manner during
  13522. regular use, but there are a handful of esoteric cases like the one
  13523. above where users need to disable particular features of the
  13524. assembler for particular code sequences. The complete list of
  13525. option arguments is shown below:
  13526. 'push'
  13527. 'pop'
  13528. Pushes or pops the current option stack. These should be used
  13529. whenever changing an option in line with assembly code in
  13530. order to ensure the user's command-line options are respected
  13531. for the bulk of the file being assembled.
  13532. 'rvc'
  13533. 'norvc'
  13534. Enables or disables the generation of compressed instructions.
  13535. Instructions are opportunistically compressed by the RISC-V
  13536. assembler when possible, but sometimes this behavior is not
  13537. desirable.
  13538. 'pic'
  13539. 'nopic'
  13540. Enables or disables position-independent code generation.
  13541. Unless you really know what you're doing, this should only be
  13542. at the top of a file.
  13543. 'relax'
  13544. 'norelax'
  13545. Enables or disables relaxation. The RISC-V assembler and
  13546. linker opportunistically relax some code sequences, but
  13547. sometimes this behavior is not desirable.
  13548. '.insn VALUE'
  13549. '.insn VALUE'
  13550. This directive permits the numeric representation of an
  13551. instructions and makes the assembler insert the operands according
  13552. to one of the instruction formats for '.insn' (*note
  13553. RISC-V-Formats::). For example, the instruction 'add a0, a1, a2'
  13554. could be written as '.insn r 0x33, 0, 0, a0, a1, a2'.
  13555. '.attribute TAG, VALUE'
  13556. Set the object attribute TAG to VALUE.
  13557. The TAG is either an attribute number, or one of the following:
  13558. 'Tag_RISCV_arch', 'Tag_RISCV_stack_align',
  13559. 'Tag_RISCV_unaligned_access', 'Tag_RISCV_priv_spec',
  13560. 'Tag_RISCV_priv_spec_minor', 'Tag_RISCV_priv_spec_revision'.
  13561. 
  13562. File: as.info, Node: RISC-V-Formats, Next: RISC-V-ATTRIBUTE, Prev: RISC-V-Directives, Up: RISC-V-Dependent
  13563. 9.37.3 Instruction Formats
  13564. --------------------------
  13565. The RISC-V Instruction Set Manual Volume I: User-Level ISA lists 12
  13566. instruction formats where some of the formats have multiple variants.
  13567. For the '.insn' pseudo directive the assembler recognizes some of the
  13568. formats. Typically, the most general variant of the instruction format
  13569. is used by the '.insn' directive.
  13570. The following table lists the abbreviations used in the table of
  13571. instruction formats:
  13572. opcode Unsigned immediate or opcode name for 7-bits opcode.
  13573. opcode2 Unsigned immediate or opcode name for 2-bits opcode.
  13574. func7 Unsigned immediate for 7-bits function code.
  13575. func6 Unsigned immediate for 6-bits function code.
  13576. func4 Unsigned immediate for 4-bits function code.
  13577. func3 Unsigned immediate for 3-bits function code.
  13578. func2 Unsigned immediate for 2-bits function code.
  13579. rd Destination register number for operand x, can be GPR or FPR.
  13580. rd' Destination register number for operand x,
  13581. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  13582. rs1 First source register number for operand x, can be GPR or FPR.
  13583. rs1' First source register number for operand x,
  13584. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  13585. rs2 Second source register number for operand x, can be GPR or FPR.
  13586. rs2' Second source register number for operand x,
  13587. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  13588. simm12 Sign-extended 12-bit immediate for operand x.
  13589. simm20 Sign-extended 20-bit immediate for operand x.
  13590. simm6 Sign-extended 6-bit immediate for operand x.
  13591. uimm8 Unsigned 8-bit immediate for operand x.
  13592. symbol Symbol or lable reference for operand x.
  13593. The following table lists all available opcode name:
  13594. 'C0'
  13595. 'C1'
  13596. 'C2'
  13597. Opcode space for compressed instructions.
  13598. 'LOAD'
  13599. Opcode space for load instructions.
  13600. 'LOAD_FP'
  13601. Opcode space for floating-point load instructions.
  13602. 'STORE'
  13603. Opcode space for store instructions.
  13604. 'STORE_FP'
  13605. Opcode space for floating-point store instructions.
  13606. 'AUIPC'
  13607. Opcode space for auipc instruction.
  13608. 'LUI'
  13609. Opcode space for lui instruction.
  13610. 'BRANCH'
  13611. Opcode space for branch instructions.
  13612. 'JAL'
  13613. Opcode space for jal instruction.
  13614. 'JALR'
  13615. Opcode space for jalr instruction.
  13616. 'OP'
  13617. Opcode space for ALU instructions.
  13618. 'OP_32'
  13619. Opcode space for 32-bits ALU instructions.
  13620. 'OP_IMM'
  13621. Opcode space for ALU with immediate instructions.
  13622. 'OP_IMM_32'
  13623. Opcode space for 32-bits ALU with immediate instructions.
  13624. 'OP_FP'
  13625. Opcode space for floating-point operation instructions.
  13626. 'MADD'
  13627. Opcode space for madd instruction.
  13628. 'MSUB'
  13629. Opcode space for msub instruction.
  13630. 'NMADD'
  13631. Opcode space for nmadd instruction.
  13632. 'NMSUB'
  13633. Opcode space for msub instruction.
  13634. 'AMO'
  13635. Opcode space for atomic memory operation instructions.
  13636. 'MISC_MEM'
  13637. Opcode space for misc instructions.
  13638. 'SYSTEM'
  13639. Opcode space for system instructions.
  13640. 'CUSTOM_0'
  13641. 'CUSTOM_1'
  13642. 'CUSTOM_2'
  13643. 'CUSTOM_3'
  13644. Opcode space for customize instructions.
  13645. An instruction is two or four bytes in length and must be aligned on
  13646. a 2 byte boundary. The first two bits of the instruction specify the
  13647. length of the instruction, 00, 01 and 10 indicates a two byte
  13648. instruction, 11 indicates a four byte instruction.
  13649. The following table lists the RISC-V instruction formats that are
  13650. available with the '.insn' pseudo directive:
  13651. 'R type: .insn r opcode, func3, func7, rd, rs1, rs2'
  13652. +-------+-----+-----+-------+----+-------------+
  13653. | func7 | rs2 | rs1 | func3 | rd | opcode |
  13654. +-------+-----+-----+-------+----+-------------+
  13655. 31 25 20 15 12 7 0
  13656. 'R type with 4 register operands: .insn r opcode, func3, func2, rd, rs1, rs2, rs3'
  13657. 'R4 type: .insn r4 opcode, func3, func2, rd, rs1, rs2, rs3'
  13658. +-----+-------+-----+-----+-------+----+-------------+
  13659. | rs3 | func2 | rs2 | rs1 | func3 | rd | opcode |
  13660. +-----+-------+-----+-----+-------+----+-------------+
  13661. 31 27 25 20 15 12 7 0
  13662. 'I type: .insn i opcode, func3, rd, rs1, simm12'
  13663. +-------------+-----+-------+----+-------------+
  13664. | simm12 | rs1 | func3 | rd | opcode |
  13665. +-------------+-----+-------+----+-------------+
  13666. 31 20 15 12 7 0
  13667. 'S type: .insn s opcode, func3, rd, rs1, simm12'
  13668. +--------------+-----+-----+-------+-------------+-------------+
  13669. | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode |
  13670. +--------------+-----+-----+-------+-------------+-------------+
  13671. 31 25 20 15 12 7 0
  13672. 'SB type: .insn sb opcode, func3, rd, rs1, symbol'
  13673. 'SB type: .insn sb opcode, func3, rd, simm12(rs1)'
  13674. 'B type: .insn s opcode, func3, rd, rs1, symbol'
  13675. 'B type: .insn s opcode, func3, rd, simm12(rs1)'
  13676. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  13677. | simm12[12] | simm12[10:5] | rs2 | rs1 | func3 | simm12[4:1] | simm12[11]] | opcode |
  13678. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  13679. 31 30 25 20 15 12 7 0
  13680. 'U type: .insn u opcode, rd, simm20'
  13681. +---------------------------+----+-------------+
  13682. | simm20 | rd | opcode |
  13683. +---------------------------+----+-------------+
  13684. 31 12 7 0
  13685. 'UJ type: .insn uj opcode, rd, symbol'
  13686. 'J type: .insn j opcode, rd, symbol'
  13687. +------------+--------------+------------+---------------+----+-------------+
  13688. | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode |
  13689. +------------+--------------+------------+---------------+----+-------------+
  13690. 31 30 21 20 12 7 0
  13691. 'CR type: .insn cr opcode2, func4, rd, rs2'
  13692. +---------+--------+-----+---------+
  13693. | func4 | rd/rs1 | rs2 | opcode2 |
  13694. +---------+--------+-----+---------+
  13695. 15 12 7 2 0
  13696. 'CI type: .insn ci opcode2, func3, rd, simm6'
  13697. +---------+-----+--------+-----+---------+
  13698. | func3 | imm | rd/rs1 | imm | opcode2 |
  13699. +---------+-----+--------+-----+---------+
  13700. 15 13 12 7 2 0
  13701. 'CIW type: .insn ciw opcode2, func3, rd, uimm8'
  13702. +---------+--------------+-----+---------+
  13703. | func3 | imm | rd' | opcode2 |
  13704. +---------+--------------+-----+---------+
  13705. 15 13 7 2 0
  13706. 'CA type: .insn ca opcode2, func6, func2, rd, rs2'
  13707. +---------+----------+-------+------+--------+
  13708. | func6 | rd'/rs1' | func2 | rs2' | opcode |
  13709. +---------+----------+-------+------+--------+
  13710. 15 10 7 5 2 0
  13711. 'CB type: .insn cb opcode2, func3, rs1, symbol'
  13712. +---------+--------+------+--------+---------+
  13713. | func3 | offset | rs1' | offset | opcode2 |
  13714. +---------+--------+------+--------+---------+
  13715. 15 13 10 7 2 0
  13716. 'CJ type: .insn cj opcode2, symbol'
  13717. +---------+--------------------+---------+
  13718. | func3 | jump target | opcode2 |
  13719. +---------+--------------------+---------+
  13720. 15 13 7 2 0
  13721. For the complete list of all instruction format variants see The
  13722. RISC-V Instruction Set Manual Volume I: User-Level ISA.
  13723. 
  13724. File: as.info, Node: RISC-V-ATTRIBUTE, Prev: RISC-V-Formats, Up: RISC-V-Dependent
  13725. 9.37.4 RISC-V Object Attribute
  13726. ------------------------------
  13727. RISC-V attributes have a string value if the tag number is odd and an
  13728. integer value if the tag number is even.
  13729. Tag_RISCV_stack_align (4)
  13730. Tag_RISCV_strict_align records the N-byte stack alignment for this
  13731. object. The default value is 16 for RV32I or RV64I, and 4 for
  13732. RV32E.
  13733. The smallest value will be used if object files with different
  13734. Tag_RISCV_stack_align values are merged.
  13735. Tag_RISCV_arch (5)
  13736. Tag_RISCV_arch contains a string for the target architecture taken
  13737. from the option '-march'. Different architectures will be
  13738. integrated into a superset when object files are merged.
  13739. Note that the version information of the target architecture must
  13740. be presented explicitly in the attribute and abbreviations must be
  13741. expanded. The version information, if not given by '-march', must
  13742. be in accordance with the default specified by the tool. For
  13743. example, the architecture 'RV32I' has to be recorded in the
  13744. attribute as 'RV32I2P0' in which '2P0' stands for the default
  13745. version of its base ISA. On the other hand, the architecture
  13746. 'RV32G' has to be presented as 'RV32I2P0_M2P0_A2P0_F2P0_D2P0' in
  13747. which the abbreviation 'G' is expanded to the 'IMAFD' combination
  13748. with default versions of the standard extensions.
  13749. Tag_RISCV_unaligned_access (6)
  13750. Tag_RISCV_unaligned_access is 0 for files that do not allow any
  13751. unaligned memory accesses, and 1 for files that do allow unaligned
  13752. memory accesses.
  13753. Tag_RISCV_priv_spec (8)
  13754. Tag_RISCV_priv_spec_minor (10)
  13755. Tag_RISCV_priv_spec_revision (12)
  13756. Tag_RISCV_priv_spec contains the major/minor/revision version
  13757. information of the privileged specification. It will report errors
  13758. if object files of different privileged specification versions are
  13759. merged.
  13760. 
  13761. File: as.info, Node: RL78-Dependent, Next: RX-Dependent, Prev: RISC-V-Dependent, Up: Machine Dependencies
  13762. 9.38 RL78 Dependent Features
  13763. ============================
  13764. * Menu:
  13765. * RL78-Opts:: RL78 Assembler Command-line Options
  13766. * RL78-Modifiers:: Symbolic Operand Modifiers
  13767. * RL78-Directives:: Assembler Directives
  13768. * RL78-Syntax:: Syntax
  13769. 
  13770. File: as.info, Node: RL78-Opts, Next: RL78-Modifiers, Up: RL78-Dependent
  13771. 9.38.1 RL78 Options
  13772. -------------------
  13773. 'relax'
  13774. Enable support for link-time relaxation.
  13775. 'norelax'
  13776. Disable support for link-time relaxation (default).
  13777. 'mg10'
  13778. Mark the generated binary as targeting the G10 variant of the RL78
  13779. architecture.
  13780. 'mg13'
  13781. Mark the generated binary as targeting the G13 variant of the RL78
  13782. architecture.
  13783. 'mg14'
  13784. 'mrl78'
  13785. Mark the generated binary as targeting the G14 variant of the RL78
  13786. architecture. This is the default.
  13787. 'm32bit-doubles'
  13788. Mark the generated binary as one that uses 32-bits to hold the
  13789. 'double' floating point type. This is the default.
  13790. 'm64bit-doubles'
  13791. Mark the generated binary as one that uses 64-bits to hold the
  13792. 'double' floating point type.
  13793. 
  13794. File: as.info, Node: RL78-Modifiers, Next: RL78-Directives, Prev: RL78-Opts, Up: RL78-Dependent
  13795. 9.38.2 Symbolic Operand Modifiers
  13796. ---------------------------------
  13797. The RL78 has three modifiers that adjust the relocations used by the
  13798. linker:
  13799. '%lo16()'
  13800. When loading a 20-bit (or wider) address into registers, this
  13801. modifier selects the 16 least significant bits.
  13802. movw ax,#%lo16(_sym)
  13803. '%hi16()'
  13804. When loading a 20-bit (or wider) address into registers, this
  13805. modifier selects the 16 most significant bits.
  13806. movw ax,#%hi16(_sym)
  13807. '%hi8()'
  13808. When loading a 20-bit (or wider) address into registers, this
  13809. modifier selects the 8 bits that would go into CS or ES (i.e. bits
  13810. 23..16).
  13811. mov es, #%hi8(_sym)
  13812. 
  13813. File: as.info, Node: RL78-Directives, Next: RL78-Syntax, Prev: RL78-Modifiers, Up: RL78-Dependent
  13814. 9.38.3 Assembler Directives
  13815. ---------------------------
  13816. In addition to the common directives, the RL78 adds these:
  13817. '.double'
  13818. Output a constant in "double" format, which is either a 32-bit or a
  13819. 64-bit floating point value, depending upon the setting of the
  13820. '-m32bit-doubles'|'-m64bit-doubles' command-line option.
  13821. '.bss'
  13822. Select the BSS section.
  13823. '.3byte'
  13824. Output a constant value in a three byte format.
  13825. '.int'
  13826. '.word'
  13827. Output a constant value in a four byte format.
  13828. 
  13829. File: as.info, Node: RL78-Syntax, Prev: RL78-Directives, Up: RL78-Dependent
  13830. 9.38.4 Syntax for the RL78
  13831. --------------------------
  13832. * Menu:
  13833. * RL78-Chars:: Special Characters
  13834. 
  13835. File: as.info, Node: RL78-Chars, Up: RL78-Syntax
  13836. 9.38.4.1 Special Characters
  13837. ...........................
  13838. The presence of a ';' appearing anywhere on a line indicates the start
  13839. of a comment that extends to the end of that line.
  13840. If a '#' appears as the first character of a line then the whole line
  13841. is treated as a comment, but in this case the line can also be a logical
  13842. line number directive (*note Comments::) or a preprocessor control
  13843. command (*note Preprocessing::).
  13844. The '|' character can be used to separate statements on the same
  13845. line.
  13846. 
  13847. File: as.info, Node: RX-Dependent, Next: S/390-Dependent, Prev: RL78-Dependent, Up: Machine Dependencies
  13848. 9.39 RX Dependent Features
  13849. ==========================
  13850. * Menu:
  13851. * RX-Opts:: RX Assembler Command-line Options
  13852. * RX-Modifiers:: Symbolic Operand Modifiers
  13853. * RX-Directives:: Assembler Directives
  13854. * RX-Float:: Floating Point
  13855. * RX-Syntax:: Syntax
  13856. 
  13857. File: as.info, Node: RX-Opts, Next: RX-Modifiers, Up: RX-Dependent
  13858. 9.39.1 RX Options
  13859. -----------------
  13860. The Renesas RX port of 'as' has a few target specific command-line
  13861. options:
  13862. '-m32bit-doubles'
  13863. This option controls the ABI and indicates to use a 32-bit float
  13864. ABI. It has no effect on the assembled instructions, but it does
  13865. influence the behaviour of the '.double' pseudo-op. This is the
  13866. default.
  13867. '-m64bit-doubles'
  13868. This option controls the ABI and indicates to use a 64-bit float
  13869. ABI. It has no effect on the assembled instructions, but it does
  13870. influence the behaviour of the '.double' pseudo-op.
  13871. '-mbig-endian'
  13872. This option controls the ABI and indicates to use a big-endian data
  13873. ABI. It has no effect on the assembled instructions, but it does
  13874. influence the behaviour of the '.short', '.hword', '.int', '.word',
  13875. '.long', '.quad' and '.octa' pseudo-ops.
  13876. '-mlittle-endian'
  13877. This option controls the ABI and indicates to use a little-endian
  13878. data ABI. It has no effect on the assembled instructions, but it
  13879. does influence the behaviour of the '.short', '.hword', '.int',
  13880. '.word', '.long', '.quad' and '.octa' pseudo-ops. This is the
  13881. default.
  13882. '-muse-conventional-section-names'
  13883. This option controls the default names given to the code (.text),
  13884. initialised data (.data) and uninitialised data sections (.bss).
  13885. '-muse-renesas-section-names'
  13886. This option controls the default names given to the code (.P),
  13887. initialised data (.D_1) and uninitialised data sections (.B_1).
  13888. This is the default.
  13889. '-msmall-data-limit'
  13890. This option tells the assembler that the small data limit feature
  13891. of the RX port of GCC is being used. This results in the assembler
  13892. generating an undefined reference to a symbol called '__gp' for use
  13893. by the relocations that are needed to support the small data limit
  13894. feature. This option is not enabled by default as it would
  13895. otherwise pollute the symbol table.
  13896. '-mpid'
  13897. This option tells the assembler that the position independent data
  13898. of the RX port of GCC is being used. This results in the assembler
  13899. generating an undefined reference to a symbol called '__pid_base',
  13900. and also setting the RX_PID flag bit in the e_flags field of the
  13901. ELF header of the object file.
  13902. '-mint-register=NUM'
  13903. This option tells the assembler how many registers have been
  13904. reserved for use by interrupt handlers. This is needed in order to
  13905. compute the correct values for the '%gpreg' and '%pidreg' meta
  13906. registers.
  13907. '-mgcc-abi'
  13908. This option tells the assembler that the old GCC ABI is being used
  13909. by the assembled code. With this version of the ABI function
  13910. arguments that are passed on the stack are aligned to a 32-bit
  13911. boundary.
  13912. '-mrx-abi'
  13913. This option tells the assembler that the official RX ABI is being
  13914. used by the assembled code. With this version of the ABI function
  13915. arguments that are passed on the stack are aligned to their natural
  13916. alignments. This option is the default.
  13917. '-mcpu=NAME'
  13918. This option tells the assembler the target CPU type. Currently the
  13919. 'rx100', 'rx200', 'rx600', 'rx610', 'rxv2', 'rxv3' and 'rxv3-dfpu'
  13920. are recognised as valid cpu names. Attempting to assemble an
  13921. instructionnot supported by the indicated cpu type will result in
  13922. an error message being generated.
  13923. '-mno-allow-string-insns'
  13924. This option tells the assembler to mark the object file that it is
  13925. building as one that does not use the string instructions 'SMOVF',
  13926. 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' or the 'RMPA'
  13927. instruction. In addition the mark tells the linker to complain if
  13928. an attempt is made to link the binary with another one that does
  13929. use any of these instructions.
  13930. Note - the inverse of this option, '-mallow-string-insns', is not
  13931. needed. The assembler automatically detects the use of the the
  13932. instructions in the source code and labels the resulting object
  13933. file appropriately. If no string instructions are detected then
  13934. the object file is labelled as being one that can be linked with
  13935. either string-using or string-banned object files.
  13936. 
  13937. File: as.info, Node: RX-Modifiers, Next: RX-Directives, Prev: RX-Opts, Up: RX-Dependent
  13938. 9.39.2 Symbolic Operand Modifiers
  13939. ---------------------------------
  13940. The assembler supports one modifier when using symbol addresses in RX
  13941. instruction operands. The general syntax is the following:
  13942. %gp(symbol)
  13943. The modifier returns the offset from the __GP symbol to the specified
  13944. symbol as a 16-bit value. The intent is that this offset should be used
  13945. in a register+offset move instruction when generating references to
  13946. small data. Ie, like this:
  13947. mov.W %gp(_foo)[%gpreg], r1
  13948. The assembler also supports two meta register names which can be used
  13949. to refer to registers whose values may not be known to the programmer.
  13950. These meta register names are:
  13951. '%gpreg'
  13952. The small data address register.
  13953. '%pidreg'
  13954. The PID base address register.
  13955. Both registers normally have the value r13, but this can change if
  13956. some registers have been reserved for use by interrupt handlers or if
  13957. both the small data limit and position independent data features are
  13958. being used at the same time.
  13959. 
  13960. File: as.info, Node: RX-Directives, Next: RX-Float, Prev: RX-Modifiers, Up: RX-Dependent
  13961. 9.39.3 Assembler Directives
  13962. ---------------------------
  13963. The RX version of 'as' has the following specific assembler directives:
  13964. '.3byte'
  13965. Inserts a 3-byte value into the output file at the current
  13966. location.
  13967. '.fetchalign'
  13968. If the next opcode following this directive spans a fetch line
  13969. boundary (8 byte boundary), the opcode is aligned to that boundary.
  13970. If the next opcode does not span a fetch line, this directive has
  13971. no effect. Note that one or more labels may be between this
  13972. directive and the opcode; those labels are aligned as well. Any
  13973. inserted bytes due to alignment will form a NOP opcode.
  13974. 
  13975. File: as.info, Node: RX-Float, Next: RX-Syntax, Prev: RX-Directives, Up: RX-Dependent
  13976. 9.39.4 Floating Point
  13977. ---------------------
  13978. The floating point formats generated by directives are these.
  13979. '.float'
  13980. 'Single' precision (32-bit) floating point constants.
  13981. '.double'
  13982. If the '-m64bit-doubles' command-line option has been specified
  13983. then then 'double' directive generates 'double' precision (64-bit)
  13984. floating point constants, otherwise it generates 'single' precision
  13985. (32-bit) floating point constants. To force the generation of
  13986. 64-bit floating point constants used the 'dc.d' directive instead.
  13987. 
  13988. File: as.info, Node: RX-Syntax, Prev: RX-Float, Up: RX-Dependent
  13989. 9.39.5 Syntax for the RX
  13990. ------------------------
  13991. * Menu:
  13992. * RX-Chars:: Special Characters
  13993. 
  13994. File: as.info, Node: RX-Chars, Up: RX-Syntax
  13995. 9.39.5.1 Special Characters
  13996. ...........................
  13997. The presence of a ';' appearing anywhere on a line indicates the start
  13998. of a comment that extends to the end of that line.
  13999. If a '#' appears as the first character of a line then the whole line
  14000. is treated as a comment, but in this case the line can also be a logical
  14001. line number directive (*note Comments::) or a preprocessor control
  14002. command (*note Preprocessing::).
  14003. The '!' character can be used to separate statements on the same
  14004. line.
  14005. 
  14006. File: as.info, Node: S/390-Dependent, Next: SCORE-Dependent, Prev: RX-Dependent, Up: Machine Dependencies
  14007. 9.40 IBM S/390 Dependent Features
  14008. =================================
  14009. The s390 version of 'as' supports two architectures modes and eleven
  14010. chip levels. The architecture modes are the Enterprise System
  14011. Architecture (ESA) and the newer z/Architecture mode. The chip levels
  14012. are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
  14013. (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13 (or
  14014. arch11), z14 (or arch12), and arch13.
  14015. * Menu:
  14016. * s390 Options:: Command-line Options.
  14017. * s390 Characters:: Special Characters.
  14018. * s390 Syntax:: Assembler Instruction syntax.
  14019. * s390 Directives:: Assembler Directives.
  14020. * s390 Floating Point:: Floating Point.
  14021. 
  14022. File: as.info, Node: s390 Options, Next: s390 Characters, Up: S/390-Dependent
  14023. 9.40.1 Options
  14024. --------------
  14025. The following table lists all available s390 specific options:
  14026. '-m31 | -m64'
  14027. Select 31- or 64-bit ABI implying a word size of 32- or 64-bit.
  14028. These options are only available with the ELF object file format,
  14029. and require that the necessary BFD support has been included (on a
  14030. 31-bit platform you must add -enable-64-bit-bfd on the call to the
  14031. configure script to enable 64-bit usage and use s390x as target
  14032. platform).
  14033. '-mesa | -mzarch'
  14034. Select the architecture mode, either the Enterprise System
  14035. Architecture (esa) mode or the z/Architecture mode (zarch).
  14036. The 64-bit instructions are only available with the z/Architecture
  14037. mode. The combination of '-m64' and '-mesa' results in a warning
  14038. message.
  14039. '-march=CPU'
  14040. This option specifies the target processor. The following
  14041. processor names are recognized: 'g5' (or 'arch3'), 'g6', 'z900' (or
  14042. 'arch5'), 'z990' (or 'arch6'), 'z9-109', 'z9-ec' (or 'arch7'),
  14043. 'z10' (or 'arch8'), 'z196' (or 'arch9'), 'zEC12' (or 'arch10'),
  14044. 'z13' (or 'arch11'), 'z14' (or 'arch12'), and 'arch13').
  14045. Assembling an instruction that is not supported on the target
  14046. processor results in an error message.
  14047. The processor names starting with 'arch' refer to the edition
  14048. number in the Principle of Operations manual. They can be used as
  14049. alternate processor names and have been added for compatibility
  14050. with the IBM XL compiler.
  14051. 'arch3', 'g5' and 'g6' cannot be used with the '-mzarch' option
  14052. since the z/Architecture mode is not supported on these processor
  14053. levels.
  14054. There is no 'arch4' option supported. 'arch4' matches
  14055. '-march=arch5 -mesa'.
  14056. '-mregnames'
  14057. Allow symbolic names for registers.
  14058. '-mno-regnames'
  14059. Do not allow symbolic names for registers.
  14060. '-mwarn-areg-zero'
  14061. Warn whenever the operand for a base or index register has been
  14062. specified but evaluates to zero. This can indicate the misuse of
  14063. general purpose register 0 as an address register.
  14064. 
  14065. File: as.info, Node: s390 Characters, Next: s390 Syntax, Prev: s390 Options, Up: S/390-Dependent
  14066. 9.40.2 Special Characters
  14067. -------------------------
  14068. '#' is the line comment character.
  14069. If a '#' appears as the first character of a line then the whole line
  14070. is treated as a comment, but in this case the line could also be a
  14071. logical line number directive (*note Comments::) or a preprocessor
  14072. control command (*note Preprocessing::).
  14073. The ';' character can be used instead of a newline to separate
  14074. statements.
  14075. 
  14076. File: as.info, Node: s390 Syntax, Next: s390 Directives, Prev: s390 Characters, Up: S/390-Dependent
  14077. 9.40.3 Instruction syntax
  14078. -------------------------
  14079. The assembler syntax closely follows the syntax outlined in Enterprise
  14080. Systems Architecture/390 Principles of Operation (SA22-7201) and the
  14081. z/Architecture Principles of Operation (SA22-7832).
  14082. Each instruction has two major parts, the instruction mnemonic and
  14083. the instruction operands. The instruction format varies.
  14084. * Menu:
  14085. * s390 Register:: Register Naming
  14086. * s390 Mnemonics:: Instruction Mnemonics
  14087. * s390 Operands:: Instruction Operands
  14088. * s390 Formats:: Instruction Formats
  14089. * s390 Aliases:: Instruction Aliases
  14090. * s390 Operand Modifier:: Instruction Operand Modifier
  14091. * s390 Instruction Marker:: Instruction Marker
  14092. * s390 Literal Pool Entries:: Literal Pool Entries
  14093. 
  14094. File: as.info, Node: s390 Register, Next: s390 Mnemonics, Up: s390 Syntax
  14095. 9.40.3.1 Register naming
  14096. ........................
  14097. The 'as' recognizes a number of predefined symbols for the various
  14098. processor registers. A register specification in one of the instruction
  14099. formats is an unsigned integer between 0 and 15. The specific
  14100. instruction and the position of the register in the instruction format
  14101. denotes the type of the register. The register symbols are prefixed
  14102. with '%':
  14103. %rN the 16 general purpose registers, 0 <= N <= 15
  14104. %fN the 16 floating point registers, 0 <= N <= 15
  14105. %aN the 16 access registers, 0 <= N <= 15
  14106. %cN the 16 control registers, 0 <= N <= 15
  14107. %lit an alias for the general purpose register %r13
  14108. %sp an alias for the general purpose register %r15
  14109. 
  14110. File: as.info, Node: s390 Mnemonics, Next: s390 Operands, Prev: s390 Register, Up: s390 Syntax
  14111. 9.40.3.2 Instruction Mnemonics
  14112. ..............................
  14113. All instructions documented in the Principles of Operation are supported
  14114. with the mnemonic and order of operands as described. The instruction
  14115. mnemonic identifies the instruction format (*note s390 Formats::) and
  14116. the specific operation code for the instruction. For example, the 'lr'
  14117. mnemonic denotes the instruction format 'RR' with the operation code
  14118. '0x18'.
  14119. The definition of the various mnemonics follows a scheme, where the
  14120. first character usually hint at the type of the instruction:
  14121. a add instruction, for example 'al' for add logical 32-bit
  14122. b branch instruction, for example 'bc' for branch on condition
  14123. c compare or convert instruction, for example 'cr' for compare
  14124. register 32-bit
  14125. d divide instruction, for example 'dlr' devide logical register
  14126. 64-bit to 32-bit
  14127. i insert instruction, for example 'ic' insert character
  14128. l load instruction, for example 'ltr' load and test register
  14129. mv move instruction, for example 'mvc' move character
  14130. m multiply instruction, for example 'mh' multiply halfword
  14131. n and instruction, for example 'ni' and immediate
  14132. o or instruction, for example 'oc' or character
  14133. sla, sll shift left single instruction
  14134. sra, srl shift right single instruction
  14135. st store instruction, for example 'stm' store multiple
  14136. s subtract instruction, for example 'slr' subtract
  14137. logical 32-bit
  14138. t test or translate instruction, of example 'tm' test under mask
  14139. x exclusive or instruction, for example 'xc' exclusive or
  14140. character
  14141. Certain characters at the end of the mnemonic may describe a property
  14142. of the instruction:
  14143. c the instruction uses a 8-bit character operand
  14144. f the instruction extends a 32-bit operand to 64 bit
  14145. g the operands are treated as 64-bit values
  14146. h the operand uses a 16-bit halfword operand
  14147. i the instruction uses an immediate operand
  14148. l the instruction uses unsigned, logical operands
  14149. m the instruction uses a mask or operates on multiple values
  14150. r if r is the last character, the instruction operates on registers
  14151. y the instruction uses 20-bit displacements
  14152. There are many exceptions to the scheme outlined in the above lists,
  14153. in particular for the privileged instructions. For non-privileged
  14154. instruction it works quite well, for example the instruction 'clgfr' c:
  14155. compare instruction, l: unsigned operands, g: 64-bit operands, f: 32- to
  14156. 64-bit extension, r: register operands. The instruction compares an
  14157. 64-bit value in a register with the zero extended 32-bit value from a
  14158. second register. For a complete list of all mnemonics see appendix B in
  14159. the Principles of Operation.
  14160. 
  14161. File: as.info, Node: s390 Operands, Next: s390 Formats, Prev: s390 Mnemonics, Up: s390 Syntax
  14162. 9.40.3.3 Instruction Operands
  14163. .............................
  14164. Instruction operands can be grouped into three classes, operands located
  14165. in registers, immediate operands, and operands in storage.
  14166. A register operand can be located in general, floating-point, access,
  14167. or control register. The register is identified by a four-bit field.
  14168. The field containing the register operand is called the R field.
  14169. Immediate operands are contained within the instruction and can have
  14170. 8, 16 or 32 bits. The field containing the immediate operand is called
  14171. the I field. Dependent on the instruction the I field is either signed
  14172. or unsigned.
  14173. A storage operand consists of an address and a length. The address
  14174. of a storage operands can be specified in any of these ways:
  14175. * The content of a single general R
  14176. * The sum of the content of a general register called the base
  14177. register B plus the content of a displacement field D
  14178. * The sum of the contents of two general registers called the index
  14179. register X and the base register B plus the content of a
  14180. displacement field
  14181. * The sum of the current instruction address and a 32-bit signed
  14182. immediate field multiplied by two.
  14183. The length of a storage operand can be:
  14184. * Implied by the instruction
  14185. * Specified by a bitmask
  14186. * Specified by a four-bit or eight-bit length field L
  14187. * Specified by the content of a general register
  14188. The notation for storage operand addresses formed from multiple
  14189. fields is as follows:
  14190. 'Dn(Bn)'
  14191. the address for operand number n is formed from the content of
  14192. general register Bn called the base register and the displacement
  14193. field Dn.
  14194. 'Dn(Xn,Bn)'
  14195. the address for operand number n is formed from the content of
  14196. general register Xn called the index register, general register Bn
  14197. called the base register and the displacement field Dn.
  14198. 'Dn(Ln,Bn)'
  14199. the address for operand number n is formed from the content of
  14200. general register Bn called the base register and the displacement
  14201. field Dn. The length of the operand n is specified by the field
  14202. Ln.
  14203. The base registers Bn and the index registers Xn of a storage operand
  14204. can be skipped. If Bn and Xn are skipped, a zero will be stored to the
  14205. operand field. The notation changes as follows:
  14206. full notation short notation
  14207. ----------------------------------------------
  14208. Dn(0,Bn) Dn(Bn)
  14209. Dn(0,0) Dn
  14210. Dn(0) Dn
  14211. Dn(Ln,0) Dn(Ln)
  14212. 
  14213. File: as.info, Node: s390 Formats, Next: s390 Aliases, Prev: s390 Operands, Up: s390 Syntax
  14214. 9.40.3.4 Instruction Formats
  14215. ............................
  14216. The Principles of Operation manuals lists 26 instruction formats where
  14217. some of the formats have multiple variants. For the '.insn' pseudo
  14218. directive the assembler recognizes some of the formats. Typically, the
  14219. most general variant of the instruction format is used by the '.insn'
  14220. directive.
  14221. The following table lists the abbreviations used in the table of
  14222. instruction formats:
  14223. OpCode / OpCd Part of the op code.
  14224. Bx Base register number for operand x.
  14225. Dx Displacement for operand x.
  14226. DLx Displacement lower 12 bits for operand x.
  14227. DHx Displacement higher 8-bits for operand x.
  14228. Rx Register number for operand x.
  14229. Xx Index register number for operand x.
  14230. Ix Signed immediate for operand x.
  14231. Ux Unsigned immediate for operand x.
  14232. An instruction is two, four, or six bytes in length and must be
  14233. aligned on a 2 byte boundary. The first two bits of the instruction
  14234. specify the length of the instruction, 00 indicates a two byte
  14235. instruction, 01 and 10 indicates a four byte instruction, and 11
  14236. indicates a six byte instruction.
  14237. The following table lists the s390 instruction formats that are
  14238. available with the '.insn' pseudo directive:
  14239. 'E format'
  14240. +-------------+
  14241. | OpCode |
  14242. +-------------+
  14243. 0 15
  14244. 'RI format: <insn> R1,I2'
  14245. +--------+----+----+------------------+
  14246. | OpCode | R1 |OpCd| I2 |
  14247. +--------+----+----+------------------+
  14248. 0 8 12 16 31
  14249. 'RIE format: <insn> R1,R3,I2'
  14250. +--------+----+----+------------------+--------+--------+
  14251. | OpCode | R1 | R3 | I2 |////////| OpCode |
  14252. +--------+----+----+------------------+--------+--------+
  14253. 0 8 12 16 32 40 47
  14254. 'RIL format: <insn> R1,I2'
  14255. +--------+----+----+------------------------------------+
  14256. | OpCode | R1 |OpCd| I2 |
  14257. +--------+----+----+------------------------------------+
  14258. 0 8 12 16 47
  14259. 'RILU format: <insn> R1,U2'
  14260. +--------+----+----+------------------------------------+
  14261. | OpCode | R1 |OpCd| U2 |
  14262. +--------+----+----+------------------------------------+
  14263. 0 8 12 16 47
  14264. 'RIS format: <insn> R1,I2,M3,D4(B4)'
  14265. +--------+----+----+----+-------------+--------+--------+
  14266. | OpCode | R1 | M3 | B4 | D4 | I2 | Opcode |
  14267. +--------+----+----+----+-------------+--------+--------+
  14268. 0 8 12 16 20 32 36 47
  14269. 'RR format: <insn> R1,R2'
  14270. +--------+----+----+
  14271. | OpCode | R1 | R2 |
  14272. +--------+----+----+
  14273. 0 8 12 15
  14274. 'RRE format: <insn> R1,R2'
  14275. +------------------+--------+----+----+
  14276. | OpCode |////////| R1 | R2 |
  14277. +------------------+--------+----+----+
  14278. 0 16 24 28 31
  14279. 'RRF format: <insn> R1,R2,R3,M4'
  14280. +------------------+----+----+----+----+
  14281. | OpCode | R3 | M4 | R1 | R2 |
  14282. +------------------+----+----+----+----+
  14283. 0 16 20 24 28 31
  14284. 'RRS format: <insn> R1,R2,M3,D4(B4)'
  14285. +--------+----+----+----+-------------+----+----+--------+
  14286. | OpCode | R1 | R3 | B4 | D4 | M3 |////| OpCode |
  14287. +--------+----+----+----+-------------+----+----+--------+
  14288. 0 8 12 16 20 32 36 40 47
  14289. 'RS format: <insn> R1,R3,D2(B2)'
  14290. +--------+----+----+----+-------------+
  14291. | OpCode | R1 | R3 | B2 | D2 |
  14292. +--------+----+----+----+-------------+
  14293. 0 8 12 16 20 31
  14294. 'RSE format: <insn> R1,R3,D2(B2)'
  14295. +--------+----+----+----+-------------+--------+--------+
  14296. | OpCode | R1 | R3 | B2 | D2 |////////| OpCode |
  14297. +--------+----+----+----+-------------+--------+--------+
  14298. 0 8 12 16 20 32 40 47
  14299. 'RSI format: <insn> R1,R3,I2'
  14300. +--------+----+----+------------------------------------+
  14301. | OpCode | R1 | R3 | I2 |
  14302. +--------+----+----+------------------------------------+
  14303. 0 8 12 16 47
  14304. 'RSY format: <insn> R1,R3,D2(B2)'
  14305. +--------+----+----+----+-------------+--------+--------+
  14306. | OpCode | R1 | R3 | B2 | DL2 | DH2 | OpCode |
  14307. +--------+----+----+----+-------------+--------+--------+
  14308. 0 8 12 16 20 32 40 47
  14309. 'RX format: <insn> R1,D2(X2,B2)'
  14310. +--------+----+----+----+-------------+
  14311. | OpCode | R1 | X2 | B2 | D2 |
  14312. +--------+----+----+----+-------------+
  14313. 0 8 12 16 20 31
  14314. 'RXE format: <insn> R1,D2(X2,B2)'
  14315. +--------+----+----+----+-------------+--------+--------+
  14316. | OpCode | R1 | X2 | B2 | D2 |////////| OpCode |
  14317. +--------+----+----+----+-------------+--------+--------+
  14318. 0 8 12 16 20 32 40 47
  14319. 'RXF format: <insn> R1,R3,D2(X2,B2)'
  14320. +--------+----+----+----+-------------+----+---+--------+
  14321. | OpCode | R3 | X2 | B2 | D2 | R1 |///| OpCode |
  14322. +--------+----+----+----+-------------+----+---+--------+
  14323. 0 8 12 16 20 32 36 40 47
  14324. 'RXY format: <insn> R1,D2(X2,B2)'
  14325. +--------+----+----+----+-------------+--------+--------+
  14326. | OpCode | R1 | X2 | B2 | DL2 | DH2 | OpCode |
  14327. +--------+----+----+----+-------------+--------+--------+
  14328. 0 8 12 16 20 32 36 40 47
  14329. 'S format: <insn> D2(B2)'
  14330. +------------------+----+-------------+
  14331. | OpCode | B2 | D2 |
  14332. +------------------+----+-------------+
  14333. 0 16 20 31
  14334. 'SI format: <insn> D1(B1),I2'
  14335. +--------+---------+----+-------------+
  14336. | OpCode | I2 | B1 | D1 |
  14337. +--------+---------+----+-------------+
  14338. 0 8 16 20 31
  14339. 'SIY format: <insn> D1(B1),U2'
  14340. +--------+---------+----+-------------+--------+--------+
  14341. | OpCode | I2 | B1 | DL1 | DH1 | OpCode |
  14342. +--------+---------+----+-------------+--------+--------+
  14343. 0 8 16 20 32 36 40 47
  14344. 'SIL format: <insn> D1(B1),I2'
  14345. +------------------+----+-------------+-----------------+
  14346. | OpCode | B1 | D1 | I2 |
  14347. +------------------+----+-------------+-----------------+
  14348. 0 16 20 32 47
  14349. 'SS format: <insn> D1(R1,B1),D2(B3),R3'
  14350. +--------+----+----+----+-------------+----+------------+
  14351. | OpCode | R1 | R3 | B1 | D1 | B2 | D2 |
  14352. +--------+----+----+----+-------------+----+------------+
  14353. 0 8 12 16 20 32 36 47
  14354. 'SSE format: <insn> D1(B1),D2(B2)'
  14355. +------------------+----+-------------+----+------------+
  14356. | OpCode | B1 | D1 | B2 | D2 |
  14357. +------------------+----+-------------+----+------------+
  14358. 0 8 12 16 20 32 36 47
  14359. 'SSF format: <insn> D1(B1),D2(B2),R3'
  14360. +--------+----+----+----+-------------+----+------------+
  14361. | OpCode | R3 |OpCd| B1 | D1 | B2 | D2 |
  14362. +--------+----+----+----+-------------+----+------------+
  14363. 0 8 12 16 20 32 36 47
  14364. For the complete list of all instruction format variants see the
  14365. Principles of Operation manuals.
  14366. 
  14367. File: as.info, Node: s390 Aliases, Next: s390 Operand Modifier, Prev: s390 Formats, Up: s390 Syntax
  14368. 9.40.3.5 Instruction Aliases
  14369. ............................
  14370. A specific bit pattern can have multiple mnemonics, for example the bit
  14371. pattern '0xa7000000' has the mnemonics 'tmh' and 'tmlh'. In addition,
  14372. there are a number of mnemonics recognized by 'as' that are not present
  14373. in the Principles of Operation. These are the short forms of the branch
  14374. instructions, where the condition code mask operand is encoded in the
  14375. mnemonic. This is relevant for the branch instructions, the compare and
  14376. branch instructions, and the compare and trap instructions.
  14377. For the branch instructions there are 20 condition code strings that
  14378. can be used as part of the mnemonic in place of a mask operand in the
  14379. instruction format:
  14380. instruction short form
  14381. ----------------------------------------------
  14382. bcr M1,R2 b<m>r R2
  14383. bc M1,D2(X2,B2) b<m> D2(X2,B2)
  14384. brc M1,I2 j<m> I2
  14385. brcl M1,I2 jg<m> I2
  14386. In the mnemonic for a branch instruction the condition code string
  14387. <m> can be any of the following:
  14388. o jump on overflow / if ones
  14389. h jump on A high
  14390. p jump on plus
  14391. nle jump on not low or equal
  14392. l jump on A low
  14393. m jump on minus
  14394. nhe jump on not high or equal
  14395. lh jump on low or high
  14396. ne jump on A not equal B
  14397. nz jump on not zero / if not zeros
  14398. e jump on A equal B
  14399. z jump on zero / if zeroes
  14400. nlh jump on not low or high
  14401. he jump on high or equal
  14402. nl jump on A not low
  14403. nm jump on not minus / if not mixed
  14404. le jump on low or equal
  14405. nh jump on A not high
  14406. np jump on not plus
  14407. no jump on not overflow / if not ones
  14408. For the compare and branch, and compare and trap instructions there
  14409. are 12 condition code strings that can be used as part of the mnemonic
  14410. in place of a mask operand in the instruction format:
  14411. instruction short form
  14412. ------------------------------------------------------------
  14413. crb R1,R2,M3,D4(B4) crb<m> R1,R2,D4(B4)
  14414. cgrb R1,R2,M3,D4(B4) cgrb<m> R1,R2,D4(B4)
  14415. crj R1,R2,M3,I4 crj<m> R1,R2,I4
  14416. cgrj R1,R2,M3,I4 cgrj<m> R1,R2,I4
  14417. cib R1,I2,M3,D4(B4) cib<m> R1,I2,D4(B4)
  14418. cgib R1,I2,M3,D4(B4) cgib<m> R1,I2,D4(B4)
  14419. cij R1,I2,M3,I4 cij<m> R1,I2,I4
  14420. cgij R1,I2,M3,I4 cgij<m> R1,I2,I4
  14421. crt R1,R2,M3 crt<m> R1,R2
  14422. cgrt R1,R2,M3 cgrt<m> R1,R2
  14423. cit R1,I2,M3 cit<m> R1,I2
  14424. cgit R1,I2,M3 cgit<m> R1,I2
  14425. clrb R1,R2,M3,D4(B4) clrb<m> R1,R2,D4(B4)
  14426. clgrb R1,R2,M3,D4(B4) clgrb<m> R1,R2,D4(B4)
  14427. clrj R1,R2,M3,I4 clrj<m> R1,R2,I4
  14428. clgrj R1,R2,M3,I4 clgrj<m> R1,R2,I4
  14429. clib R1,I2,M3,D4(B4) clib<m> R1,I2,D4(B4)
  14430. clgib R1,I2,M3,D4(B4) clgib<m> R1,I2,D4(B4)
  14431. clij R1,I2,M3,I4 clij<m> R1,I2,I4
  14432. clgij R1,I2,M3,I4 clgij<m> R1,I2,I4
  14433. clrt R1,R2,M3 clrt<m> R1,R2
  14434. clgrt R1,R2,M3 clgrt<m> R1,R2
  14435. clfit R1,I2,M3 clfit<m> R1,I2
  14436. clgit R1,I2,M3 clgit<m> R1,I2
  14437. In the mnemonic for a compare and branch and compare and trap
  14438. instruction the condition code string <m> can be any of the following:
  14439. h jump on A high
  14440. nle jump on not low or equal
  14441. l jump on A low
  14442. nhe jump on not high or equal
  14443. ne jump on A not equal B
  14444. lh jump on low or high
  14445. e jump on A equal B
  14446. nlh jump on not low or high
  14447. nl jump on A not low
  14448. he jump on high or equal
  14449. nh jump on A not high
  14450. le jump on low or equal
  14451. 
  14452. File: as.info, Node: s390 Operand Modifier, Next: s390 Instruction Marker, Prev: s390 Aliases, Up: s390 Syntax
  14453. 9.40.3.6 Instruction Operand Modifier
  14454. .....................................
  14455. If a symbol modifier is attached to a symbol in an expression for an
  14456. instruction operand field, the symbol term is replaced with a reference
  14457. to an object in the global offset table (GOT) or the procedure linkage
  14458. table (PLT). The following expressions are allowed: 'symbol@modifier +
  14459. constant', 'symbol@modifier + label + constant', and 'symbol@modifier -
  14460. label + constant'. The term 'symbol' is the symbol that will be entered
  14461. into the GOT or PLT, 'label' is a local label, and 'constant' is an
  14462. arbitrary expression that the assembler can evaluate to a constant
  14463. value.
  14464. The term '(symbol + constant1)@modifier +/- label + constant2' is
  14465. also accepted but a warning message is printed and the term is converted
  14466. to 'symbol@modifier +/- label + constant1 + constant2'.
  14467. '@got'
  14468. '@got12'
  14469. The @got modifier can be used for displacement fields, 16-bit
  14470. immediate fields and 32-bit pc-relative immediate fields. The
  14471. @got12 modifier is synonym to @got. The symbol is added to the
  14472. GOT. For displacement fields and 16-bit immediate fields the symbol
  14473. term is replaced with the offset from the start of the GOT to the
  14474. GOT slot for the symbol. For a 32-bit pc-relative field the
  14475. pc-relative offset to the GOT slot from the current instruction
  14476. address is used.
  14477. '@gotent'
  14478. The @gotent modifier can be used for 32-bit pc-relative immediate
  14479. fields. The symbol is added to the GOT and the symbol term is
  14480. replaced with the pc-relative offset from the current instruction
  14481. to the GOT slot for the symbol.
  14482. '@gotoff'
  14483. The @gotoff modifier can be used for 16-bit immediate fields. The
  14484. symbol term is replaced with the offset from the start of the GOT
  14485. to the address of the symbol.
  14486. '@gotplt'
  14487. The @gotplt modifier can be used for displacement fields, 16-bit
  14488. immediate fields, and 32-bit pc-relative immediate fields. A
  14489. procedure linkage table entry is generated for the symbol and a
  14490. jump slot for the symbol is added to the GOT. For displacement
  14491. fields and 16-bit immediate fields the symbol term is replaced with
  14492. the offset from the start of the GOT to the jump slot for the
  14493. symbol. For a 32-bit pc-relative field the pc-relative offset to
  14494. the jump slot from the current instruction address is used.
  14495. '@plt'
  14496. The @plt modifier can be used for 16-bit and 32-bit pc-relative
  14497. immediate fields. A procedure linkage table entry is generated for
  14498. the symbol. The symbol term is replaced with the relative offset
  14499. from the current instruction to the PLT entry for the symbol.
  14500. '@pltoff'
  14501. The @pltoff modifier can be used for 16-bit immediate fields. The
  14502. symbol term is replaced with the offset from the start of the PLT
  14503. to the address of the symbol.
  14504. '@gotntpoff'
  14505. The @gotntpoff modifier can be used for displacement fields. The
  14506. symbol is added to the static TLS block and the negated offset to
  14507. the symbol in the static TLS block is added to the GOT. The symbol
  14508. term is replaced with the offset to the GOT slot from the start of
  14509. the GOT.
  14510. '@indntpoff'
  14511. The @indntpoff modifier can be used for 32-bit pc-relative
  14512. immediate fields. The symbol is added to the static TLS block and
  14513. the negated offset to the symbol in the static TLS block is added
  14514. to the GOT. The symbol term is replaced with the pc-relative offset
  14515. to the GOT slot from the current instruction address.
  14516. For more information about the thread local storage modifiers
  14517. 'gotntpoff' and 'indntpoff' see the ELF extension documentation 'ELF
  14518. Handling For Thread-Local Storage'.
  14519. 
  14520. File: as.info, Node: s390 Instruction Marker, Next: s390 Literal Pool Entries, Prev: s390 Operand Modifier, Up: s390 Syntax
  14521. 9.40.3.7 Instruction Marker
  14522. ...........................
  14523. The thread local storage instruction markers are used by the linker to
  14524. perform code optimization.
  14525. ':tls_load'
  14526. The :tls_load marker is used to flag the load instruction in the
  14527. initial exec TLS model that retrieves the offset from the thread
  14528. pointer to a thread local storage variable from the GOT.
  14529. ':tls_gdcall'
  14530. The :tls_gdcall marker is used to flag the branch-and-save
  14531. instruction to the __tls_get_offset function in the global dynamic
  14532. TLS model.
  14533. ':tls_ldcall'
  14534. The :tls_ldcall marker is used to flag the branch-and-save
  14535. instruction to the __tls_get_offset function in the local dynamic
  14536. TLS model.
  14537. For more information about the thread local storage instruction
  14538. marker and the linker optimizations see the ELF extension documentation
  14539. 'ELF Handling For Thread-Local Storage'.
  14540. 
  14541. File: as.info, Node: s390 Literal Pool Entries, Prev: s390 Instruction Marker, Up: s390 Syntax
  14542. 9.40.3.8 Literal Pool Entries
  14543. .............................
  14544. A literal pool is a collection of values. To access the values a
  14545. pointer to the literal pool is loaded to a register, the literal pool
  14546. register. Usually, register %r13 is used as the literal pool register
  14547. (*note s390 Register::). Literal pool entries are created by adding the
  14548. suffix :lit1, :lit2, :lit4, or :lit8 to the end of an expression for an
  14549. instruction operand. The expression is added to the literal pool and
  14550. the operand is replaced with the offset to the literal in the literal
  14551. pool.
  14552. ':lit1'
  14553. The literal pool entry is created as an 8-bit value. An operand
  14554. modifier must not be used for the original expression.
  14555. ':lit2'
  14556. The literal pool entry is created as a 16 bit value. The operand
  14557. modifier @got may be used in the original expression. The term
  14558. 'x@got:lit2' will put the got offset for the global symbol x to the
  14559. literal pool as 16 bit value.
  14560. ':lit4'
  14561. The literal pool entry is created as a 32-bit value. The operand
  14562. modifier @got and @plt may be used in the original expression. The
  14563. term 'x@got:lit4' will put the got offset for the global symbol x
  14564. to the literal pool as a 32-bit value. The term 'x@plt:lit4' will
  14565. put the plt offset for the global symbol x to the literal pool as a
  14566. 32-bit value.
  14567. ':lit8'
  14568. The literal pool entry is created as a 64-bit value. The operand
  14569. modifier @got and @plt may be used in the original expression. The
  14570. term 'x@got:lit8' will put the got offset for the global symbol x
  14571. to the literal pool as a 64-bit value. The term 'x@plt:lit8' will
  14572. put the plt offset for the global symbol x to the literal pool as a
  14573. 64-bit value.
  14574. The assembler directive '.ltorg' is used to emit all literal pool
  14575. entries to the current position.
  14576. 
  14577. File: as.info, Node: s390 Directives, Next: s390 Floating Point, Prev: s390 Syntax, Up: S/390-Dependent
  14578. 9.40.4 Assembler Directives
  14579. ---------------------------
  14580. 'as' for s390 supports all of the standard ELF assembler directives as
  14581. outlined in the main part of this document. Some directives have been
  14582. extended and there are some additional directives, which are only
  14583. available for the s390 'as'.
  14584. '.insn'
  14585. This directive permits the numeric representation of an
  14586. instructions and makes the assembler insert the operands according
  14587. to one of the instructions formats for '.insn' (*note s390
  14588. Formats::). For example, the instruction 'l %r1,24(%r15)' could be
  14589. written as '.insn rx,0x58000000,%r1,24(%r15)'.
  14590. '.short'
  14591. '.long'
  14592. '.quad'
  14593. This directive places one or more 16-bit (.short), 32-bit (.long),
  14594. or 64-bit (.quad) values into the current section. If an ELF or
  14595. TLS modifier is used only the following expressions are allowed:
  14596. 'symbol@modifier + constant', 'symbol@modifier + label + constant',
  14597. and 'symbol@modifier - label + constant'. The following modifiers
  14598. are available:
  14599. '@got'
  14600. '@got12'
  14601. The @got modifier can be used for .short, .long and .quad.
  14602. The @got12 modifier is synonym to @got. The symbol is added
  14603. to the GOT. The symbol term is replaced with offset from the
  14604. start of the GOT to the GOT slot for the symbol.
  14605. '@gotoff'
  14606. The @gotoff modifier can be used for .short, .long and .quad.
  14607. The symbol term is replaced with the offset from the start of
  14608. the GOT to the address of the symbol.
  14609. '@gotplt'
  14610. The @gotplt modifier can be used for .long and .quad. A
  14611. procedure linkage table entry is generated for the symbol and
  14612. a jump slot for the symbol is added to the GOT. The symbol
  14613. term is replaced with the offset from the start of the GOT to
  14614. the jump slot for the symbol.
  14615. '@plt'
  14616. The @plt modifier can be used for .long and .quad. A
  14617. procedure linkage table entry us generated for the symbol.
  14618. The symbol term is replaced with the address of the PLT entry
  14619. for the symbol.
  14620. '@pltoff'
  14621. The @pltoff modifier can be used for .short, .long and .quad.
  14622. The symbol term is replaced with the offset from the start of
  14623. the PLT to the address of the symbol.
  14624. '@tlsgd'
  14625. '@tlsldm'
  14626. The @tlsgd and @tlsldm modifier can be used for .long and
  14627. .quad. A tls_index structure for the symbol is added to the
  14628. GOT. The symbol term is replaced with the offset from the
  14629. start of the GOT to the tls_index structure.
  14630. '@gotntpoff'
  14631. '@indntpoff'
  14632. The @gotntpoff and @indntpoff modifier can be used for .long
  14633. and .quad. The symbol is added to the static TLS block and
  14634. the negated offset to the symbol in the static TLS block is
  14635. added to the GOT. For @gotntpoff the symbol term is replaced
  14636. with the offset from the start of the GOT to the GOT slot, for
  14637. @indntpoff the symbol term is replaced with the address of the
  14638. GOT slot.
  14639. '@dtpoff'
  14640. The @dtpoff modifier can be used for .long and .quad. The
  14641. symbol term is replaced with the offset of the symbol relative
  14642. to the start of the TLS block it is contained in.
  14643. '@ntpoff'
  14644. The @ntpoff modifier can be used for .long and .quad. The
  14645. symbol term is replaced with the offset of the symbol relative
  14646. to the TCB pointer.
  14647. For more information about the thread local storage modifiers see
  14648. the ELF extension documentation 'ELF Handling For Thread-Local
  14649. Storage'.
  14650. '.ltorg'
  14651. This directive causes the current contents of the literal pool to
  14652. be dumped to the current location (*note s390 Literal Pool
  14653. Entries::).
  14654. '.machine STRING[+EXTENSION]...'
  14655. This directive allows changing the machine for which code is
  14656. generated. 'string' may be any of the '-march=' selection options,
  14657. or 'push', or 'pop'. '.machine push' saves the currently selected
  14658. cpu, which may be restored with '.machine pop'. Be aware that the
  14659. cpu string has to be put into double quotes in case it contains
  14660. characters not appropriate for identifiers. So you have to write
  14661. '"z9-109"' instead of just 'z9-109'. Extensions can be specified
  14662. after the cpu name, separated by plus characters. Valid extensions
  14663. are: 'htm', 'nohtm', 'vx', 'novx'. They extend the basic
  14664. instruction set with features from a higher cpu level, or remove
  14665. support for a feature from the given cpu level.
  14666. Example: 'z13+nohtm' allows all instructions of the z13 cpu except
  14667. instructions from the HTM facility.
  14668. '.machinemode string'
  14669. This directive allows to change the architecture mode for which
  14670. code is being generated. 'string' may be 'esa', 'zarch',
  14671. 'zarch_nohighgprs', 'push', or 'pop'. '.machinemode
  14672. zarch_nohighgprs' can be used to prevent the 'highgprs' flag from
  14673. being set in the ELF header of the output file. This is useful in
  14674. situations where the code is gated with a runtime check which makes
  14675. sure that the code is only executed on kernels providing the
  14676. 'highgprs' feature. '.machinemode push' saves the currently
  14677. selected mode, which may be restored with '.machinemode pop'.
  14678. 
  14679. File: as.info, Node: s390 Floating Point, Prev: s390 Directives, Up: S/390-Dependent
  14680. 9.40.5 Floating Point
  14681. ---------------------
  14682. The assembler recognizes both the IEEE floating-point instruction and
  14683. the hexadecimal floating-point instructions. The floating-point
  14684. constructors '.float', '.single', and '.double' always emit the IEEE
  14685. format. To assemble hexadecimal floating-point constants the '.long'
  14686. and '.quad' directives must be used.
  14687. 
  14688. File: as.info, Node: SCORE-Dependent, Next: SH-Dependent, Prev: S/390-Dependent, Up: Machine Dependencies
  14689. 9.41 SCORE Dependent Features
  14690. =============================
  14691. * Menu:
  14692. * SCORE-Opts:: Assembler options
  14693. * SCORE-Pseudo:: SCORE Assembler Directives
  14694. * SCORE-Syntax:: Syntax
  14695. 
  14696. File: as.info, Node: SCORE-Opts, Next: SCORE-Pseudo, Up: SCORE-Dependent
  14697. 9.41.1 Options
  14698. --------------
  14699. The following table lists all available SCORE options.
  14700. '-G NUM'
  14701. This option sets the largest size of an object that can be
  14702. referenced implicitly with the 'gp' register. The default value is
  14703. 8.
  14704. '-EB'
  14705. Assemble code for a big-endian cpu
  14706. '-EL'
  14707. Assemble code for a little-endian cpu
  14708. '-FIXDD'
  14709. Assemble code for fix data dependency
  14710. '-NWARN'
  14711. Assemble code for no warning message for fix data dependency
  14712. '-SCORE5'
  14713. Assemble code for target is SCORE5
  14714. '-SCORE5U'
  14715. Assemble code for target is SCORE5U
  14716. '-SCORE7'
  14717. Assemble code for target is SCORE7, this is default setting
  14718. '-SCORE3'
  14719. Assemble code for target is SCORE3
  14720. '-march=score7'
  14721. Assemble code for target is SCORE7, this is default setting
  14722. '-march=score3'
  14723. Assemble code for target is SCORE3
  14724. '-USE_R1'
  14725. Assemble code for no warning message when using temp register r1
  14726. '-KPIC'
  14727. Generate code for PIC. This option tells the assembler to generate
  14728. score position-independent macro expansions. It also tells the
  14729. assembler to mark the output file as PIC.
  14730. '-O0'
  14731. Assembler will not perform any optimizations
  14732. '-V'
  14733. Sunplus release version
  14734. 
  14735. File: as.info, Node: SCORE-Pseudo, Next: SCORE-Syntax, Prev: SCORE-Opts, Up: SCORE-Dependent
  14736. 9.41.2 SCORE Assembler Directives
  14737. ---------------------------------
  14738. A number of assembler directives are available for SCORE. The following
  14739. table is far from complete.
  14740. '.set nwarn'
  14741. Let the assembler not to generate warnings if the source machine
  14742. language instructions happen data dependency.
  14743. '.set fixdd'
  14744. Let the assembler to insert bubbles (32 bit nop instruction / 16
  14745. bit nop! Instruction) if the source machine language instructions
  14746. happen data dependency.
  14747. '.set nofixdd'
  14748. Let the assembler to generate warnings if the source machine
  14749. language instructions happen data dependency. (Default)
  14750. '.set r1'
  14751. Let the assembler not to generate warnings if the source program
  14752. uses r1. allow user to use r1
  14753. 'set nor1'
  14754. Let the assembler to generate warnings if the source program uses
  14755. r1. (Default)
  14756. '.sdata'
  14757. Tell the assembler to add subsequent data into the sdata section
  14758. '.rdata'
  14759. Tell the assembler to add subsequent data into the rdata section
  14760. '.frame "frame-register", "offset", "return-pc-register"'
  14761. Describe a stack frame. "frame-register" is the frame register,
  14762. "offset" is the distance from the frame register to the virtual
  14763. frame pointer, "return-pc-register" is the return program register.
  14764. You must use ".ent" before ".frame" and only one ".frame" can be
  14765. used per ".ent".
  14766. '.mask "bitmask", "frameoffset"'
  14767. Indicate which of the integer registers are saved in the current
  14768. function's stack frame, this is for the debugger to explain the
  14769. frame chain.
  14770. '.ent "proc-name"'
  14771. Set the beginning of the procedure "proc_name". Use this directive
  14772. when you want to generate information for the debugger.
  14773. '.end proc-name'
  14774. Set the end of a procedure. Use this directive to generate
  14775. information for the debugger.
  14776. '.bss'
  14777. Switch the destination of following statements into the bss
  14778. section, which is used for data that is uninitialized anywhere.
  14779. 
  14780. File: as.info, Node: SCORE-Syntax, Prev: SCORE-Pseudo, Up: SCORE-Dependent
  14781. 9.41.3 SCORE Syntax
  14782. -------------------
  14783. * Menu:
  14784. * SCORE-Chars:: Special Characters
  14785. 
  14786. File: as.info, Node: SCORE-Chars, Up: SCORE-Syntax
  14787. 9.41.3.1 Special Characters
  14788. ...........................
  14789. The presence of a '#' appearing anywhere on a line indicates the start
  14790. of a comment that extends to the end of that line.
  14791. If a '#' appears as the first character of a line then the whole line
  14792. is treated as a comment, but in this case the line can also be a logical
  14793. line number directive (*note Comments::) or a preprocessor control
  14794. command (*note Preprocessing::).
  14795. The ';' character can be used to separate statements on the same
  14796. line.
  14797. 
  14798. File: as.info, Node: SH-Dependent, Next: Sparc-Dependent, Prev: SCORE-Dependent, Up: Machine Dependencies
  14799. 9.42 Renesas / SuperH SH Dependent Features
  14800. ===========================================
  14801. * Menu:
  14802. * SH Options:: Options
  14803. * SH Syntax:: Syntax
  14804. * SH Floating Point:: Floating Point
  14805. * SH Directives:: SH Machine Directives
  14806. * SH Opcodes:: Opcodes
  14807. 
  14808. File: as.info, Node: SH Options, Next: SH Syntax, Up: SH-Dependent
  14809. 9.42.1 Options
  14810. --------------
  14811. 'as' has following command-line options for the Renesas (formerly
  14812. Hitachi) / SuperH SH family.
  14813. '--little'
  14814. Generate little endian code.
  14815. '--big'
  14816. Generate big endian code.
  14817. '--relax'
  14818. Alter jump instructions for long displacements.
  14819. '--small'
  14820. Align sections to 4 byte boundaries, not 16.
  14821. '--dsp'
  14822. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  14823. '--renesas'
  14824. Disable optimization with section symbol for compatibility with
  14825. Renesas assembler.
  14826. '--allow-reg-prefix'
  14827. Allow '$' as a register name prefix.
  14828. '--fdpic'
  14829. Generate an FDPIC object file.
  14830. '--isa=sh4 | sh4a'
  14831. Specify the sh4 or sh4a instruction set.
  14832. '--isa=dsp'
  14833. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  14834. '--isa=fp'
  14835. Enable sh2e, sh3e, sh4, and sh4a insn sets.
  14836. '--isa=all'
  14837. Enable sh1, sh2, sh2e, sh3, sh3e, sh4, sh4a, and sh-dsp insn sets.
  14838. '-h-tick-hex'
  14839. Support H'00 style hex constants in addition to 0x00 style.
  14840. 
  14841. File: as.info, Node: SH Syntax, Next: SH Floating Point, Prev: SH Options, Up: SH-Dependent
  14842. 9.42.2 Syntax
  14843. -------------
  14844. * Menu:
  14845. * SH-Chars:: Special Characters
  14846. * SH-Regs:: Register Names
  14847. * SH-Addressing:: Addressing Modes
  14848. 
  14849. File: as.info, Node: SH-Chars, Next: SH-Regs, Up: SH Syntax
  14850. 9.42.2.1 Special Characters
  14851. ...........................
  14852. '!' is the line comment character.
  14853. You can use ';' instead of a newline to separate statements.
  14854. If a '#' appears as the first character of a line then the whole line
  14855. is treated as a comment, but in this case the line could also be a
  14856. logical line number directive (*note Comments::) or a preprocessor
  14857. control command (*note Preprocessing::).
  14858. Since '$' has no special meaning, you may use it in symbol names.
  14859. 
  14860. File: as.info, Node: SH-Regs, Next: SH-Addressing, Prev: SH-Chars, Up: SH Syntax
  14861. 9.42.2.2 Register Names
  14862. .......................
  14863. You can use the predefined symbols 'r0', 'r1', 'r2', 'r3', 'r4', 'r5',
  14864. 'r6', 'r7', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', and 'r15' to
  14865. refer to the SH registers.
  14866. The SH also has these control registers:
  14867. 'pr'
  14868. procedure register (holds return address)
  14869. 'pc'
  14870. program counter
  14871. 'mach'
  14872. 'macl'
  14873. high and low multiply accumulator registers
  14874. 'sr'
  14875. status register
  14876. 'gbr'
  14877. global base register
  14878. 'vbr'
  14879. vector base register (for interrupt vectors)
  14880. 
  14881. File: as.info, Node: SH-Addressing, Prev: SH-Regs, Up: SH Syntax
  14882. 9.42.2.3 Addressing Modes
  14883. .........................
  14884. 'as' understands the following addressing modes for the SH. 'RN' in the
  14885. following refers to any of the numbered registers, but _not_ the control
  14886. registers.
  14887. 'RN'
  14888. Register direct
  14889. '@RN'
  14890. Register indirect
  14891. '@-RN'
  14892. Register indirect with pre-decrement
  14893. '@RN+'
  14894. Register indirect with post-increment
  14895. '@(DISP, RN)'
  14896. Register indirect with displacement
  14897. '@(R0, RN)'
  14898. Register indexed
  14899. '@(DISP, GBR)'
  14900. 'GBR' offset
  14901. '@(R0, GBR)'
  14902. GBR indexed
  14903. 'ADDR'
  14904. '@(DISP, PC)'
  14905. PC relative address (for branch or for addressing memory). The
  14906. 'as' implementation allows you to use the simpler form ADDR
  14907. anywhere a PC relative address is called for; the alternate form is
  14908. supported for compatibility with other assemblers.
  14909. '#IMM'
  14910. Immediate data
  14911. 
  14912. File: as.info, Node: SH Floating Point, Next: SH Directives, Prev: SH Syntax, Up: SH-Dependent
  14913. 9.42.3 Floating Point
  14914. ---------------------
  14915. SH2E, SH3E and SH4 groups have on-chip floating-point unit (FPU). Other
  14916. SH groups can use '.float' directive to generate IEEE floating-point
  14917. numbers.
  14918. SH2E and SH3E support single-precision floating point calculations as
  14919. well as entirely PCAPI compatible emulation of double-precision floating
  14920. point calculations. SH2E and SH3E instructions are a subset of the
  14921. floating point calculations conforming to the IEEE754 standard.
  14922. In addition to single-precision and double-precision floating-point
  14923. operation capability, the on-chip FPU of SH4 has a 128-bit graphic
  14924. engine that enables 32-bit floating-point data to be processed 128 bits
  14925. at a time. It also supports 4 * 4 array operations and inner product
  14926. operations. Also, a superscalar architecture is employed that enables
  14927. simultaneous execution of two instructions (including FPU instructions),
  14928. providing performance of up to twice that of conventional architectures
  14929. at the same frequency.
  14930. 
  14931. File: as.info, Node: SH Directives, Next: SH Opcodes, Prev: SH Floating Point, Up: SH-Dependent
  14932. 9.42.4 SH Machine Directives
  14933. ----------------------------
  14934. 'uaword'
  14935. 'ualong'
  14936. 'uaquad'
  14937. 'as' will issue a warning when a misaligned '.word', '.long', or
  14938. '.quad' directive is used. You may use '.uaword', '.ualong', or
  14939. '.uaquad' to indicate that the value is intentionally misaligned.
  14940. 
  14941. File: as.info, Node: SH Opcodes, Prev: SH Directives, Up: SH-Dependent
  14942. 9.42.5 Opcodes
  14943. --------------
  14944. For detailed information on the SH machine instruction set, see
  14945. 'SH-Microcomputer User's Manual' (Renesas) or 'SH-4 32-bit CPU Core
  14946. Architecture' (SuperH) and 'SuperH (SH) 64-Bit RISC Series' (SuperH).
  14947. 'as' implements all the standard SH opcodes. No additional
  14948. pseudo-instructions are needed on this family. Note, however, that
  14949. because 'as' supports a simpler form of PC-relative addressing, you may
  14950. simply write (for example)
  14951. mov.l bar,r0
  14952. where other assemblers might require an explicit displacement to 'bar'
  14953. from the program counter:
  14954. mov.l @(DISP, PC)
  14955. Here is a summary of SH opcodes:
  14956. Legend:
  14957. Rn a numbered register
  14958. Rm another numbered register
  14959. #imm immediate data
  14960. disp displacement
  14961. disp8 8-bit displacement
  14962. disp12 12-bit displacement
  14963. add #imm,Rn lds.l @Rn+,PR
  14964. add Rm,Rn mac.w @Rm+,@Rn+
  14965. addc Rm,Rn mov #imm,Rn
  14966. addv Rm,Rn mov Rm,Rn
  14967. and #imm,R0 mov.b Rm,@(R0,Rn)
  14968. and Rm,Rn mov.b Rm,@-Rn
  14969. and.b #imm,@(R0,GBR) mov.b Rm,@Rn
  14970. bf disp8 mov.b @(disp,Rm),R0
  14971. bra disp12 mov.b @(disp,GBR),R0
  14972. bsr disp12 mov.b @(R0,Rm),Rn
  14973. bt disp8 mov.b @Rm+,Rn
  14974. clrmac mov.b @Rm,Rn
  14975. clrt mov.b R0,@(disp,Rm)
  14976. cmp/eq #imm,R0 mov.b R0,@(disp,GBR)
  14977. cmp/eq Rm,Rn mov.l Rm,@(disp,Rn)
  14978. cmp/ge Rm,Rn mov.l Rm,@(R0,Rn)
  14979. cmp/gt Rm,Rn mov.l Rm,@-Rn
  14980. cmp/hi Rm,Rn mov.l Rm,@Rn
  14981. cmp/hs Rm,Rn mov.l @(disp,Rn),Rm
  14982. cmp/pl Rn mov.l @(disp,GBR),R0
  14983. cmp/pz Rn mov.l @(disp,PC),Rn
  14984. cmp/str Rm,Rn mov.l @(R0,Rm),Rn
  14985. div0s Rm,Rn mov.l @Rm+,Rn
  14986. div0u mov.l @Rm,Rn
  14987. div1 Rm,Rn mov.l R0,@(disp,GBR)
  14988. exts.b Rm,Rn mov.w Rm,@(R0,Rn)
  14989. exts.w Rm,Rn mov.w Rm,@-Rn
  14990. extu.b Rm,Rn mov.w Rm,@Rn
  14991. extu.w Rm,Rn mov.w @(disp,Rm),R0
  14992. jmp @Rn mov.w @(disp,GBR),R0
  14993. jsr @Rn mov.w @(disp,PC),Rn
  14994. ldc Rn,GBR mov.w @(R0,Rm),Rn
  14995. ldc Rn,SR mov.w @Rm+,Rn
  14996. ldc Rn,VBR mov.w @Rm,Rn
  14997. ldc.l @Rn+,GBR mov.w R0,@(disp,Rm)
  14998. ldc.l @Rn+,SR mov.w R0,@(disp,GBR)
  14999. ldc.l @Rn+,VBR mova @(disp,PC),R0
  15000. lds Rn,MACH movt Rn
  15001. lds Rn,MACL muls Rm,Rn
  15002. lds Rn,PR mulu Rm,Rn
  15003. lds.l @Rn+,MACH neg Rm,Rn
  15004. lds.l @Rn+,MACL negc Rm,Rn
  15005. nop stc VBR,Rn
  15006. not Rm,Rn stc.l GBR,@-Rn
  15007. or #imm,R0 stc.l SR,@-Rn
  15008. or Rm,Rn stc.l VBR,@-Rn
  15009. or.b #imm,@(R0,GBR) sts MACH,Rn
  15010. rotcl Rn sts MACL,Rn
  15011. rotcr Rn sts PR,Rn
  15012. rotl Rn sts.l MACH,@-Rn
  15013. rotr Rn sts.l MACL,@-Rn
  15014. rte sts.l PR,@-Rn
  15015. rts sub Rm,Rn
  15016. sett subc Rm,Rn
  15017. shal Rn subv Rm,Rn
  15018. shar Rn swap.b Rm,Rn
  15019. shll Rn swap.w Rm,Rn
  15020. shll16 Rn tas.b @Rn
  15021. shll2 Rn trapa #imm
  15022. shll8 Rn tst #imm,R0
  15023. shlr Rn tst Rm,Rn
  15024. shlr16 Rn tst.b #imm,@(R0,GBR)
  15025. shlr2 Rn xor #imm,R0
  15026. shlr8 Rn xor Rm,Rn
  15027. sleep xor.b #imm,@(R0,GBR)
  15028. stc GBR,Rn xtrct Rm,Rn
  15029. stc SR,Rn
  15030. 
  15031. File: as.info, Node: Sparc-Dependent, Next: TIC54X-Dependent, Prev: SH-Dependent, Up: Machine Dependencies
  15032. 9.43 SPARC Dependent Features
  15033. =============================
  15034. * Menu:
  15035. * Sparc-Opts:: Options
  15036. * Sparc-Aligned-Data:: Option to enforce aligned data
  15037. * Sparc-Syntax:: Syntax
  15038. * Sparc-Float:: Floating Point
  15039. * Sparc-Directives:: Sparc Machine Directives
  15040. 
  15041. File: as.info, Node: Sparc-Opts, Next: Sparc-Aligned-Data, Up: Sparc-Dependent
  15042. 9.43.1 Options
  15043. --------------
  15044. The SPARC chip family includes several successive versions, using the
  15045. same core instruction set, but including a few additional instructions
  15046. at each version. There are exceptions to this however. For details on
  15047. what instructions each variant supports, please see the chip's
  15048. architecture reference manual.
  15049. By default, 'as' assumes the core instruction set (SPARC v6), but
  15050. "bumps" the architecture level as needed: it switches to successively
  15051. higher architectures as it encounters instructions that only exist in
  15052. the higher levels.
  15053. If not configured for SPARC v9 ('sparc64-*-*') GAS will not bump past
  15054. sparclite by default, an option must be passed to enable the v9
  15055. instructions.
  15056. GAS treats sparclite as being compatible with v8, unless an
  15057. architecture is explicitly requested. SPARC v9 is always incompatible
  15058. with sparclite.
  15059. '-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite'
  15060. '-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |'
  15061. '-Av8plusv | -Av8plusm | -Av8plusm8'
  15062. '-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8'
  15063. '-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima'
  15064. '-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6'
  15065. Use one of the '-A' options to select one of the SPARC
  15066. architectures explicitly. If you select an architecture
  15067. explicitly, 'as' reports a fatal error if it encounters an
  15068. instruction or feature requiring an incompatible or higher level.
  15069. '-Av8plus', '-Av8plusa', '-Av8plusb', '-Av8plusc', '-Av8plusd', and
  15070. '-Av8plusv' select a 32 bit environment.
  15071. '-Av9', '-Av9a', '-Av9b', '-Av9c', '-Av9d', '-Av9e', '-Av9v' and
  15072. '-Av9m' select a 64 bit environment and are not available unless
  15073. GAS is explicitly configured with 64 bit environment support.
  15074. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  15075. UltraSPARC VIS 1.0 extensions.
  15076. '-Av8plusb' and '-Av9b' enable the UltraSPARC VIS 2.0 instructions,
  15077. as well as the instructions enabled by '-Av8plusa' and '-Av9a'.
  15078. '-Av8plusc' and '-Av9c' enable the UltraSPARC Niagara instructions,
  15079. as well as the instructions enabled by '-Av8plusb' and '-Av9b'.
  15080. '-Av8plusd' and '-Av9d' enable the floating point fused
  15081. multiply-add, VIS 3.0, and HPC extension instructions, as well as
  15082. the instructions enabled by '-Av8plusc' and '-Av9c'.
  15083. '-Av8pluse' and '-Av9e' enable the cryptographic instructions, as
  15084. well as the instructions enabled by '-Av8plusd' and '-Av9d'.
  15085. '-Av8plusv' and '-Av9v' enable floating point unfused multiply-add,
  15086. and integer multiply-add, as well as the instructions enabled by
  15087. '-Av8pluse' and '-Av9e'.
  15088. '-Av8plusm' and '-Av9m' enable the VIS 4.0, subtract extended,
  15089. xmpmul, xmontmul and xmontsqr instructions, as well as the
  15090. instructions enabled by '-Av8plusv' and '-Av9v'.
  15091. '-Av8plusm8' and '-Av9m8' enable the instructions introduced in the
  15092. Oracle SPARC Architecture 2017 and the M8 processor, as well as the
  15093. instructions enabled by '-Av8plusm' and '-Av9m'.
  15094. '-Asparc' specifies a v9 environment. It is equivalent to '-Av9'
  15095. if the word size is 64-bit, and '-Av8plus' otherwise.
  15096. '-Asparcvis' specifies a v9a environment. It is equivalent to
  15097. '-Av9a' if the word size is 64-bit, and '-Av8plusa' otherwise.
  15098. '-Asparcvis2' specifies a v9b environment. It is equivalent to
  15099. '-Av9b' if the word size is 64-bit, and '-Av8plusb' otherwise.
  15100. '-Asparcfmaf' specifies a v9b environment with the floating point
  15101. fused multiply-add instructions enabled.
  15102. '-Asparcima' specifies a v9b environment with the integer
  15103. multiply-add instructions enabled.
  15104. '-Asparcvis3' specifies a v9b environment with the VIS 3.0, HPC ,
  15105. and floating point fused multiply-add instructions enabled.
  15106. '-Asparcvis3r' specifies a v9b environment with the VIS 3.0, HPC,
  15107. and floating point unfused multiply-add instructions enabled.
  15108. '-Asparc5' is equivalent to '-Av9m'.
  15109. '-Asparc6' is equivalent to '-Av9m8'.
  15110. '-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc'
  15111. '-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |'
  15112. '-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b'
  15113. '-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v'
  15114. '-xarch=v9m | -xarch=v9m8'
  15115. '-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2'
  15116. '-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3'
  15117. '-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6'
  15118. For compatibility with the SunOS v9 assembler. These options are
  15119. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  15120. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  15121. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  15122. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  15123. -Asparc6 respectively.
  15124. '-bump'
  15125. Warn whenever it is necessary to switch to another level. If an
  15126. architecture level is explicitly requested, GAS will not issue
  15127. warnings until that level is reached, and will then bump the level
  15128. as required (except between incompatible levels).
  15129. '-32 | -64'
  15130. Select the word size, either 32 bits or 64 bits. These options are
  15131. only available with the ELF object file format, and require that
  15132. the necessary BFD support has been included.
  15133. '--dcti-couples-detect'
  15134. Warn if a DCTI (delayed control transfer instruction) couple is
  15135. found when generating code for a variant of the SPARC architecture
  15136. in which the execution of the couple is unpredictable, or very
  15137. slow. This is disabled by default.
  15138. 
  15139. File: as.info, Node: Sparc-Aligned-Data, Next: Sparc-Syntax, Prev: Sparc-Opts, Up: Sparc-Dependent
  15140. 9.43.2 Enforcing aligned data
  15141. -----------------------------
  15142. SPARC GAS normally permits data to be misaligned. For example, it
  15143. permits the '.long' pseudo-op to be used on a byte boundary. However,
  15144. the native SunOS assemblers issue an error when they see misaligned
  15145. data.
  15146. You can use the '--enforce-aligned-data' option to make SPARC GAS
  15147. also issue an error about misaligned data, just as the SunOS assemblers
  15148. do.
  15149. The '--enforce-aligned-data' option is not the default because gcc
  15150. issues misaligned data pseudo-ops when it initializes certain packed
  15151. data structures (structures defined using the 'packed' attribute). You
  15152. may have to assemble with GAS in order to initialize packed data
  15153. structures in your own code.
  15154. 
  15155. File: as.info, Node: Sparc-Syntax, Next: Sparc-Float, Prev: Sparc-Aligned-Data, Up: Sparc-Dependent
  15156. 9.43.3 Sparc Syntax
  15157. -------------------
  15158. The assembler syntax closely follows The Sparc Architecture Manual,
  15159. versions 8 and 9, as well as most extensions defined by Sun for their
  15160. UltraSPARC and Niagara line of processors.
  15161. * Menu:
  15162. * Sparc-Chars:: Special Characters
  15163. * Sparc-Regs:: Register Names
  15164. * Sparc-Constants:: Constant Names
  15165. * Sparc-Relocs:: Relocations
  15166. * Sparc-Size-Translations:: Size Translations
  15167. 
  15168. File: as.info, Node: Sparc-Chars, Next: Sparc-Regs, Up: Sparc-Syntax
  15169. 9.43.3.1 Special Characters
  15170. ...........................
  15171. A '!' character appearing anywhere on a line indicates the start of a
  15172. comment that extends to the end of that line.
  15173. If a '#' appears as the first character of a line then the whole line
  15174. is treated as a comment, but in this case the line could also be a
  15175. logical line number directive (*note Comments::) or a preprocessor
  15176. control command (*note Preprocessing::).
  15177. ';' can be used instead of a newline to separate statements.
  15178. 
  15179. File: as.info, Node: Sparc-Regs, Next: Sparc-Constants, Prev: Sparc-Chars, Up: Sparc-Syntax
  15180. 9.43.3.2 Register Names
  15181. .......................
  15182. The Sparc integer register file is broken down into global, outgoing,
  15183. local, and incoming.
  15184. * The 8 global registers are referred to as '%gN'.
  15185. * The 8 outgoing registers are referred to as '%oN'.
  15186. * The 8 local registers are referred to as '%lN'.
  15187. * The 8 incoming registers are referred to as '%iN'.
  15188. * The frame pointer register '%i6' can be referenced using the alias
  15189. '%fp'.
  15190. * The stack pointer register '%o6' can be referenced using the alias
  15191. '%sp'.
  15192. Floating point registers are simply referred to as '%fN'. When
  15193. assembling for pre-V9, only 32 floating point registers are available.
  15194. For V9 and later there are 64, but there are restrictions when
  15195. referencing the upper 32 registers. They can only be accessed as double
  15196. or quad, and thus only even or quad numbered accesses are allowed. For
  15197. example, '%f34' is a legal floating point register, but '%f35' is not.
  15198. Floating point registers accessed as double can also be referred
  15199. using the '%dN' notation, where N is even. Similarly, floating point
  15200. registers accessed as quad can be referred using the '%qN' notation,
  15201. where N is a multiple of 4. For example, '%f4' can be denoted as both
  15202. '%d4' and '%q4'. On the other hand, '%f2' can be denoted as '%d2' but
  15203. not as '%q2'.
  15204. Certain V9 instructions allow access to ancillary state registers.
  15205. Most simply they can be referred to as '%asrN' where N can be from 16 to
  15206. 31. However, there are some aliases defined to reference ASR registers
  15207. defined for various UltraSPARC processors:
  15208. * The tick compare register is referred to as '%tick_cmpr'.
  15209. * The system tick register is referred to as '%stick'. An alias,
  15210. '%sys_tick', exists but is deprecated and should not be used by new
  15211. software.
  15212. * The system tick compare register is referred to as '%stick_cmpr'.
  15213. An alias, '%sys_tick_cmpr', exists but is deprecated and should not
  15214. be used by new software.
  15215. * The software interrupt register is referred to as '%softint'.
  15216. * The set software interrupt register is referred to as
  15217. '%set_softint'. The mnemonic '%softint_set' is provided as an
  15218. alias.
  15219. * The clear software interrupt register is referred to as
  15220. '%clear_softint'. The mnemonic '%softint_clear' is provided as an
  15221. alias.
  15222. * The performance instrumentation counters register is referred to as
  15223. '%pic'.
  15224. * The performance control register is referred to as '%pcr'.
  15225. * The graphics status register is referred to as '%gsr'.
  15226. * The V9 dispatch control register is referred to as '%dcr'.
  15227. Various V9 branch and conditional move instructions allow
  15228. specification of which set of integer condition codes to test. These
  15229. are referred to as '%xcc' and '%icc'.
  15230. Additionally, GAS supports the so-called "natural" condition codes;
  15231. these are referred to as '%ncc' and reference to '%icc' if the word size
  15232. is 32, '%xcc' if the word size is 64.
  15233. In V9, there are 4 sets of floating point condition codes which are
  15234. referred to as '%fccN'.
  15235. Several special privileged and non-privileged registers exist:
  15236. * The V9 address space identifier register is referred to as '%asi'.
  15237. * The V9 restorable windows register is referred to as '%canrestore'.
  15238. * The V9 savable windows register is referred to as '%cansave'.
  15239. * The V9 clean windows register is referred to as '%cleanwin'.
  15240. * The V9 current window pointer register is referred to as '%cwp'.
  15241. * The floating-point queue register is referred to as '%fq'.
  15242. * The V8 co-processor queue register is referred to as '%cq'.
  15243. * The floating point status register is referred to as '%fsr'.
  15244. * The other windows register is referred to as '%otherwin'.
  15245. * The V9 program counter register is referred to as '%pc'.
  15246. * The V9 next program counter register is referred to as '%npc'.
  15247. * The V9 processor interrupt level register is referred to as '%pil'.
  15248. * The V9 processor state register is referred to as '%pstate'.
  15249. * The trap base address register is referred to as '%tba'.
  15250. * The V9 tick register is referred to as '%tick'.
  15251. * The V9 trap level is referred to as '%tl'.
  15252. * The V9 trap program counter is referred to as '%tpc'.
  15253. * The V9 trap next program counter is referred to as '%tnpc'.
  15254. * The V9 trap state is referred to as '%tstate'.
  15255. * The V9 trap type is referred to as '%tt'.
  15256. * The V9 condition codes is referred to as '%ccr'.
  15257. * The V9 floating-point registers state is referred to as '%fprs'.
  15258. * The V9 version register is referred to as '%ver'.
  15259. * The V9 window state register is referred to as '%wstate'.
  15260. * The Y register is referred to as '%y'.
  15261. * The V8 window invalid mask register is referred to as '%wim'.
  15262. * The V8 processor state register is referred to as '%psr'.
  15263. * The V9 global register level register is referred to as '%gl'.
  15264. Several special register names exist for hypervisor mode code:
  15265. * The hyperprivileged processor state register is referred to as
  15266. '%hpstate'.
  15267. * The hyperprivileged trap state register is referred to as
  15268. '%htstate'.
  15269. * The hyperprivileged interrupt pending register is referred to as
  15270. '%hintp'.
  15271. * The hyperprivileged trap base address register is referred to as
  15272. '%htba'.
  15273. * The hyperprivileged implementation version register is referred to
  15274. as '%hver'.
  15275. * The hyperprivileged system tick offset register is referred to as
  15276. '%hstick_offset'. Note that there is no '%hstick' register, the
  15277. normal '%stick' is used.
  15278. * The hyperprivileged system tick enable register is referred to as
  15279. '%hstick_enable'.
  15280. * The hyperprivileged system tick compare register is referred to as
  15281. '%hstick_cmpr'.
  15282. 
  15283. File: as.info, Node: Sparc-Constants, Next: Sparc-Relocs, Prev: Sparc-Regs, Up: Sparc-Syntax
  15284. 9.43.3.3 Constants
  15285. ..................
  15286. Several Sparc instructions take an immediate operand field for which
  15287. mnemonic names exist. Two such examples are 'membar' and 'prefetch'.
  15288. Another example are the set of V9 memory access instruction that allow
  15289. specification of an address space identifier.
  15290. The 'membar' instruction specifies a memory barrier that is the
  15291. defined by the operand which is a bitmask. The supported mask mnemonics
  15292. are:
  15293. * '#Sync' requests that all operations (including nonmemory reference
  15294. operations) appearing prior to the 'membar' must have been
  15295. performed and the effects of any exceptions become visible before
  15296. any instructions after the 'membar' may be initiated. This
  15297. corresponds to 'membar' cmask field bit 2.
  15298. * '#MemIssue' requests that all memory reference operations appearing
  15299. prior to the 'membar' must have been performed before any memory
  15300. operation after the 'membar' may be initiated. This corresponds to
  15301. 'membar' cmask field bit 1.
  15302. * '#Lookaside' requests that a store appearing prior to the 'membar'
  15303. must complete before any load following the 'membar' referencing
  15304. the same address can be initiated. This corresponds to 'membar'
  15305. cmask field bit 0.
  15306. * '#StoreStore' defines that the effects of all stores appearing
  15307. prior to the 'membar' instruction must be visible to all processors
  15308. before the effect of any stores following the 'membar'. Equivalent
  15309. to the deprecated 'stbar' instruction. This corresponds to
  15310. 'membar' mmask field bit 3.
  15311. * '#LoadStore' defines all loads appearing prior to the 'membar'
  15312. instruction must have been performed before the effect of any
  15313. stores following the 'membar' is visible to any other processor.
  15314. This corresponds to 'membar' mmask field bit 2.
  15315. * '#StoreLoad' defines that the effects of all stores appearing prior
  15316. to the 'membar' instruction must be visible to all processors
  15317. before loads following the 'membar' may be performed. This
  15318. corresponds to 'membar' mmask field bit 1.
  15319. * '#LoadLoad' defines that all loads appearing prior to the 'membar'
  15320. instruction must have been performed before any loads following the
  15321. 'membar' may be performed. This corresponds to 'membar' mmask
  15322. field bit 0.
  15323. These values can be ored together, for example:
  15324. membar #Sync
  15325. membar #StoreLoad | #LoadLoad
  15326. membar #StoreLoad | #StoreStore
  15327. The 'prefetch' and 'prefetcha' instructions take a prefetch function
  15328. code. The following prefetch function code constant mnemonics are
  15329. available:
  15330. * '#n_reads' requests a prefetch for several reads, and corresponds
  15331. to a prefetch function code of 0.
  15332. '#one_read' requests a prefetch for one read, and corresponds to a
  15333. prefetch function code of 1.
  15334. '#n_writes' requests a prefetch for several writes (and possibly
  15335. reads), and corresponds to a prefetch function code of 2.
  15336. '#one_write' requests a prefetch for one write, and corresponds to
  15337. a prefetch function code of 3.
  15338. '#page' requests a prefetch page, and corresponds to a prefetch
  15339. function code of 4.
  15340. '#invalidate' requests a prefetch invalidate, and corresponds to a
  15341. prefetch function code of 16.
  15342. '#unified' requests a prefetch to the nearest unified cache, and
  15343. corresponds to a prefetch function code of 17.
  15344. '#n_reads_strong' requests a strong prefetch for several reads, and
  15345. corresponds to a prefetch function code of 20.
  15346. '#one_read_strong' requests a strong prefetch for one read, and
  15347. corresponds to a prefetch function code of 21.
  15348. '#n_writes_strong' requests a strong prefetch for several writes,
  15349. and corresponds to a prefetch function code of 22.
  15350. '#one_write_strong' requests a strong prefetch for one write, and
  15351. corresponds to a prefetch function code of 23.
  15352. Onle one prefetch code may be specified. Here are some examples:
  15353. prefetch [%l0 + %l2], #one_read
  15354. prefetch [%g2 + 8], #n_writes
  15355. prefetcha [%g1] 0x8, #unified
  15356. prefetcha [%o0 + 0x10] %asi, #n_reads
  15357. The actual behavior of a given prefetch function code is processor
  15358. specific. If a processor does not implement a given prefetch
  15359. function code, it will treat the prefetch instruction as a nop.
  15360. For instructions that accept an immediate address space identifier,
  15361. 'as' provides many mnemonics corresponding to V9 defined as well as
  15362. UltraSPARC and Niagara extended values. For example, '#ASI_P' and
  15363. '#ASI_BLK_INIT_QUAD_LDD_AIUS'. See the V9 and processor specific
  15364. manuals for details.
  15365. 
  15366. File: as.info, Node: Sparc-Relocs, Next: Sparc-Size-Translations, Prev: Sparc-Constants, Up: Sparc-Syntax
  15367. 9.43.3.4 Relocations
  15368. ....................
  15369. ELF relocations are available as defined in the 32-bit and 64-bit Sparc
  15370. ELF specifications.
  15371. 'R_SPARC_HI22' is obtained using '%hi' and 'R_SPARC_LO10' is obtained
  15372. using '%lo'. Likewise 'R_SPARC_HIX22' is obtained from '%hix' and
  15373. 'R_SPARC_LOX10' is obtained using '%lox'. For example:
  15374. sethi %hi(symbol), %g1
  15375. or %g1, %lo(symbol), %g1
  15376. sethi %hix(symbol), %g1
  15377. xor %g1, %lox(symbol), %g1
  15378. These "high" mnemonics extract bits 31:10 of their operand, and the
  15379. "low" mnemonics extract bits 9:0 of their operand.
  15380. V9 code model relocations can be requested as follows:
  15381. * 'R_SPARC_HH22' is requested using '%hh'. It can also be generated
  15382. using '%uhi'.
  15383. * 'R_SPARC_HM10' is requested using '%hm'. It can also be generated
  15384. using '%ulo'.
  15385. * 'R_SPARC_LM22' is requested using '%lm'.
  15386. * 'R_SPARC_H44' is requested using '%h44'.
  15387. * 'R_SPARC_M44' is requested using '%m44'.
  15388. * 'R_SPARC_L44' is requested using '%l44' or '%l34'.
  15389. * 'R_SPARC_H34' is requested using '%h34'.
  15390. The '%l34' generates a 'R_SPARC_L44' relocation because it calculates
  15391. the necessary value, and therefore no explicit 'R_SPARC_L34' relocation
  15392. needed to be created for this purpose.
  15393. The '%h34' and '%l34' relocations are used for the abs34 code model.
  15394. Here is an example abs34 address generation sequence:
  15395. sethi %h34(symbol), %g1
  15396. sllx %g1, 2, %g1
  15397. or %g1, %l34(symbol), %g1
  15398. The PC relative relocation 'R_SPARC_PC22' can be obtained by
  15399. enclosing an operand inside of '%pc22'. Likewise, the 'R_SPARC_PC10'
  15400. relocation can be obtained using '%pc10'. These are mostly used when
  15401. assembling PIC code. For example, the standard PIC sequence on Sparc to
  15402. get the base of the global offset table, PC relative, into a register,
  15403. can be performed as:
  15404. sethi %pc22(_GLOBAL_OFFSET_TABLE_-4), %l7
  15405. add %l7, %pc10(_GLOBAL_OFFSET_TABLE_+4), %l7
  15406. Several relocations exist to allow the link editor to potentially
  15407. optimize GOT data references. The 'R_SPARC_GOTDATA_OP_HIX22' relocation
  15408. can obtained by enclosing an operand inside of '%gdop_hix22'. The
  15409. 'R_SPARC_GOTDATA_OP_LOX10' relocation can obtained by enclosing an
  15410. operand inside of '%gdop_lox10'. Likewise, 'R_SPARC_GOTDATA_OP' can be
  15411. obtained by enclosing an operand inside of '%gdop'. For example,
  15412. assuming the GOT base is in register '%l7':
  15413. sethi %gdop_hix22(symbol), %l1
  15414. xor %l1, %gdop_lox10(symbol), %l1
  15415. ld [%l7 + %l1], %l2, %gdop(symbol)
  15416. There are many relocations that can be requested for access to thread
  15417. local storage variables. All of the Sparc TLS mnemonics are supported:
  15418. * 'R_SPARC_TLS_GD_HI22' is requested using '%tgd_hi22'.
  15419. * 'R_SPARC_TLS_GD_LO10' is requested using '%tgd_lo10'.
  15420. * 'R_SPARC_TLS_GD_ADD' is requested using '%tgd_add'.
  15421. * 'R_SPARC_TLS_GD_CALL' is requested using '%tgd_call'.
  15422. * 'R_SPARC_TLS_LDM_HI22' is requested using '%tldm_hi22'.
  15423. * 'R_SPARC_TLS_LDM_LO10' is requested using '%tldm_lo10'.
  15424. * 'R_SPARC_TLS_LDM_ADD' is requested using '%tldm_add'.
  15425. * 'R_SPARC_TLS_LDM_CALL' is requested using '%tldm_call'.
  15426. * 'R_SPARC_TLS_LDO_HIX22' is requested using '%tldo_hix22'.
  15427. * 'R_SPARC_TLS_LDO_LOX10' is requested using '%tldo_lox10'.
  15428. * 'R_SPARC_TLS_LDO_ADD' is requested using '%tldo_add'.
  15429. * 'R_SPARC_TLS_IE_HI22' is requested using '%tie_hi22'.
  15430. * 'R_SPARC_TLS_IE_LO10' is requested using '%tie_lo10'.
  15431. * 'R_SPARC_TLS_IE_LD' is requested using '%tie_ld'.
  15432. * 'R_SPARC_TLS_IE_LDX' is requested using '%tie_ldx'.
  15433. * 'R_SPARC_TLS_IE_ADD' is requested using '%tie_add'.
  15434. * 'R_SPARC_TLS_LE_HIX22' is requested using '%tle_hix22'.
  15435. * 'R_SPARC_TLS_LE_LOX10' is requested using '%tle_lox10'.
  15436. Here are some example TLS model sequences.
  15437. First, General Dynamic:
  15438. sethi %tgd_hi22(symbol), %l1
  15439. add %l1, %tgd_lo10(symbol), %l1
  15440. add %l7, %l1, %o0, %tgd_add(symbol)
  15441. call __tls_get_addr, %tgd_call(symbol)
  15442. nop
  15443. Local Dynamic:
  15444. sethi %tldm_hi22(symbol), %l1
  15445. add %l1, %tldm_lo10(symbol), %l1
  15446. add %l7, %l1, %o0, %tldm_add(symbol)
  15447. call __tls_get_addr, %tldm_call(symbol)
  15448. nop
  15449. sethi %tldo_hix22(symbol), %l1
  15450. xor %l1, %tldo_lox10(symbol), %l1
  15451. add %o0, %l1, %l1, %tldo_add(symbol)
  15452. Initial Exec:
  15453. sethi %tie_hi22(symbol), %l1
  15454. add %l1, %tie_lo10(symbol), %l1
  15455. ld [%l7 + %l1], %o0, %tie_ld(symbol)
  15456. add %g7, %o0, %o0, %tie_add(symbol)
  15457. sethi %tie_hi22(symbol), %l1
  15458. add %l1, %tie_lo10(symbol), %l1
  15459. ldx [%l7 + %l1], %o0, %tie_ldx(symbol)
  15460. add %g7, %o0, %o0, %tie_add(symbol)
  15461. And finally, Local Exec:
  15462. sethi %tle_hix22(symbol), %l1
  15463. add %l1, %tle_lox10(symbol), %l1
  15464. add %g7, %l1, %l1
  15465. When assembling for 64-bit, and a secondary constant addend is
  15466. specified in an address expression that would normally generate an
  15467. 'R_SPARC_LO10' relocation, the assembler will emit an 'R_SPARC_OLO10'
  15468. instead.
  15469. 
  15470. File: as.info, Node: Sparc-Size-Translations, Prev: Sparc-Relocs, Up: Sparc-Syntax
  15471. 9.43.3.5 Size Translations
  15472. ..........................
  15473. Often it is desirable to write code in an operand size agnostic manner.
  15474. 'as' provides support for this via operand size opcode translations.
  15475. Translations are supported for loads, stores, shifts, compare-and-swap
  15476. atomics, and the 'clr' synthetic instruction.
  15477. If generating 32-bit code, 'as' will generate the 32-bit opcode.
  15478. Whereas if 64-bit code is being generated, the 64-bit opcode will be
  15479. emitted. For example 'ldn' will be transformed into 'ld' for 32-bit
  15480. code and 'ldx' for 64-bit code.
  15481. Here is an example meant to demonstrate all the supported opcode
  15482. translations:
  15483. ldn [%o0], %o1
  15484. ldna [%o0] %asi, %o2
  15485. stn %o1, [%o0]
  15486. stna %o2, [%o0] %asi
  15487. slln %o3, 3, %o3
  15488. srln %o4, 8, %o4
  15489. sran %o5, 12, %o5
  15490. casn [%o0], %o1, %o2
  15491. casna [%o0] %asi, %o1, %o2
  15492. clrn %g1
  15493. In 32-bit mode 'as' will emit:
  15494. ld [%o0], %o1
  15495. lda [%o0] %asi, %o2
  15496. st %o1, [%o0]
  15497. sta %o2, [%o0] %asi
  15498. sll %o3, 3, %o3
  15499. srl %o4, 8, %o4
  15500. sra %o5, 12, %o5
  15501. cas [%o0], %o1, %o2
  15502. casa [%o0] %asi, %o1, %o2
  15503. clr %g1
  15504. And in 64-bit mode 'as' will emit:
  15505. ldx [%o0], %o1
  15506. ldxa [%o0] %asi, %o2
  15507. stx %o1, [%o0]
  15508. stxa %o2, [%o0] %asi
  15509. sllx %o3, 3, %o3
  15510. srlx %o4, 8, %o4
  15511. srax %o5, 12, %o5
  15512. casx [%o0], %o1, %o2
  15513. casxa [%o0] %asi, %o1, %o2
  15514. clrx %g1
  15515. Finally, the '.nword' translating directive is supported as well. It
  15516. is documented in the section on Sparc machine directives.
  15517. 
  15518. File: as.info, Node: Sparc-Float, Next: Sparc-Directives, Prev: Sparc-Syntax, Up: Sparc-Dependent
  15519. 9.43.4 Floating Point
  15520. ---------------------
  15521. The Sparc uses IEEE floating-point numbers.
  15522. 
  15523. File: as.info, Node: Sparc-Directives, Prev: Sparc-Float, Up: Sparc-Dependent
  15524. 9.43.5 Sparc Machine Directives
  15525. -------------------------------
  15526. The Sparc version of 'as' supports the following additional machine
  15527. directives:
  15528. '.align'
  15529. This must be followed by the desired alignment in bytes.
  15530. '.common'
  15531. This must be followed by a symbol name, a positive number, and
  15532. '"bss"'. This behaves somewhat like '.comm', but the syntax is
  15533. different.
  15534. '.half'
  15535. This is functionally identical to '.short'.
  15536. '.nword'
  15537. On the Sparc, the '.nword' directive produces native word sized
  15538. value, ie. if assembling with -32 it is equivalent to '.word', if
  15539. assembling with -64 it is equivalent to '.xword'.
  15540. '.proc'
  15541. This directive is ignored. Any text following it on the same line
  15542. is also ignored.
  15543. '.register'
  15544. This directive declares use of a global application or system
  15545. register. It must be followed by a register name %g2, %g3, %g6 or
  15546. %g7, comma and the symbol name for that register. If symbol name
  15547. is '#scratch', it is a scratch register, if it is '#ignore', it
  15548. just suppresses any errors about using undeclared global register,
  15549. but does not emit any information about it into the object file.
  15550. This can be useful e.g. if you save the register before use and
  15551. restore it after.
  15552. '.reserve'
  15553. This must be followed by a symbol name, a positive number, and
  15554. '"bss"'. This behaves somewhat like '.lcomm', but the syntax is
  15555. different.
  15556. '.seg'
  15557. This must be followed by '"text"', '"data"', or '"data1"'. It
  15558. behaves like '.text', '.data', or '.data 1'.
  15559. '.skip'
  15560. This is functionally identical to the '.space' directive.
  15561. '.word'
  15562. On the Sparc, the '.word' directive produces 32 bit values, instead
  15563. of the 16 bit values it produces on many other machines.
  15564. '.xword'
  15565. On the Sparc V9 processor, the '.xword' directive produces 64 bit
  15566. values.
  15567. 
  15568. File: as.info, Node: TIC54X-Dependent, Next: TIC6X-Dependent, Prev: Sparc-Dependent, Up: Machine Dependencies
  15569. 9.44 TIC54X Dependent Features
  15570. ==============================
  15571. * Menu:
  15572. * TIC54X-Opts:: Command-line Options
  15573. * TIC54X-Block:: Blocking
  15574. * TIC54X-Env:: Environment Settings
  15575. * TIC54X-Constants:: Constants Syntax
  15576. * TIC54X-Subsyms:: String Substitution
  15577. * TIC54X-Locals:: Local Label Syntax
  15578. * TIC54X-Builtins:: Builtin Assembler Math Functions
  15579. * TIC54X-Ext:: Extended Addressing Support
  15580. * TIC54X-Directives:: Directives
  15581. * TIC54X-Macros:: Macro Features
  15582. * TIC54X-MMRegs:: Memory-mapped Registers
  15583. * TIC54X-Syntax:: Syntax
  15584. 
  15585. File: as.info, Node: TIC54X-Opts, Next: TIC54X-Block, Up: TIC54X-Dependent
  15586. 9.44.1 Options
  15587. --------------
  15588. The TMS320C54X version of 'as' has a few machine-dependent options.
  15589. You can use the '-mfar-mode' option to enable extended addressing
  15590. mode. All addresses will be assumed to be > 16 bits, and the
  15591. appropriate relocation types will be used. This option is equivalent to
  15592. using the '.far_mode' directive in the assembly code. If you do not use
  15593. the '-mfar-mode' option, all references will be assumed to be 16 bits.
  15594. This option may be abbreviated to '-mf'.
  15595. You can use the '-mcpu' option to specify a particular CPU. This
  15596. option is equivalent to using the '.version' directive in the assembly
  15597. code. For recognized CPU codes, see *Note '.version':
  15598. TIC54X-Directives. The default CPU version is '542'.
  15599. You can use the '-merrors-to-file' option to redirect error output to
  15600. a file (this provided for those deficient environments which don't
  15601. provide adequate output redirection). This option may be abbreviated to
  15602. '-me'.
  15603. 
  15604. File: as.info, Node: TIC54X-Block, Next: TIC54X-Env, Prev: TIC54X-Opts, Up: TIC54X-Dependent
  15605. 9.44.2 Blocking
  15606. ---------------
  15607. A blocked section or memory block is guaranteed not to cross the
  15608. blocking boundary (usually a page, or 128 words) if it is smaller than
  15609. the blocking size, or to start on a page boundary if it is larger than
  15610. the blocking size.
  15611. 
  15612. File: as.info, Node: TIC54X-Env, Next: TIC54X-Constants, Prev: TIC54X-Block, Up: TIC54X-Dependent
  15613. 9.44.3 Environment Settings
  15614. ---------------------------
  15615. 'C54XDSP_DIR' and 'A_DIR' are semicolon-separated paths which are added
  15616. to the list of directories normally searched for source and include
  15617. files. 'C54XDSP_DIR' will override 'A_DIR'.
  15618. 
  15619. File: as.info, Node: TIC54X-Constants, Next: TIC54X-Subsyms, Prev: TIC54X-Env, Up: TIC54X-Dependent
  15620. 9.44.4 Constants Syntax
  15621. -----------------------
  15622. The TIC54X version of 'as' allows the following additional constant
  15623. formats, using a suffix to indicate the radix:
  15624. Binary 000000B, 011000b
  15625. Octal 10Q, 224q
  15626. Hexadecimal 45h, 0FH
  15627. 
  15628. File: as.info, Node: TIC54X-Subsyms, Next: TIC54X-Locals, Prev: TIC54X-Constants, Up: TIC54X-Dependent
  15629. 9.44.5 String Substitution
  15630. --------------------------
  15631. A subset of allowable symbols (which we'll call subsyms) may be assigned
  15632. arbitrary string values. This is roughly equivalent to C preprocessor
  15633. #define macros. When 'as' encounters one of these symbols, the symbol
  15634. is replaced in the input stream by its string value. Subsym names
  15635. *must* begin with a letter.
  15636. Subsyms may be defined using the '.asg' and '.eval' directives (*Note
  15637. '.asg': TIC54X-Directives, *Note '.eval': TIC54X-Directives.
  15638. Expansion is recursive until a previously encountered symbol is seen,
  15639. at which point substitution stops.
  15640. In this example, x is replaced with SYM2; SYM2 is replaced with SYM1,
  15641. and SYM1 is replaced with x. At this point, x has already been
  15642. encountered and the substitution stops.
  15643. .asg "x",SYM1
  15644. .asg "SYM1",SYM2
  15645. .asg "SYM2",x
  15646. add x,a ; final code assembled is "add x, a"
  15647. Macro parameters are converted to subsyms; a side effect of this is
  15648. the normal 'as' '\ARG' dereferencing syntax is unnecessary. Subsyms
  15649. defined within a macro will have global scope, unless the '.var'
  15650. directive is used to identify the subsym as a local macro variable *note
  15651. '.var': TIC54X-Directives.
  15652. Substitution may be forced in situations where replacement might be
  15653. ambiguous by placing colons on either side of the subsym. The following
  15654. code:
  15655. .eval "10",x
  15656. LAB:X: add #x, a
  15657. When assembled becomes:
  15658. LAB10 add #10, a
  15659. Smaller parts of the string assigned to a subsym may be accessed with
  15660. the following syntax:
  15661. ':SYMBOL(CHAR_INDEX):'
  15662. Evaluates to a single-character string, the character at
  15663. CHAR_INDEX.
  15664. ':SYMBOL(START,LENGTH):'
  15665. Evaluates to a substring of SYMBOL beginning at START with length
  15666. LENGTH.
  15667. 
  15668. File: as.info, Node: TIC54X-Locals, Next: TIC54X-Builtins, Prev: TIC54X-Subsyms, Up: TIC54X-Dependent
  15669. 9.44.6 Local Labels
  15670. -------------------
  15671. Local labels may be defined in two ways:
  15672. * $N, where N is a decimal number between 0 and 9
  15673. * LABEL?, where LABEL is any legal symbol name.
  15674. Local labels thus defined may be redefined or automatically
  15675. generated. The scope of a local label is based on when it may be
  15676. undefined or reset. This happens when one of the following situations
  15677. is encountered:
  15678. * .newblock directive *note '.newblock': TIC54X-Directives.
  15679. * The current section is changed (.sect, .text, or .data)
  15680. * Entering or leaving an included file
  15681. * The macro scope where the label was defined is exited
  15682. 
  15683. File: as.info, Node: TIC54X-Builtins, Next: TIC54X-Ext, Prev: TIC54X-Locals, Up: TIC54X-Dependent
  15684. 9.44.7 Math Builtins
  15685. --------------------
  15686. The following built-in functions may be used to generate a
  15687. floating-point value. All return a floating-point value except '$cvi',
  15688. '$int', and '$sgn', which return an integer value.
  15689. '$acos(EXPR)'
  15690. Returns the floating point arccosine of EXPR.
  15691. '$asin(EXPR)'
  15692. Returns the floating point arcsine of EXPR.
  15693. '$atan(EXPR)'
  15694. Returns the floating point arctangent of EXPR.
  15695. '$atan2(EXPR1,EXPR2)'
  15696. Returns the floating point arctangent of EXPR1 / EXPR2.
  15697. '$ceil(EXPR)'
  15698. Returns the smallest integer not less than EXPR as floating point.
  15699. '$cosh(EXPR)'
  15700. Returns the floating point hyperbolic cosine of EXPR.
  15701. '$cos(EXPR)'
  15702. Returns the floating point cosine of EXPR.
  15703. '$cvf(EXPR)'
  15704. Returns the integer value EXPR converted to floating-point.
  15705. '$cvi(EXPR)'
  15706. Returns the floating point value EXPR converted to integer.
  15707. '$exp(EXPR)'
  15708. Returns the floating point value e ^ EXPR.
  15709. '$fabs(EXPR)'
  15710. Returns the floating point absolute value of EXPR.
  15711. '$floor(EXPR)'
  15712. Returns the largest integer that is not greater than EXPR as
  15713. floating point.
  15714. '$fmod(EXPR1,EXPR2)'
  15715. Returns the floating point remainder of EXPR1 / EXPR2.
  15716. '$int(EXPR)'
  15717. Returns 1 if EXPR evaluates to an integer, zero otherwise.
  15718. '$ldexp(EXPR1,EXPR2)'
  15719. Returns the floating point value EXPR1 * 2 ^ EXPR2.
  15720. '$log10(EXPR)'
  15721. Returns the base 10 logarithm of EXPR.
  15722. '$log(EXPR)'
  15723. Returns the natural logarithm of EXPR.
  15724. '$max(EXPR1,EXPR2)'
  15725. Returns the floating point maximum of EXPR1 and EXPR2.
  15726. '$min(EXPR1,EXPR2)'
  15727. Returns the floating point minimum of EXPR1 and EXPR2.
  15728. '$pow(EXPR1,EXPR2)'
  15729. Returns the floating point value EXPR1 ^ EXPR2.
  15730. '$round(EXPR)'
  15731. Returns the nearest integer to EXPR as a floating point number.
  15732. '$sgn(EXPR)'
  15733. Returns -1, 0, or 1 based on the sign of EXPR.
  15734. '$sin(EXPR)'
  15735. Returns the floating point sine of EXPR.
  15736. '$sinh(EXPR)'
  15737. Returns the floating point hyperbolic sine of EXPR.
  15738. '$sqrt(EXPR)'
  15739. Returns the floating point square root of EXPR.
  15740. '$tan(EXPR)'
  15741. Returns the floating point tangent of EXPR.
  15742. '$tanh(EXPR)'
  15743. Returns the floating point hyperbolic tangent of EXPR.
  15744. '$trunc(EXPR)'
  15745. Returns the integer value of EXPR truncated towards zero as
  15746. floating point.
  15747. 
  15748. File: as.info, Node: TIC54X-Ext, Next: TIC54X-Directives, Prev: TIC54X-Builtins, Up: TIC54X-Dependent
  15749. 9.44.8 Extended Addressing
  15750. --------------------------
  15751. The 'LDX' pseudo-op is provided for loading the extended addressing bits
  15752. of a label or address. For example, if an address '_label' resides in
  15753. extended program memory, the value of '_label' may be loaded as follows:
  15754. ldx #_label,16,a ; loads extended bits of _label
  15755. or #_label,a ; loads lower 16 bits of _label
  15756. bacc a ; full address is in accumulator A
  15757. 
  15758. File: as.info, Node: TIC54X-Directives, Next: TIC54X-Macros, Prev: TIC54X-Ext, Up: TIC54X-Dependent
  15759. 9.44.9 Directives
  15760. -----------------
  15761. '.align [SIZE]'
  15762. '.even'
  15763. Align the section program counter on the next boundary, based on
  15764. SIZE. SIZE may be any power of 2. '.even' is equivalent to
  15765. '.align' with a SIZE of 2.
  15766. '1'
  15767. Align SPC to word boundary
  15768. '2'
  15769. Align SPC to longword boundary (same as .even)
  15770. '128'
  15771. Align SPC to page boundary
  15772. '.asg STRING, NAME'
  15773. Assign NAME the string STRING. String replacement is performed on
  15774. STRING before assignment.
  15775. '.eval STRING, NAME'
  15776. Evaluate the contents of string STRING and assign the result as a
  15777. string to the subsym NAME. String replacement is performed on
  15778. STRING before assignment.
  15779. '.bss SYMBOL, SIZE [, [BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  15780. Reserve space for SYMBOL in the .bss section. SIZE is in words.
  15781. If present, BLOCKING_FLAG indicates the allocated space should be
  15782. aligned on a page boundary if it would otherwise cross a page
  15783. boundary. If present, ALIGNMENT_FLAG causes the assembler to
  15784. allocate SIZE on a long word boundary.
  15785. '.byte VALUE [,...,VALUE_N]'
  15786. '.ubyte VALUE [,...,VALUE_N]'
  15787. '.char VALUE [,...,VALUE_N]'
  15788. '.uchar VALUE [,...,VALUE_N]'
  15789. Place one or more bytes into consecutive words of the current
  15790. section. The upper 8 bits of each word is zero-filled. If a label
  15791. is used, it points to the word allocated for the first byte
  15792. encountered.
  15793. '.clink ["SECTION_NAME"]'
  15794. Set STYP_CLINK flag for this section, which indicates to the linker
  15795. that if no symbols from this section are referenced, the section
  15796. should not be included in the link. If SECTION_NAME is omitted,
  15797. the current section is used.
  15798. '.c_mode'
  15799. TBD.
  15800. '.copy "FILENAME" | FILENAME'
  15801. '.include "FILENAME" | FILENAME'
  15802. Read source statements from FILENAME. The normal include search
  15803. path is used. Normally .copy will cause statements from the
  15804. included file to be printed in the assembly listing and .include
  15805. will not, but this distinction is not currently implemented.
  15806. '.data'
  15807. Begin assembling code into the .data section.
  15808. '.double VALUE [,...,VALUE_N]'
  15809. '.ldouble VALUE [,...,VALUE_N]'
  15810. '.float VALUE [,...,VALUE_N]'
  15811. '.xfloat VALUE [,...,VALUE_N]'
  15812. Place an IEEE single-precision floating-point representation of one
  15813. or more floating-point values into the current section. All but
  15814. '.xfloat' align the result on a longword boundary. Values are
  15815. stored most-significant word first.
  15816. '.drlist'
  15817. '.drnolist'
  15818. Control printing of directives to the listing file. Ignored.
  15819. '.emsg STRING'
  15820. '.mmsg STRING'
  15821. '.wmsg STRING'
  15822. Emit a user-defined error, message, or warning, respectively.
  15823. '.far_mode'
  15824. Use extended addressing when assembling statements. This should
  15825. appear only once per file, and is equivalent to the -mfar-mode
  15826. option *note '-mfar-mode': TIC54X-Opts.
  15827. '.fclist'
  15828. '.fcnolist'
  15829. Control printing of false conditional blocks to the listing file.
  15830. '.field VALUE [,SIZE]'
  15831. Initialize a bitfield of SIZE bits in the current section. If
  15832. VALUE is relocatable, then SIZE must be 16. SIZE defaults to 16
  15833. bits. If VALUE does not fit into SIZE bits, the value will be
  15834. truncated. Successive '.field' directives will pack starting at
  15835. the current word, filling the most significant bits first, and
  15836. aligning to the start of the next word if the field size does not
  15837. fit into the space remaining in the current word. A '.align'
  15838. directive with an operand of 1 will force the next '.field'
  15839. directive to begin packing into a new word. If a label is used, it
  15840. points to the word that contains the specified field.
  15841. '.global SYMBOL [,...,SYMBOL_N]'
  15842. '.def SYMBOL [,...,SYMBOL_N]'
  15843. '.ref SYMBOL [,...,SYMBOL_N]'
  15844. '.def' nominally identifies a symbol defined in the current file
  15845. and available to other files. '.ref' identifies a symbol used in
  15846. the current file but defined elsewhere. Both map to the standard
  15847. '.global' directive.
  15848. '.half VALUE [,...,VALUE_N]'
  15849. '.uhalf VALUE [,...,VALUE_N]'
  15850. '.short VALUE [,...,VALUE_N]'
  15851. '.ushort VALUE [,...,VALUE_N]'
  15852. '.int VALUE [,...,VALUE_N]'
  15853. '.uint VALUE [,...,VALUE_N]'
  15854. '.word VALUE [,...,VALUE_N]'
  15855. '.uword VALUE [,...,VALUE_N]'
  15856. Place one or more values into consecutive words of the current
  15857. section. If a label is used, it points to the word allocated for
  15858. the first value encountered.
  15859. '.label SYMBOL'
  15860. Define a special SYMBOL to refer to the load time address of the
  15861. current section program counter.
  15862. '.length'
  15863. '.width'
  15864. Set the page length and width of the output listing file. Ignored.
  15865. '.list'
  15866. '.nolist'
  15867. Control whether the source listing is printed. Ignored.
  15868. '.long VALUE [,...,VALUE_N]'
  15869. '.ulong VALUE [,...,VALUE_N]'
  15870. '.xlong VALUE [,...,VALUE_N]'
  15871. Place one or more 32-bit values into consecutive words in the
  15872. current section. The most significant word is stored first.
  15873. '.long' and '.ulong' align the result on a longword boundary;
  15874. 'xlong' does not.
  15875. '.loop [COUNT]'
  15876. '.break [CONDITION]'
  15877. '.endloop'
  15878. Repeatedly assemble a block of code. '.loop' begins the block, and
  15879. '.endloop' marks its termination. COUNT defaults to 1024, and
  15880. indicates the number of times the block should be repeated.
  15881. '.break' terminates the loop so that assembly begins after the
  15882. '.endloop' directive. The optional CONDITION will cause the loop
  15883. to terminate only if it evaluates to zero.
  15884. 'MACRO_NAME .macro [PARAM1][,...PARAM_N]'
  15885. '[.mexit]'
  15886. '.endm'
  15887. See the section on macros for more explanation (*Note
  15888. TIC54X-Macros::.
  15889. '.mlib "FILENAME" | FILENAME'
  15890. Load the macro library FILENAME. FILENAME must be an archived
  15891. library (BFD ar-compatible) of text files, expected to contain only
  15892. macro definitions. The standard include search path is used.
  15893. '.mlist'
  15894. '.mnolist'
  15895. Control whether to include macro and loop block expansions in the
  15896. listing output. Ignored.
  15897. '.mmregs'
  15898. Define global symbolic names for the 'c54x registers. Supposedly
  15899. equivalent to executing '.set' directives for each register with
  15900. its memory-mapped value, but in reality is provided only for
  15901. compatibility and does nothing.
  15902. '.newblock'
  15903. This directive resets any TIC54X local labels currently defined.
  15904. Normal 'as' local labels are unaffected.
  15905. '.option OPTION_LIST'
  15906. Set listing options. Ignored.
  15907. '.sblock "SECTION_NAME" | SECTION_NAME [,"NAME_N" | NAME_N]'
  15908. Designate SECTION_NAME for blocking. Blocking guarantees that a
  15909. section will start on a page boundary (128 words) if it would
  15910. otherwise cross a page boundary. Only initialized sections may be
  15911. designated with this directive. See also *Note TIC54X-Block::.
  15912. '.sect "SECTION_NAME"'
  15913. Define a named initialized section and make it the current section.
  15914. 'SYMBOL .set "VALUE"'
  15915. 'SYMBOL .equ "VALUE"'
  15916. Equate a constant VALUE to a SYMBOL, which is placed in the symbol
  15917. table. SYMBOL may not be previously defined.
  15918. '.space SIZE_IN_BITS'
  15919. '.bes SIZE_IN_BITS'
  15920. Reserve the given number of bits in the current section and
  15921. zero-fill them. If a label is used with '.space', it points to the
  15922. *first* word reserved. With '.bes', the label points to the *last*
  15923. word reserved.
  15924. '.sslist'
  15925. '.ssnolist'
  15926. Controls the inclusion of subsym replacement in the listing output.
  15927. Ignored.
  15928. '.string "STRING" [,...,"STRING_N"]'
  15929. '.pstring "STRING" [,...,"STRING_N"]'
  15930. Place 8-bit characters from STRING into the current section.
  15931. '.string' zero-fills the upper 8 bits of each word, while
  15932. '.pstring' puts two characters into each word, filling the
  15933. most-significant bits first. Unused space is zero-filled. If a
  15934. label is used, it points to the first word initialized.
  15935. '[STAG] .struct [OFFSET]'
  15936. '[NAME_1] element [COUNT_1]'
  15937. '[NAME_2] element [COUNT_2]'
  15938. '[TNAME] .tag STAGX [TCOUNT]'
  15939. '...'
  15940. '[NAME_N] element [COUNT_N]'
  15941. '[SSIZE] .endstruct'
  15942. 'LABEL .tag [STAG]'
  15943. Assign symbolic offsets to the elements of a structure. STAG
  15944. defines a symbol to use to reference the structure. OFFSET
  15945. indicates a starting value to use for the first element
  15946. encountered; otherwise it defaults to zero. Each element can have
  15947. a named offset, NAME, which is a symbol assigned the value of the
  15948. element's offset into the structure. If STAG is missing, these
  15949. become global symbols. COUNT adjusts the offset that many times,
  15950. as if 'element' were an array. 'element' may be one of '.byte',
  15951. '.word', '.long', '.float', or any equivalent of those, and the
  15952. structure offset is adjusted accordingly. '.field' and '.string'
  15953. are also allowed; the size of '.field' is one bit, and '.string' is
  15954. considered to be one word in size. Only element descriptors,
  15955. structure/union tags, '.align' and conditional assembly directives
  15956. are allowed within '.struct'/'.endstruct'. '.align' aligns member
  15957. offsets to word boundaries only. SSIZE, if provided, will always
  15958. be assigned the size of the structure.
  15959. The '.tag' directive, in addition to being used to define a
  15960. structure/union element within a structure, may be used to apply a
  15961. structure to a symbol. Once applied to LABEL, the individual
  15962. structure elements may be applied to LABEL to produce the desired
  15963. offsets using LABEL as the structure base.
  15964. '.tab'
  15965. Set the tab size in the output listing. Ignored.
  15966. '[UTAG] .union'
  15967. '[NAME_1] element [COUNT_1]'
  15968. '[NAME_2] element [COUNT_2]'
  15969. '[TNAME] .tag UTAGX[,TCOUNT]'
  15970. '...'
  15971. '[NAME_N] element [COUNT_N]'
  15972. '[USIZE] .endstruct'
  15973. 'LABEL .tag [UTAG]'
  15974. Similar to '.struct', but the offset after each element is reset to
  15975. zero, and the USIZE is set to the maximum of all defined elements.
  15976. Starting offset for the union is always zero.
  15977. '[SYMBOL] .usect "SECTION_NAME", SIZE, [,[BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  15978. Reserve space for variables in a named, uninitialized section
  15979. (similar to .bss). '.usect' allows definitions sections
  15980. independent of .bss. SYMBOL points to the first location reserved
  15981. by this allocation. The symbol may be used as a variable name.
  15982. SIZE is the allocated size in words. BLOCKING_FLAG indicates
  15983. whether to block this section on a page boundary (128 words) (*note
  15984. TIC54X-Block::). ALIGNMENT FLAG indicates whether the section
  15985. should be longword-aligned.
  15986. '.var SYM[,..., SYM_N]'
  15987. Define a subsym to be a local variable within a macro. See *Note
  15988. TIC54X-Macros::.
  15989. '.version VERSION'
  15990. Set which processor to build instructions for. Though the
  15991. following values are accepted, the op is ignored.
  15992. '541'
  15993. '542'
  15994. '543'
  15995. '545'
  15996. '545LP'
  15997. '546LP'
  15998. '548'
  15999. '549'
  16000. 
  16001. File: as.info, Node: TIC54X-Macros, Next: TIC54X-MMRegs, Prev: TIC54X-Directives, Up: TIC54X-Dependent
  16002. 9.44.10 Macros
  16003. --------------
  16004. Macros do not require explicit dereferencing of arguments (i.e., \ARG).
  16005. During macro expansion, the macro parameters are converted to
  16006. subsyms. If the number of arguments passed the macro invocation exceeds
  16007. the number of parameters defined, the last parameter is assigned the
  16008. string equivalent of all remaining arguments. If fewer arguments are
  16009. given than parameters, the missing parameters are assigned empty
  16010. strings. To include a comma in an argument, you must enclose the
  16011. argument in quotes.
  16012. The following built-in subsym functions allow examination of the
  16013. string value of subsyms (or ordinary strings). The arguments are
  16014. strings unless otherwise indicated (subsyms passed as args will be
  16015. replaced by the strings they represent).
  16016. '$symlen(STR)'
  16017. Returns the length of STR.
  16018. '$symcmp(STR1,STR2)'
  16019. Returns 0 if STR1 == STR2, non-zero otherwise.
  16020. '$firstch(STR,CH)'
  16021. Returns index of the first occurrence of character constant CH in
  16022. STR.
  16023. '$lastch(STR,CH)'
  16024. Returns index of the last occurrence of character constant CH in
  16025. STR.
  16026. '$isdefed(SYMBOL)'
  16027. Returns zero if the symbol SYMBOL is not in the symbol table,
  16028. non-zero otherwise.
  16029. '$ismember(SYMBOL,LIST)'
  16030. Assign the first member of comma-separated string LIST to SYMBOL;
  16031. LIST is reassigned the remainder of the list. Returns zero if LIST
  16032. is a null string. Both arguments must be subsyms.
  16033. '$iscons(EXPR)'
  16034. Returns 1 if string EXPR is binary, 2 if octal, 3 if hexadecimal, 4
  16035. if a character, 5 if decimal, and zero if not an integer.
  16036. '$isname(NAME)'
  16037. Returns 1 if NAME is a valid symbol name, zero otherwise.
  16038. '$isreg(REG)'
  16039. Returns 1 if REG is a valid predefined register name (AR0-AR7
  16040. only).
  16041. '$structsz(STAG)'
  16042. Returns the size of the structure or union represented by STAG.
  16043. '$structacc(STAG)'
  16044. Returns the reference point of the structure or union represented
  16045. by STAG. Always returns zero.
  16046. 
  16047. File: as.info, Node: TIC54X-MMRegs, Next: TIC54X-Syntax, Prev: TIC54X-Macros, Up: TIC54X-Dependent
  16048. 9.44.11 Memory-mapped Registers
  16049. -------------------------------
  16050. The following symbols are recognized as memory-mapped registers:
  16051. 
  16052. File: as.info, Node: TIC54X-Syntax, Prev: TIC54X-MMRegs, Up: TIC54X-Dependent
  16053. 9.44.12 TIC54X Syntax
  16054. ---------------------
  16055. * Menu:
  16056. * TIC54X-Chars:: Special Characters
  16057. 
  16058. File: as.info, Node: TIC54X-Chars, Up: TIC54X-Syntax
  16059. 9.44.12.1 Special Characters
  16060. ............................
  16061. The presence of a ';' appearing anywhere on a line indicates the start
  16062. of a comment that extends to the end of that line.
  16063. If a '#' appears as the first character of a line then the whole line
  16064. is treated as a comment, but in this case the line can also be a logical
  16065. line number directive (*note Comments::) or a preprocessor control
  16066. command (*note Preprocessing::).
  16067. The presence of an asterisk ('*') at the start of a line also
  16068. indicates a comment that extends to the end of that line.
  16069. The TIC54X assembler does not currently support a line separator
  16070. character.
  16071. 
  16072. File: as.info, Node: TIC6X-Dependent, Next: TILE-Gx-Dependent, Prev: TIC54X-Dependent, Up: Machine Dependencies
  16073. 9.45 TIC6X Dependent Features
  16074. =============================
  16075. * Menu:
  16076. * TIC6X Options:: Options
  16077. * TIC6X Syntax:: Syntax
  16078. * TIC6X Directives:: Directives
  16079. 
  16080. File: as.info, Node: TIC6X Options, Next: TIC6X Syntax, Up: TIC6X-Dependent
  16081. 9.45.1 TIC6X Options
  16082. --------------------
  16083. '-march=ARCH'
  16084. Enable (only) instructions from architecture ARCH. By default, all
  16085. instructions are permitted.
  16086. The following values of ARCH are accepted: 'c62x', 'c64x', 'c64x+',
  16087. 'c67x', 'c67x+', 'c674x'.
  16088. '-mdsbt'
  16089. '-mno-dsbt'
  16090. The '-mdsbt' option causes the assembler to generate the
  16091. 'Tag_ABI_DSBT' attribute with a value of 1, indicating that the
  16092. code is using DSBT addressing. The '-mno-dsbt' option, the
  16093. default, causes the tag to have a value of 0, indicating that the
  16094. code does not use DSBT addressing. The linker will emit a warning
  16095. if objects of different type (DSBT and non-DSBT) are linked
  16096. together.
  16097. '-mpid=no'
  16098. '-mpid=near'
  16099. '-mpid=far'
  16100. The '-mpid=' option causes the assembler to generate the
  16101. 'Tag_ABI_PID' attribute with a value indicating the form of data
  16102. addressing used by the code. '-mpid=no', the default, indicates
  16103. position-dependent data addressing, '-mpid=near' indicates
  16104. position-independent addressing with GOT accesses using near DP
  16105. addressing, and '-mpid=far' indicates position-independent
  16106. addressing with GOT accesses using far DP addressing. The linker
  16107. will emit a warning if objects built with different settings of
  16108. this option are linked together.
  16109. '-mpic'
  16110. '-mno-pic'
  16111. The '-mpic' option causes the assembler to generate the
  16112. 'Tag_ABI_PIC' attribute with a value of 1, indicating that the code
  16113. is using position-independent code addressing, The '-mno-pic'
  16114. option, the default, causes the tag to have a value of 0,
  16115. indicating position-dependent code addressing. The linker will
  16116. emit a warning if objects of different type (position-dependent and
  16117. position-independent) are linked together.
  16118. '-mbig-endian'
  16119. '-mlittle-endian'
  16120. Generate code for the specified endianness. The default is
  16121. little-endian.
  16122. 
  16123. File: as.info, Node: TIC6X Syntax, Next: TIC6X Directives, Prev: TIC6X Options, Up: TIC6X-Dependent
  16124. 9.45.2 TIC6X Syntax
  16125. -------------------
  16126. The presence of a ';' on a line indicates the start of a comment that
  16127. extends to the end of the current line. If a '#' or '*' appears as the
  16128. first character of a line, the whole line is treated as a comment. Note
  16129. that if a line starts with a '#' character then it can also be a logical
  16130. line number directive (*note Comments::) or a preprocessor control
  16131. command (*note Preprocessing::).
  16132. The '@' character can be used instead of a newline to separate
  16133. statements.
  16134. Instruction, register and functional unit names are case-insensitive.
  16135. 'as' requires fully-specified functional unit names, such as '.S1',
  16136. '.L1X' or '.D1T2', on all instructions using a functional unit.
  16137. For some instructions, there may be syntactic ambiguity between
  16138. register or functional unit names and the names of labels or other
  16139. symbols. To avoid this, enclose the ambiguous symbol name in
  16140. parentheses; register and functional unit names may not be enclosed in
  16141. parentheses.
  16142. 
  16143. File: as.info, Node: TIC6X Directives, Prev: TIC6X Syntax, Up: TIC6X-Dependent
  16144. 9.45.3 TIC6X Directives
  16145. -----------------------
  16146. Directives controlling the set of instructions accepted by the assembler
  16147. have effect for instructions between the directive and any subsequent
  16148. directive overriding it.
  16149. '.arch ARCH'
  16150. This has the same effect as '-march=ARCH'.
  16151. '.cantunwind'
  16152. Prevents unwinding through the current function. No personality
  16153. routine or exception table data is required or permitted.
  16154. If this is not specified then frame unwinding information will be
  16155. constructed from CFI directives. *note CFI directives::.
  16156. '.c6xabi_attribute TAG, VALUE'
  16157. Set the C6000 EABI build attribute TAG to VALUE.
  16158. The TAG is either an attribute number or one of 'Tag_ISA',
  16159. 'Tag_ABI_wchar_t', 'Tag_ABI_stack_align_needed',
  16160. 'Tag_ABI_stack_align_preserved', 'Tag_ABI_DSBT', 'Tag_ABI_PID',
  16161. 'Tag_ABI_PIC', 'TAG_ABI_array_object_alignment',
  16162. 'TAG_ABI_array_object_align_expected', 'Tag_ABI_compatibility' and
  16163. 'Tag_ABI_conformance'. The VALUE is either a 'number', '"string"',
  16164. or 'number, "string"' depending on the tag.
  16165. '.ehtype SYMBOL'
  16166. Output an exception type table reference to SYMBOL.
  16167. '.endp'
  16168. Marks the end of and exception table or function. If preceded by a
  16169. '.handlerdata' directive then this also switched back to the
  16170. previous text section.
  16171. '.handlerdata'
  16172. Marks the end of the current function, and the start of the
  16173. exception table entry for that function. Anything between this
  16174. directive and the '.endp' directive will be added to the exception
  16175. table entry.
  16176. Must be preceded by a CFI block containing a '.cfi_lsda' directive.
  16177. '.nocmp'
  16178. Disallow use of C64x+ compact instructions in the current text
  16179. section.
  16180. '.personalityindex INDEX'
  16181. Sets the personality routine for the current function to the ABI
  16182. specified compact routine number INDEX
  16183. '.personality NAME'
  16184. Sets the personality routine for the current function to NAME.
  16185. '.scomm SYMBOL, SIZE, ALIGN'
  16186. Like '.comm', creating a common symbol SYMBOL with size SIZE and
  16187. alignment ALIGN, but unlike when using '.comm', this symbol will be
  16188. placed into the small BSS section by the linker.
  16189. 
  16190. File: as.info, Node: TILE-Gx-Dependent, Next: TILEPro-Dependent, Prev: TIC6X-Dependent, Up: Machine Dependencies
  16191. 9.46 TILE-Gx Dependent Features
  16192. ===============================
  16193. * Menu:
  16194. * TILE-Gx Options:: TILE-Gx Options
  16195. * TILE-Gx Syntax:: TILE-Gx Syntax
  16196. * TILE-Gx Directives:: TILE-Gx Directives
  16197. 
  16198. File: as.info, Node: TILE-Gx Options, Next: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16199. 9.46.1 Options
  16200. --------------
  16201. The following table lists all available TILE-Gx specific options:
  16202. '-m32 | -m64'
  16203. Select the word size, either 32 bits or 64 bits.
  16204. '-EB | -EL'
  16205. Select the endianness, either big-endian (-EB) or little-endian
  16206. (-EL).
  16207. 
  16208. File: as.info, Node: TILE-Gx Syntax, Next: TILE-Gx Directives, Prev: TILE-Gx Options, Up: TILE-Gx-Dependent
  16209. 9.46.2 Syntax
  16210. -------------
  16211. Block comments are delimited by '/*' and '*/'. End of line comments may
  16212. be introduced by '#'.
  16213. Instructions consist of a leading opcode or macro name followed by
  16214. whitespace and an optional comma-separated list of operands:
  16215. OPCODE [OPERAND, ...]
  16216. Instructions must be separated by a newline or semicolon.
  16217. There are two ways to write code: either write naked instructions,
  16218. which the assembler is free to combine into VLIW bundles, or specify the
  16219. VLIW bundles explicitly.
  16220. Bundles are specified using curly braces:
  16221. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  16222. A bundle can span multiple lines. If you want to put multiple
  16223. instructions on a line, whether in a bundle or not, you need to separate
  16224. them with semicolons as in this example.
  16225. A bundle may contain one or more instructions, up to the limit
  16226. specified by the ISA (currently three). If fewer instructions are
  16227. specified than the hardware supports in a bundle, the assembler inserts
  16228. 'fnop' instructions automatically.
  16229. The assembler will prefer to preserve the ordering of instructions
  16230. within the bundle, putting the first instruction in a lower-numbered
  16231. pipeline than the next one, etc. This fact, combined with the optional
  16232. use of explicit 'fnop' or 'nop' instructions, allows precise control
  16233. over which pipeline executes each instruction.
  16234. If the instructions cannot be bundled in the listed order, the
  16235. assembler will automatically try to find a valid pipeline assignment.
  16236. If there is no way to bundle the instructions together, the assembler
  16237. reports an error.
  16238. The assembler does not yet auto-bundle (automatically combine
  16239. multiple instructions into one bundle), but it reserves the right to do
  16240. so in the future. If you want to force an instruction to run by itself,
  16241. put it in a bundle explicitly with curly braces and use 'nop'
  16242. instructions (not 'fnop') to fill the remaining pipeline slots in that
  16243. bundle.
  16244. * Menu:
  16245. * TILE-Gx Opcodes:: Opcode Naming Conventions.
  16246. * TILE-Gx Registers:: Register Naming.
  16247. * TILE-Gx Modifiers:: Symbolic Operand Modifiers.
  16248. 
  16249. File: as.info, Node: TILE-Gx Opcodes, Next: TILE-Gx Registers, Up: TILE-Gx Syntax
  16250. 9.46.2.1 Opcode Names
  16251. .....................
  16252. For a complete list of opcodes and descriptions of their semantics, see
  16253. 'TILE-Gx Instruction Set Architecture', available upon request at
  16254. www.tilera.com.
  16255. 
  16256. File: as.info, Node: TILE-Gx Registers, Next: TILE-Gx Modifiers, Prev: TILE-Gx Opcodes, Up: TILE-Gx Syntax
  16257. 9.46.2.2 Register Names
  16258. .......................
  16259. General-purpose registers are represented by predefined symbols of the
  16260. form 'rN', where N represents a number between '0' and '63'. However,
  16261. the following registers have canonical names that must be used instead:
  16262. 'r54'
  16263. sp
  16264. 'r55'
  16265. lr
  16266. 'r56'
  16267. sn
  16268. 'r57'
  16269. idn0
  16270. 'r58'
  16271. idn1
  16272. 'r59'
  16273. udn0
  16274. 'r60'
  16275. udn1
  16276. 'r61'
  16277. udn2
  16278. 'r62'
  16279. udn3
  16280. 'r63'
  16281. zero
  16282. The assembler will emit a warning if a numeric name is used instead
  16283. of the non-numeric name. The '.no_require_canonical_reg_names'
  16284. assembler pseudo-op turns off this warning.
  16285. '.require_canonical_reg_names' turns it back on.
  16286. 
  16287. File: as.info, Node: TILE-Gx Modifiers, Prev: TILE-Gx Registers, Up: TILE-Gx Syntax
  16288. 9.46.2.3 Symbolic Operand Modifiers
  16289. ...................................
  16290. The assembler supports several modifiers when using symbol addresses in
  16291. TILE-Gx instruction operands. The general syntax is the following:
  16292. modifier(symbol)
  16293. The following modifiers are supported:
  16294. 'hw0'
  16295. This modifier is used to load bits 0-15 of the symbol's address.
  16296. 'hw1'
  16297. This modifier is used to load bits 16-31 of the symbol's address.
  16298. 'hw2'
  16299. This modifier is used to load bits 32-47 of the symbol's address.
  16300. 'hw3'
  16301. This modifier is used to load bits 48-63 of the symbol's address.
  16302. 'hw0_last'
  16303. This modifier yields the same value as 'hw0', but it also checks
  16304. that the value does not overflow.
  16305. 'hw1_last'
  16306. This modifier yields the same value as 'hw1', but it also checks
  16307. that the value does not overflow.
  16308. 'hw2_last'
  16309. This modifier yields the same value as 'hw2', but it also checks
  16310. that the value does not overflow.
  16311. A 48-bit symbolic value is constructed by using the following
  16312. idiom:
  16313. moveli r0, hw2_last(sym)
  16314. shl16insli r0, r0, hw1(sym)
  16315. shl16insli r0, r0, hw0(sym)
  16316. 'hw0_got'
  16317. This modifier is used to load bits 0-15 of the symbol's offset in
  16318. the GOT entry corresponding to the symbol.
  16319. 'hw0_last_got'
  16320. This modifier yields the same value as 'hw0_got', but it also
  16321. checks that the value does not overflow.
  16322. 'hw1_last_got'
  16323. This modifier is used to load bits 16-31 of the symbol's offset in
  16324. the GOT entry corresponding to the symbol, and it also checks that
  16325. the value does not overflow.
  16326. 'plt'
  16327. This modifier is used for function symbols. It causes a _procedure
  16328. linkage table_, an array of code stubs, to be created at the time
  16329. the shared object is created or linked against, together with a
  16330. global offset table entry. The value is a pc-relative offset to
  16331. the corresponding stub code in the procedure linkage table. This
  16332. arrangement causes the run-time symbol resolver to be called to
  16333. look up and set the value of the symbol the first time the function
  16334. is called (at latest; depending environment variables). It is only
  16335. safe to leave the symbol unresolved this way if all references are
  16336. function calls.
  16337. 'hw0_plt'
  16338. This modifier is used to load bits 0-15 of the pc-relative address
  16339. of a plt entry.
  16340. 'hw1_plt'
  16341. This modifier is used to load bits 16-31 of the pc-relative address
  16342. of a plt entry.
  16343. 'hw1_last_plt'
  16344. This modifier yields the same value as 'hw1_plt', but it also
  16345. checks that the value does not overflow.
  16346. 'hw2_last_plt'
  16347. This modifier is used to load bits 32-47 of the pc-relative address
  16348. of a plt entry, and it also checks that the value does not
  16349. overflow.
  16350. 'hw0_tls_gd'
  16351. This modifier is used to load bits 0-15 of the offset of the GOT
  16352. entry of the symbol's TLS descriptor, to be used for
  16353. general-dynamic TLS accesses.
  16354. 'hw0_last_tls_gd'
  16355. This modifier yields the same value as 'hw0_tls_gd', but it also
  16356. checks that the value does not overflow.
  16357. 'hw1_last_tls_gd'
  16358. This modifier is used to load bits 16-31 of the offset of the GOT
  16359. entry of the symbol's TLS descriptor, to be used for
  16360. general-dynamic TLS accesses. It also checks that the value does
  16361. not overflow.
  16362. 'hw0_tls_ie'
  16363. This modifier is used to load bits 0-15 of the offset of the GOT
  16364. entry containing the offset of the symbol's address from the TCB,
  16365. to be used for initial-exec TLS accesses.
  16366. 'hw0_last_tls_ie'
  16367. This modifier yields the same value as 'hw0_tls_ie', but it also
  16368. checks that the value does not overflow.
  16369. 'hw1_last_tls_ie'
  16370. This modifier is used to load bits 16-31 of the offset of the GOT
  16371. entry containing the offset of the symbol's address from the TCB,
  16372. to be used for initial-exec TLS accesses. It also checks that the
  16373. value does not overflow.
  16374. 'hw0_tls_le'
  16375. This modifier is used to load bits 0-15 of the offset of the
  16376. symbol's address from the TCB, to be used for local-exec TLS
  16377. accesses.
  16378. 'hw0_last_tls_le'
  16379. This modifier yields the same value as 'hw0_tls_le', but it also
  16380. checks that the value does not overflow.
  16381. 'hw1_last_tls_le'
  16382. This modifier is used to load bits 16-31 of the offset of the
  16383. symbol's address from the TCB, to be used for local-exec TLS
  16384. accesses. It also checks that the value does not overflow.
  16385. 'tls_gd_call'
  16386. This modifier is used to tag an instruction as the "call" part of a
  16387. calling sequence for a TLS GD reference of its operand.
  16388. 'tls_gd_add'
  16389. This modifier is used to tag an instruction as the "add" part of a
  16390. calling sequence for a TLS GD reference of its operand.
  16391. 'tls_ie_load'
  16392. This modifier is used to tag an instruction as the "load" part of a
  16393. calling sequence for a TLS IE reference of its operand.
  16394. 
  16395. File: as.info, Node: TILE-Gx Directives, Prev: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16396. 9.46.3 TILE-Gx Directives
  16397. -------------------------
  16398. '.align EXPRESSION [, EXPRESSION]'
  16399. This is the generic .ALIGN directive. The first argument is the
  16400. requested alignment in bytes.
  16401. '.allow_suspicious_bundles'
  16402. Turns on error checking for combinations of instructions in a
  16403. bundle that probably indicate a programming error. This is on by
  16404. default.
  16405. '.no_allow_suspicious_bundles'
  16406. Turns off error checking for combinations of instructions in a
  16407. bundle that probably indicate a programming error.
  16408. '.require_canonical_reg_names'
  16409. Require that canonical register names be used, and emit a warning
  16410. if the numeric names are used. This is on by default.
  16411. '.no_require_canonical_reg_names'
  16412. Permit the use of numeric names for registers that have canonical
  16413. names.
  16414. 
  16415. File: as.info, Node: TILEPro-Dependent, Next: V850-Dependent, Prev: TILE-Gx-Dependent, Up: Machine Dependencies
  16416. 9.47 TILEPro Dependent Features
  16417. ===============================
  16418. * Menu:
  16419. * TILEPro Options:: TILEPro Options
  16420. * TILEPro Syntax:: TILEPro Syntax
  16421. * TILEPro Directives:: TILEPro Directives
  16422. 
  16423. File: as.info, Node: TILEPro Options, Next: TILEPro Syntax, Up: TILEPro-Dependent
  16424. 9.47.1 Options
  16425. --------------
  16426. 'as' has no machine-dependent command-line options for TILEPro.
  16427. 
  16428. File: as.info, Node: TILEPro Syntax, Next: TILEPro Directives, Prev: TILEPro Options, Up: TILEPro-Dependent
  16429. 9.47.2 Syntax
  16430. -------------
  16431. Block comments are delimited by '/*' and '*/'. End of line comments may
  16432. be introduced by '#'.
  16433. Instructions consist of a leading opcode or macro name followed by
  16434. whitespace and an optional comma-separated list of operands:
  16435. OPCODE [OPERAND, ...]
  16436. Instructions must be separated by a newline or semicolon.
  16437. There are two ways to write code: either write naked instructions,
  16438. which the assembler is free to combine into VLIW bundles, or specify the
  16439. VLIW bundles explicitly.
  16440. Bundles are specified using curly braces:
  16441. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  16442. A bundle can span multiple lines. If you want to put multiple
  16443. instructions on a line, whether in a bundle or not, you need to separate
  16444. them with semicolons as in this example.
  16445. A bundle may contain one or more instructions, up to the limit
  16446. specified by the ISA (currently three). If fewer instructions are
  16447. specified than the hardware supports in a bundle, the assembler inserts
  16448. 'fnop' instructions automatically.
  16449. The assembler will prefer to preserve the ordering of instructions
  16450. within the bundle, putting the first instruction in a lower-numbered
  16451. pipeline than the next one, etc. This fact, combined with the optional
  16452. use of explicit 'fnop' or 'nop' instructions, allows precise control
  16453. over which pipeline executes each instruction.
  16454. If the instructions cannot be bundled in the listed order, the
  16455. assembler will automatically try to find a valid pipeline assignment.
  16456. If there is no way to bundle the instructions together, the assembler
  16457. reports an error.
  16458. The assembler does not yet auto-bundle (automatically combine
  16459. multiple instructions into one bundle), but it reserves the right to do
  16460. so in the future. If you want to force an instruction to run by itself,
  16461. put it in a bundle explicitly with curly braces and use 'nop'
  16462. instructions (not 'fnop') to fill the remaining pipeline slots in that
  16463. bundle.
  16464. * Menu:
  16465. * TILEPro Opcodes:: Opcode Naming Conventions.
  16466. * TILEPro Registers:: Register Naming.
  16467. * TILEPro Modifiers:: Symbolic Operand Modifiers.
  16468. 
  16469. File: as.info, Node: TILEPro Opcodes, Next: TILEPro Registers, Up: TILEPro Syntax
  16470. 9.47.2.1 Opcode Names
  16471. .....................
  16472. For a complete list of opcodes and descriptions of their semantics, see
  16473. 'TILE Processor User Architecture Manual', available upon request at
  16474. www.tilera.com.
  16475. 
  16476. File: as.info, Node: TILEPro Registers, Next: TILEPro Modifiers, Prev: TILEPro Opcodes, Up: TILEPro Syntax
  16477. 9.47.2.2 Register Names
  16478. .......................
  16479. General-purpose registers are represented by predefined symbols of the
  16480. form 'rN', where N represents a number between '0' and '63'. However,
  16481. the following registers have canonical names that must be used instead:
  16482. 'r54'
  16483. sp
  16484. 'r55'
  16485. lr
  16486. 'r56'
  16487. sn
  16488. 'r57'
  16489. idn0
  16490. 'r58'
  16491. idn1
  16492. 'r59'
  16493. udn0
  16494. 'r60'
  16495. udn1
  16496. 'r61'
  16497. udn2
  16498. 'r62'
  16499. udn3
  16500. 'r63'
  16501. zero
  16502. The assembler will emit a warning if a numeric name is used instead
  16503. of the canonical name. The '.no_require_canonical_reg_names' assembler
  16504. pseudo-op turns off this warning. '.require_canonical_reg_names' turns
  16505. it back on.
  16506. 
  16507. File: as.info, Node: TILEPro Modifiers, Prev: TILEPro Registers, Up: TILEPro Syntax
  16508. 9.47.2.3 Symbolic Operand Modifiers
  16509. ...................................
  16510. The assembler supports several modifiers when using symbol addresses in
  16511. TILEPro instruction operands. The general syntax is the following:
  16512. modifier(symbol)
  16513. The following modifiers are supported:
  16514. 'lo16'
  16515. This modifier is used to load the low 16 bits of the symbol's
  16516. address, sign-extended to a 32-bit value (sign-extension allows it
  16517. to be range-checked against signed 16 bit immediate operands
  16518. without complaint).
  16519. 'hi16'
  16520. This modifier is used to load the high 16 bits of the symbol's
  16521. address, also sign-extended to a 32-bit value.
  16522. 'ha16'
  16523. 'ha16(N)' is identical to 'hi16(N)', except if 'lo16(N)' is
  16524. negative it adds one to the 'hi16(N)' value. This way 'lo16' and
  16525. 'ha16' can be added to create any 32-bit value using 'auli'. For
  16526. example, here is how you move an arbitrary 32-bit address into r3:
  16527. moveli r3, lo16(sym)
  16528. auli r3, r3, ha16(sym)
  16529. 'got'
  16530. This modifier is used to load the offset of the GOT entry
  16531. corresponding to the symbol.
  16532. 'got_lo16'
  16533. This modifier is used to load the sign-extended low 16 bits of the
  16534. offset of the GOT entry corresponding to the symbol.
  16535. 'got_hi16'
  16536. This modifier is used to load the sign-extended high 16 bits of the
  16537. offset of the GOT entry corresponding to the symbol.
  16538. 'got_ha16'
  16539. This modifier is like 'got_hi16', but it adds one if 'got_lo16' of
  16540. the input value is negative.
  16541. 'plt'
  16542. This modifier is used for function symbols. It causes a _procedure
  16543. linkage table_, an array of code stubs, to be created at the time
  16544. the shared object is created or linked against, together with a
  16545. global offset table entry. The value is a pc-relative offset to
  16546. the corresponding stub code in the procedure linkage table. This
  16547. arrangement causes the run-time symbol resolver to be called to
  16548. look up and set the value of the symbol the first time the function
  16549. is called (at latest; depending environment variables). It is only
  16550. safe to leave the symbol unresolved this way if all references are
  16551. function calls.
  16552. 'tls_gd'
  16553. This modifier is used to load the offset of the GOT entry of the
  16554. symbol's TLS descriptor, to be used for general-dynamic TLS
  16555. accesses.
  16556. 'tls_gd_lo16'
  16557. This modifier is used to load the sign-extended low 16 bits of the
  16558. offset of the GOT entry of the symbol's TLS descriptor, to be used
  16559. for general dynamic TLS accesses.
  16560. 'tls_gd_hi16'
  16561. This modifier is used to load the sign-extended high 16 bits of the
  16562. offset of the GOT entry of the symbol's TLS descriptor, to be used
  16563. for general dynamic TLS accesses.
  16564. 'tls_gd_ha16'
  16565. This modifier is like 'tls_gd_hi16', but it adds one to the value
  16566. if 'tls_gd_lo16' of the input value is negative.
  16567. 'tls_ie'
  16568. This modifier is used to load the offset of the GOT entry
  16569. containing the offset of the symbol's address from the TCB, to be
  16570. used for initial-exec TLS accesses.
  16571. 'tls_ie_lo16'
  16572. This modifier is used to load the low 16 bits of the offset of the
  16573. GOT entry containing the offset of the symbol's address from the
  16574. TCB, to be used for initial-exec TLS accesses.
  16575. 'tls_ie_hi16'
  16576. This modifier is used to load the high 16 bits of the offset of the
  16577. GOT entry containing the offset of the symbol's address from the
  16578. TCB, to be used for initial-exec TLS accesses.
  16579. 'tls_ie_ha16'
  16580. This modifier is like 'tls_ie_hi16', but it adds one to the value
  16581. if 'tls_ie_lo16' of the input value is negative.
  16582. 'tls_le'
  16583. This modifier is used to load the offset of the symbol's address
  16584. from the TCB, to be used for local-exec TLS accesses.
  16585. 'tls_le_lo16'
  16586. This modifier is used to load the low 16 bits of the offset of the
  16587. symbol's address from the TCB, to be used for local-exec TLS
  16588. accesses.
  16589. 'tls_le_hi16'
  16590. This modifier is used to load the high 16 bits of the offset of the
  16591. symbol's address from the TCB, to be used for local-exec TLS
  16592. accesses.
  16593. 'tls_le_ha16'
  16594. This modifier is like 'tls_le_hi16', but it adds one to the value
  16595. if 'tls_le_lo16' of the input value is negative.
  16596. 'tls_gd_call'
  16597. This modifier is used to tag an instruction as the "call" part of a
  16598. calling sequence for a TLS GD reference of its operand.
  16599. 'tls_gd_add'
  16600. This modifier is used to tag an instruction as the "add" part of a
  16601. calling sequence for a TLS GD reference of its operand.
  16602. 'tls_ie_load'
  16603. This modifier is used to tag an instruction as the "load" part of a
  16604. calling sequence for a TLS IE reference of its operand.
  16605. 
  16606. File: as.info, Node: TILEPro Directives, Prev: TILEPro Syntax, Up: TILEPro-Dependent
  16607. 9.47.3 TILEPro Directives
  16608. -------------------------
  16609. '.align EXPRESSION [, EXPRESSION]'
  16610. This is the generic .ALIGN directive. The first argument is the
  16611. requested alignment in bytes.
  16612. '.allow_suspicious_bundles'
  16613. Turns on error checking for combinations of instructions in a
  16614. bundle that probably indicate a programming error. This is on by
  16615. default.
  16616. '.no_allow_suspicious_bundles'
  16617. Turns off error checking for combinations of instructions in a
  16618. bundle that probably indicate a programming error.
  16619. '.require_canonical_reg_names'
  16620. Require that canonical register names be used, and emit a warning
  16621. if the numeric names are used. This is on by default.
  16622. '.no_require_canonical_reg_names'
  16623. Permit the use of numeric names for registers that have canonical
  16624. names.
  16625. 
  16626. File: as.info, Node: V850-Dependent, Next: Vax-Dependent, Prev: TILEPro-Dependent, Up: Machine Dependencies
  16627. 9.48 v850 Dependent Features
  16628. ============================
  16629. * Menu:
  16630. * V850 Options:: Options
  16631. * V850 Syntax:: Syntax
  16632. * V850 Floating Point:: Floating Point
  16633. * V850 Directives:: V850 Machine Directives
  16634. * V850 Opcodes:: Opcodes
  16635. 
  16636. File: as.info, Node: V850 Options, Next: V850 Syntax, Up: V850-Dependent
  16637. 9.48.1 Options
  16638. --------------
  16639. 'as' supports the following additional command-line options for the V850
  16640. processor family:
  16641. '-wsigned_overflow'
  16642. Causes warnings to be produced when signed immediate values
  16643. overflow the space available for then within their opcodes. By
  16644. default this option is disabled as it is possible to receive
  16645. spurious warnings due to using exact bit patterns as immediate
  16646. constants.
  16647. '-wunsigned_overflow'
  16648. Causes warnings to be produced when unsigned immediate values
  16649. overflow the space available for then within their opcodes. By
  16650. default this option is disabled as it is possible to receive
  16651. spurious warnings due to using exact bit patterns as immediate
  16652. constants.
  16653. '-mv850'
  16654. Specifies that the assembled code should be marked as being
  16655. targeted at the V850 processor. This allows the linker to detect
  16656. attempts to link such code with code assembled for other
  16657. processors.
  16658. '-mv850e'
  16659. Specifies that the assembled code should be marked as being
  16660. targeted at the V850E processor. This allows the linker to detect
  16661. attempts to link such code with code assembled for other
  16662. processors.
  16663. '-mv850e1'
  16664. Specifies that the assembled code should be marked as being
  16665. targeted at the V850E1 processor. This allows the linker to detect
  16666. attempts to link such code with code assembled for other
  16667. processors.
  16668. '-mv850any'
  16669. Specifies that the assembled code should be marked as being
  16670. targeted at the V850 processor but support instructions that are
  16671. specific to the extended variants of the process. This allows the
  16672. production of binaries that contain target specific code, but which
  16673. are also intended to be used in a generic fashion. For example
  16674. libgcc.a contains generic routines used by the code produced by GCC
  16675. for all versions of the v850 architecture, together with support
  16676. routines only used by the V850E architecture.
  16677. '-mv850e2'
  16678. Specifies that the assembled code should be marked as being
  16679. targeted at the V850E2 processor. This allows the linker to detect
  16680. attempts to link such code with code assembled for other
  16681. processors.
  16682. '-mv850e2v3'
  16683. Specifies that the assembled code should be marked as being
  16684. targeted at the V850E2V3 processor. This allows the linker to
  16685. detect attempts to link such code with code assembled for other
  16686. processors.
  16687. '-mv850e2v4'
  16688. This is an alias for '-mv850e3v5'.
  16689. '-mv850e3v5'
  16690. Specifies that the assembled code should be marked as being
  16691. targeted at the V850E3V5 processor. This allows the linker to
  16692. detect attempts to link such code with code assembled for other
  16693. processors.
  16694. '-mrelax'
  16695. Enables relaxation. This allows the .longcall and .longjump pseudo
  16696. ops to be used in the assembler source code. These ops label
  16697. sections of code which are either a long function call or a long
  16698. branch. The assembler will then flag these sections of code and
  16699. the linker will attempt to relax them.
  16700. '-mgcc-abi'
  16701. Marks the generated object file as supporting the old GCC ABI.
  16702. '-mrh850-abi'
  16703. Marks the generated object file as supporting the RH850 ABI. This
  16704. is the default.
  16705. '-m8byte-align'
  16706. Marks the generated object file as supporting a maximum 64-bits of
  16707. alignment for variables defined in the source code.
  16708. '-m4byte-align'
  16709. Marks the generated object file as supporting a maximum 32-bits of
  16710. alignment for variables defined in the source code. This is the
  16711. default.
  16712. '-msoft-float'
  16713. Marks the generated object file as not using any floating point
  16714. instructions - and hence can be linked with other V850 binaries
  16715. that do or do not use floating point. This is the default for
  16716. binaries for architectures earlier than the 'e2v3'.
  16717. '-mhard-float'
  16718. Marks the generated object file as one that uses floating point
  16719. instructions - and hence can only be linked with other V850
  16720. binaries that use the same kind of floating point instructions, or
  16721. with binaries that do not use floating point at all. This is the
  16722. default for binaries the 'e2v3' and later architectures.
  16723. 
  16724. File: as.info, Node: V850 Syntax, Next: V850 Floating Point, Prev: V850 Options, Up: V850-Dependent
  16725. 9.48.2 Syntax
  16726. -------------
  16727. * Menu:
  16728. * V850-Chars:: Special Characters
  16729. * V850-Regs:: Register Names
  16730. 
  16731. File: as.info, Node: V850-Chars, Next: V850-Regs, Up: V850 Syntax
  16732. 9.48.2.1 Special Characters
  16733. ...........................
  16734. '#' is the line comment character. If a '#' appears as the first
  16735. character of a line, the whole line is treated as a comment, but in this
  16736. case the line can also be a logical line number directive (*note
  16737. Comments::) or a preprocessor control command (*note Preprocessing::).
  16738. Two dashes ('--') can also be used to start a line comment.
  16739. The ';' character can be used to separate statements on the same
  16740. line.
  16741. 
  16742. File: as.info, Node: V850-Regs, Prev: V850-Chars, Up: V850 Syntax
  16743. 9.48.2.2 Register Names
  16744. .......................
  16745. 'as' supports the following names for registers:
  16746. 'general register 0'
  16747. r0, zero
  16748. 'general register 1'
  16749. r1
  16750. 'general register 2'
  16751. r2, hp
  16752. 'general register 3'
  16753. r3, sp
  16754. 'general register 4'
  16755. r4, gp
  16756. 'general register 5'
  16757. r5, tp
  16758. 'general register 6'
  16759. r6
  16760. 'general register 7'
  16761. r7
  16762. 'general register 8'
  16763. r8
  16764. 'general register 9'
  16765. r9
  16766. 'general register 10'
  16767. r10
  16768. 'general register 11'
  16769. r11
  16770. 'general register 12'
  16771. r12
  16772. 'general register 13'
  16773. r13
  16774. 'general register 14'
  16775. r14
  16776. 'general register 15'
  16777. r15
  16778. 'general register 16'
  16779. r16
  16780. 'general register 17'
  16781. r17
  16782. 'general register 18'
  16783. r18
  16784. 'general register 19'
  16785. r19
  16786. 'general register 20'
  16787. r20
  16788. 'general register 21'
  16789. r21
  16790. 'general register 22'
  16791. r22
  16792. 'general register 23'
  16793. r23
  16794. 'general register 24'
  16795. r24
  16796. 'general register 25'
  16797. r25
  16798. 'general register 26'
  16799. r26
  16800. 'general register 27'
  16801. r27
  16802. 'general register 28'
  16803. r28
  16804. 'general register 29'
  16805. r29
  16806. 'general register 30'
  16807. r30, ep
  16808. 'general register 31'
  16809. r31, lp
  16810. 'system register 0'
  16811. eipc
  16812. 'system register 1'
  16813. eipsw
  16814. 'system register 2'
  16815. fepc
  16816. 'system register 3'
  16817. fepsw
  16818. 'system register 4'
  16819. ecr
  16820. 'system register 5'
  16821. psw
  16822. 'system register 16'
  16823. ctpc
  16824. 'system register 17'
  16825. ctpsw
  16826. 'system register 18'
  16827. dbpc
  16828. 'system register 19'
  16829. dbpsw
  16830. 'system register 20'
  16831. ctbp
  16832. 
  16833. File: as.info, Node: V850 Floating Point, Next: V850 Directives, Prev: V850 Syntax, Up: V850-Dependent
  16834. 9.48.3 Floating Point
  16835. ---------------------
  16836. The V850 family uses IEEE floating-point numbers.
  16837. 
  16838. File: as.info, Node: V850 Directives, Next: V850 Opcodes, Prev: V850 Floating Point, Up: V850-Dependent
  16839. 9.48.4 V850 Machine Directives
  16840. ------------------------------
  16841. '.offset <EXPRESSION>'
  16842. Moves the offset into the current section to the specified amount.
  16843. '.section "name", <type>'
  16844. This is an extension to the standard .section directive. It sets
  16845. the current section to be <type> and creates an alias for this
  16846. section called "name".
  16847. '.v850'
  16848. Specifies that the assembled code should be marked as being
  16849. targeted at the V850 processor. This allows the linker to detect
  16850. attempts to link such code with code assembled for other
  16851. processors.
  16852. '.v850e'
  16853. Specifies that the assembled code should be marked as being
  16854. targeted at the V850E processor. This allows the linker to detect
  16855. attempts to link such code with code assembled for other
  16856. processors.
  16857. '.v850e1'
  16858. Specifies that the assembled code should be marked as being
  16859. targeted at the V850E1 processor. This allows the linker to detect
  16860. attempts to link such code with code assembled for other
  16861. processors.
  16862. '.v850e2'
  16863. Specifies that the assembled code should be marked as being
  16864. targeted at the V850E2 processor. This allows the linker to detect
  16865. attempts to link such code with code assembled for other
  16866. processors.
  16867. '.v850e2v3'
  16868. Specifies that the assembled code should be marked as being
  16869. targeted at the V850E2V3 processor. This allows the linker to
  16870. detect attempts to link such code with code assembled for other
  16871. processors.
  16872. '.v850e2v4'
  16873. Specifies that the assembled code should be marked as being
  16874. targeted at the V850E3V5 processor. This allows the linker to
  16875. detect attempts to link such code with code assembled for other
  16876. processors.
  16877. '.v850e3v5'
  16878. Specifies that the assembled code should be marked as being
  16879. targeted at the V850E3V5 processor. This allows the linker to
  16880. detect attempts to link such code with code assembled for other
  16881. processors.
  16882. 
  16883. File: as.info, Node: V850 Opcodes, Prev: V850 Directives, Up: V850-Dependent
  16884. 9.48.5 Opcodes
  16885. --------------
  16886. 'as' implements all the standard V850 opcodes.
  16887. 'as' also implements the following pseudo ops:
  16888. 'hi0()'
  16889. Computes the higher 16 bits of the given expression and stores it
  16890. into the immediate operand field of the given instruction. For
  16891. example:
  16892. 'mulhi hi0(here - there), r5, r6'
  16893. computes the difference between the address of labels 'here' and
  16894. 'there', takes the upper 16 bits of this difference, shifts it down
  16895. 16 bits and then multiplies it by the lower 16 bits in register 5,
  16896. putting the result into register 6.
  16897. 'lo()'
  16898. Computes the lower 16 bits of the given expression and stores it
  16899. into the immediate operand field of the given instruction. For
  16900. example:
  16901. 'addi lo(here - there), r5, r6'
  16902. computes the difference between the address of labels 'here' and
  16903. 'there', takes the lower 16 bits of this difference and adds it to
  16904. register 5, putting the result into register 6.
  16905. 'hi()'
  16906. Computes the higher 16 bits of the given expression and then adds
  16907. the value of the most significant bit of the lower 16 bits of the
  16908. expression and stores the result into the immediate operand field
  16909. of the given instruction. For example the following code can be
  16910. used to compute the address of the label 'here' and store it into
  16911. register 6:
  16912. 'movhi hi(here), r0, r6' 'movea lo(here), r6, r6'
  16913. The reason for this special behaviour is that movea performs a sign
  16914. extension on its immediate operand. So for example if the address
  16915. of 'here' was 0xFFFFFFFF then without the special behaviour of the
  16916. hi() pseudo-op the movhi instruction would put 0xFFFF0000 into r6,
  16917. then the movea instruction would takes its immediate operand,
  16918. 0xFFFF, sign extend it to 32 bits, 0xFFFFFFFF, and then add it into
  16919. r6 giving 0xFFFEFFFF which is wrong (the fifth nibble is E). With
  16920. the hi() pseudo op adding in the top bit of the lo() pseudo op, the
  16921. movhi instruction actually stores 0 into r6 (0xFFFF + 1 = 0x0000),
  16922. so that the movea instruction stores 0xFFFFFFFF into r6 - the right
  16923. value.
  16924. 'hilo()'
  16925. Computes the 32 bit value of the given expression and stores it
  16926. into the immediate operand field of the given instruction (which
  16927. must be a mov instruction). For example:
  16928. 'mov hilo(here), r6'
  16929. computes the absolute address of label 'here' and puts the result
  16930. into register 6.
  16931. 'sdaoff()'
  16932. Computes the offset of the named variable from the start of the
  16933. Small Data Area (whose address is held in register 4, the GP
  16934. register) and stores the result as a 16 bit signed value in the
  16935. immediate operand field of the given instruction. For example:
  16936. 'ld.w sdaoff(_a_variable)[gp],r6'
  16937. loads the contents of the location pointed to by the label
  16938. '_a_variable' into register 6, provided that the label is located
  16939. somewhere within +/- 32K of the address held in the GP register.
  16940. [Note the linker assumes that the GP register contains a fixed
  16941. address set to the address of the label called '__gp'. This can
  16942. either be set up automatically by the linker, or specifically set
  16943. by using the '--defsym __gp=<value>' command-line option].
  16944. 'tdaoff()'
  16945. Computes the offset of the named variable from the start of the
  16946. Tiny Data Area (whose address is held in register 30, the EP
  16947. register) and stores the result as a 4,5, 7 or 8 bit unsigned value
  16948. in the immediate operand field of the given instruction. For
  16949. example:
  16950. 'sld.w tdaoff(_a_variable)[ep],r6'
  16951. loads the contents of the location pointed to by the label
  16952. '_a_variable' into register 6, provided that the label is located
  16953. somewhere within +256 bytes of the address held in the EP register.
  16954. [Note the linker assumes that the EP register contains a fixed
  16955. address set to the address of the label called '__ep'. This can
  16956. either be set up automatically by the linker, or specifically set
  16957. by using the '--defsym __ep=<value>' command-line option].
  16958. 'zdaoff()'
  16959. Computes the offset of the named variable from address 0 and stores
  16960. the result as a 16 bit signed value in the immediate operand field
  16961. of the given instruction. For example:
  16962. 'movea zdaoff(_a_variable),zero,r6'
  16963. puts the address of the label '_a_variable' into register 6,
  16964. assuming that the label is somewhere within the first 32K of
  16965. memory. (Strictly speaking it also possible to access the last 32K
  16966. of memory as well, as the offsets are signed).
  16967. 'ctoff()'
  16968. Computes the offset of the named variable from the start of the
  16969. Call Table Area (whose address is held in system register 20, the
  16970. CTBP register) and stores the result a 6 or 16 bit unsigned value
  16971. in the immediate field of then given instruction or piece of data.
  16972. For example:
  16973. 'callt ctoff(table_func1)'
  16974. will put the call the function whose address is held in the call
  16975. table at the location labeled 'table_func1'.
  16976. '.longcall name'
  16977. Indicates that the following sequence of instructions is a long
  16978. call to function 'name'. The linker will attempt to shorten this
  16979. call sequence if 'name' is within a 22bit offset of the call. Only
  16980. valid if the '-mrelax' command-line switch has been enabled.
  16981. '.longjump name'
  16982. Indicates that the following sequence of instructions is a long
  16983. jump to label 'name'. The linker will attempt to shorten this code
  16984. sequence if 'name' is within a 22bit offset of the jump. Only
  16985. valid if the '-mrelax' command-line switch has been enabled.
  16986. For information on the V850 instruction set, see 'V850 Family
  16987. 32-/16-Bit single-Chip Microcontroller Architecture Manual' from NEC.
  16988. Ltd.
  16989. 
  16990. File: as.info, Node: Vax-Dependent, Next: Visium-Dependent, Prev: V850-Dependent, Up: Machine Dependencies
  16991. 9.49 VAX Dependent Features
  16992. ===========================
  16993. * Menu:
  16994. * VAX-Opts:: VAX Command-Line Options
  16995. * VAX-float:: VAX Floating Point
  16996. * VAX-directives:: Vax Machine Directives
  16997. * VAX-opcodes:: VAX Opcodes
  16998. * VAX-branch:: VAX Branch Improvement
  16999. * VAX-operands:: VAX Operands
  17000. * VAX-no:: Not Supported on VAX
  17001. * VAX-Syntax:: VAX Syntax
  17002. 
  17003. File: as.info, Node: VAX-Opts, Next: VAX-float, Up: Vax-Dependent
  17004. 9.49.1 VAX Command-Line Options
  17005. -------------------------------
  17006. The Vax version of 'as' accepts any of the following options, gives a
  17007. warning message that the option was ignored and proceeds. These options
  17008. are for compatibility with scripts designed for other people's
  17009. assemblers.
  17010. '-D (Debug)'
  17011. '-S (Symbol Table)'
  17012. '-T (Token Trace)'
  17013. These are obsolete options used to debug old assemblers.
  17014. '-d (Displacement size for JUMPs)'
  17015. This option expects a number following the '-d'. Like options that
  17016. expect filenames, the number may immediately follow the '-d' (old
  17017. standard) or constitute the whole of the command-line argument that
  17018. follows '-d' (GNU standard).
  17019. '-V (Virtualize Interpass Temporary File)'
  17020. Some other assemblers use a temporary file. This option commanded
  17021. them to keep the information in active memory rather than in a disk
  17022. file. 'as' always does this, so this option is redundant.
  17023. '-J (JUMPify Longer Branches)'
  17024. Many 32-bit computers permit a variety of branch instructions to do
  17025. the same job. Some of these instructions are short (and fast) but
  17026. have a limited range; others are long (and slow) but can branch
  17027. anywhere in virtual memory. Often there are 3 flavors of branch:
  17028. short, medium and long. Some other assemblers would emit short and
  17029. medium branches, unless told by this option to emit short and long
  17030. branches.
  17031. '-t (Temporary File Directory)'
  17032. Some other assemblers may use a temporary file, and this option
  17033. takes a filename being the directory to site the temporary file.
  17034. Since 'as' does not use a temporary disk file, this option makes no
  17035. difference. '-t' needs exactly one filename.
  17036. The Vax version of the assembler accepts additional options when
  17037. compiled for VMS:
  17038. '-h N'
  17039. External symbol or section (used for global variables) names are
  17040. not case sensitive on VAX/VMS and always mapped to upper case.
  17041. This is contrary to the C language definition which explicitly
  17042. distinguishes upper and lower case. To implement a standard
  17043. conforming C compiler, names must be changed (mapped) to preserve
  17044. the case information. The default mapping is to convert all lower
  17045. case characters to uppercase and adding an underscore followed by a
  17046. 6 digit hex value, representing a 24 digit binary value. The one
  17047. digits in the binary value represent which characters are uppercase
  17048. in the original symbol name.
  17049. The '-h N' option determines how we map names. This takes several
  17050. values. No '-h' switch at all allows case hacking as described
  17051. above. A value of zero ('-h0') implies names should be upper case,
  17052. and inhibits the case hack. A value of 2 ('-h2') implies names
  17053. should be all lower case, with no case hack. A value of 3 ('-h3')
  17054. implies that case should be preserved. The value 1 is unused. The
  17055. '-H' option directs 'as' to display every mapped symbol during
  17056. assembly.
  17057. Symbols whose names include a dollar sign '$' are exceptions to the
  17058. general name mapping. These symbols are normally only used to
  17059. reference VMS library names. Such symbols are always mapped to
  17060. upper case.
  17061. '-+'
  17062. The '-+' option causes 'as' to truncate any symbol name larger than
  17063. 31 characters. The '-+' option also prevents some code following
  17064. the '_main' symbol normally added to make the object file
  17065. compatible with Vax-11 "C".
  17066. '-1'
  17067. This option is ignored for backward compatibility with 'as' version
  17068. 1.x.
  17069. '-H'
  17070. The '-H' option causes 'as' to print every symbol which was changed
  17071. by case mapping.
  17072. 
  17073. File: as.info, Node: VAX-float, Next: VAX-directives, Prev: VAX-Opts, Up: Vax-Dependent
  17074. 9.49.2 VAX Floating Point
  17075. -------------------------
  17076. Conversion of flonums to floating point is correct, and compatible with
  17077. previous assemblers. Rounding is towards zero if the remainder is
  17078. exactly half the least significant bit.
  17079. 'D', 'F', 'G' and 'H' floating point formats are understood.
  17080. Immediate floating literals (_e.g._ 'S`$6.9') are rendered
  17081. correctly. Again, rounding is towards zero in the boundary case.
  17082. The '.float' directive produces 'f' format numbers. The '.double'
  17083. directive produces 'd' format numbers.
  17084. 
  17085. File: as.info, Node: VAX-directives, Next: VAX-opcodes, Prev: VAX-float, Up: Vax-Dependent
  17086. 9.49.3 Vax Machine Directives
  17087. -----------------------------
  17088. The Vax version of the assembler supports four directives for generating
  17089. Vax floating point constants. They are described in the table below.
  17090. '.dfloat'
  17091. This expects zero or more flonums, separated by commas, and
  17092. assembles Vax 'd' format 64-bit floating point constants.
  17093. '.ffloat'
  17094. This expects zero or more flonums, separated by commas, and
  17095. assembles Vax 'f' format 32-bit floating point constants.
  17096. '.gfloat'
  17097. This expects zero or more flonums, separated by commas, and
  17098. assembles Vax 'g' format 64-bit floating point constants.
  17099. '.hfloat'
  17100. This expects zero or more flonums, separated by commas, and
  17101. assembles Vax 'h' format 128-bit floating point constants.
  17102. 
  17103. File: as.info, Node: VAX-opcodes, Next: VAX-branch, Prev: VAX-directives, Up: Vax-Dependent
  17104. 9.49.4 VAX Opcodes
  17105. ------------------
  17106. All DEC mnemonics are supported. Beware that 'case...' instructions
  17107. have exactly 3 operands. The dispatch table that follows the 'case...'
  17108. instruction should be made with '.word' statements. This is compatible
  17109. with all unix assemblers we know of.
  17110. 
  17111. File: as.info, Node: VAX-branch, Next: VAX-operands, Prev: VAX-opcodes, Up: Vax-Dependent
  17112. 9.49.5 VAX Branch Improvement
  17113. -----------------------------
  17114. Certain pseudo opcodes are permitted. They are for branch instructions.
  17115. They expand to the shortest branch instruction that reaches the target.
  17116. Generally these mnemonics are made by substituting 'j' for 'b' at the
  17117. start of a DEC mnemonic. This feature is included both for
  17118. compatibility and to help compilers. If you do not need this feature,
  17119. avoid these opcodes. Here are the mnemonics, and the code they can
  17120. expand into.
  17121. 'jbsb'
  17122. 'Jsb' is already an instruction mnemonic, so we chose 'jbsb'.
  17123. (byte displacement)
  17124. 'bsbb ...'
  17125. (word displacement)
  17126. 'bsbw ...'
  17127. (long displacement)
  17128. 'jsb ...'
  17129. 'jbr'
  17130. 'jr'
  17131. Unconditional branch.
  17132. (byte displacement)
  17133. 'brb ...'
  17134. (word displacement)
  17135. 'brw ...'
  17136. (long displacement)
  17137. 'jmp ...'
  17138. 'jCOND'
  17139. COND may be any one of the conditional branches 'neq', 'nequ',
  17140. 'eql', 'eqlu', 'gtr', 'geq', 'lss', 'gtru', 'lequ', 'vc', 'vs',
  17141. 'gequ', 'cc', 'lssu', 'cs'. COND may also be one of the bit tests
  17142. 'bs', 'bc', 'bss', 'bcs', 'bsc', 'bcc', 'bssi', 'bcci', 'lbs',
  17143. 'lbc'. NOTCOND is the opposite condition to COND.
  17144. (byte displacement)
  17145. 'bCOND ...'
  17146. (word displacement)
  17147. 'bNOTCOND foo ; brw ... ; foo:'
  17148. (long displacement)
  17149. 'bNOTCOND foo ; jmp ... ; foo:'
  17150. 'jacbX'
  17151. X may be one of 'b d f g h l w'.
  17152. (word displacement)
  17153. 'OPCODE ...'
  17154. (long displacement)
  17155. OPCODE ..., foo ;
  17156. brb bar ;
  17157. foo: jmp ... ;
  17158. bar:
  17159. 'jaobYYY'
  17160. YYY may be one of 'lss leq'.
  17161. 'jsobZZZ'
  17162. ZZZ may be one of 'geq gtr'.
  17163. (byte displacement)
  17164. 'OPCODE ...'
  17165. (word displacement)
  17166. OPCODE ..., foo ;
  17167. brb bar ;
  17168. foo: brw DESTINATION ;
  17169. bar:
  17170. (long displacement)
  17171. OPCODE ..., foo ;
  17172. brb bar ;
  17173. foo: jmp DESTINATION ;
  17174. bar:
  17175. 'aobleq'
  17176. 'aoblss'
  17177. 'sobgeq'
  17178. 'sobgtr'
  17179. (byte displacement)
  17180. 'OPCODE ...'
  17181. (word displacement)
  17182. OPCODE ..., foo ;
  17183. brb bar ;
  17184. foo: brw DESTINATION ;
  17185. bar:
  17186. (long displacement)
  17187. OPCODE ..., foo ;
  17188. brb bar ;
  17189. foo: jmp DESTINATION ;
  17190. bar:
  17191. 
  17192. File: as.info, Node: VAX-operands, Next: VAX-no, Prev: VAX-branch, Up: Vax-Dependent
  17193. 9.49.6 VAX Operands
  17194. -------------------
  17195. The immediate character is '$' for Unix compatibility, not '#' as DEC
  17196. writes it.
  17197. The indirect character is '*' for Unix compatibility, not '@' as DEC
  17198. writes it.
  17199. The displacement sizing character is '`' (an accent grave) for Unix
  17200. compatibility, not '^' as DEC writes it. The letter preceding '`' may
  17201. have either case. 'G' is not understood, but all other letters ('b i l
  17202. s w') are understood.
  17203. Register names understood are 'r0 r1 r2 ... r15 ap fp sp pc'. Upper
  17204. and lower case letters are equivalent.
  17205. For instance
  17206. tstb *w`$4(r5)
  17207. Any expression is permitted in an operand. Operands are comma
  17208. separated.
  17209. 
  17210. File: as.info, Node: VAX-no, Next: VAX-Syntax, Prev: VAX-operands, Up: Vax-Dependent
  17211. 9.49.7 Not Supported on VAX
  17212. ---------------------------
  17213. Vax bit fields can not be assembled with 'as'. Someone can add the
  17214. required code if they really need it.
  17215. 
  17216. File: as.info, Node: VAX-Syntax, Prev: VAX-no, Up: Vax-Dependent
  17217. 9.49.8 VAX Syntax
  17218. -----------------
  17219. * Menu:
  17220. * VAX-Chars:: Special Characters
  17221. 
  17222. File: as.info, Node: VAX-Chars, Up: VAX-Syntax
  17223. 9.49.8.1 Special Characters
  17224. ...........................
  17225. The presence of a '#' appearing anywhere on a line indicates the start
  17226. of a comment that extends to the end of that line.
  17227. If a '#' appears as the first character of a line then the whole line
  17228. is treated as a comment, but in this case the line can also be a logical
  17229. line number directive (*note Comments::) or a preprocessor control
  17230. command (*note Preprocessing::).
  17231. The ';' character can be used to separate statements on the same
  17232. line.
  17233. 
  17234. File: as.info, Node: Visium-Dependent, Next: WebAssembly-Dependent, Prev: Vax-Dependent, Up: Machine Dependencies
  17235. 9.50 Visium Dependent Features
  17236. ==============================
  17237. * Menu:
  17238. * Visium Options:: Options
  17239. * Visium Syntax:: Syntax
  17240. * Visium Opcodes:: Opcodes
  17241. 
  17242. File: as.info, Node: Visium Options, Next: Visium Syntax, Up: Visium-Dependent
  17243. 9.50.1 Options
  17244. --------------
  17245. The Visium assembler implements one machine-specific option:
  17246. '-mtune=ARCH'
  17247. This option specifies the target architecture. If an attempt is
  17248. made to assemble an instruction that will not execute on the target
  17249. architecture, the assembler will issue an error message.
  17250. The following names are recognized: 'mcm24' 'mcm' 'gr5' 'gr6'
  17251. 
  17252. File: as.info, Node: Visium Syntax, Next: Visium Opcodes, Prev: Visium Options, Up: Visium-Dependent
  17253. 9.50.2 Syntax
  17254. -------------
  17255. * Menu:
  17256. * Visium Characters:: Special Characters
  17257. * Visium Registers:: Register Names
  17258. 
  17259. File: as.info, Node: Visium Characters, Next: Visium Registers, Up: Visium Syntax
  17260. 9.50.2.1 Special Characters
  17261. ...........................
  17262. Line comments are introduced either by the '!' character or by the ';'
  17263. character appearing anywhere on a line.
  17264. A hash character ('#') as the first character on a line also marks
  17265. the start of a line comment, but in this case it could also be a logical
  17266. line number directive (*note Comments::) or a preprocessor control
  17267. command (*note Preprocessing::).
  17268. The Visium assembler does not currently support a line separator
  17269. character.
  17270. 
  17271. File: as.info, Node: Visium Registers, Prev: Visium Characters, Up: Visium Syntax
  17272. 9.50.2.2 Register Names
  17273. .......................
  17274. Registers can be specified either by using their canonical mnemonic
  17275. names or by using their alias if they have one, for example 'sp'.
  17276. 
  17277. File: as.info, Node: Visium Opcodes, Prev: Visium Syntax, Up: Visium-Dependent
  17278. 9.50.3 Opcodes
  17279. --------------
  17280. All the standard opcodes of the architecture are implemented, along with
  17281. the following three pseudo-instructions: 'cmp', 'cmpc', 'move'.
  17282. In addition, the following two illegal opcodes are implemented and
  17283. used by the simulation:
  17284. stop 5-bit immediate, SourceA
  17285. trace 5-bit immediate, SourceA
  17286. 
  17287. File: as.info, Node: WebAssembly-Dependent, Next: XGATE-Dependent, Prev: Visium-Dependent, Up: Machine Dependencies
  17288. 9.51 WebAssembly Dependent Features
  17289. ===================================
  17290. * Menu:
  17291. * WebAssembly-Notes:: Notes
  17292. * WebAssembly-Syntax:: Syntax
  17293. * WebAssembly-Floating-Point:: Floating Point
  17294. * WebAssembly-Opcodes:: Opcodes
  17295. * WebAssembly-module-layout:: Module Layout
  17296. 
  17297. File: as.info, Node: WebAssembly-Notes, Next: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17298. 9.51.1 Notes
  17299. ------------
  17300. While WebAssembly provides its own module format for executables, this
  17301. documentation describes how to use 'as' to produce intermediate ELF
  17302. object format files.
  17303. 
  17304. File: as.info, Node: WebAssembly-Syntax, Next: WebAssembly-Floating-Point, Prev: WebAssembly-Notes, Up: WebAssembly-Dependent
  17305. 9.51.2 Syntax
  17306. -------------
  17307. The assembler syntax directly encodes sequences of opcodes as defined in
  17308. the WebAssembly binary encoding specification at
  17309. https://github.com/webassembly/spec/BinaryEncoding.md. Structured
  17310. sexp-style expressions are not supported as input.
  17311. * Menu:
  17312. * WebAssembly-Chars:: Special Characters
  17313. * WebAssembly-Relocs:: Relocations
  17314. * WebAssembly-Signatures:: Signatures
  17315. 
  17316. File: as.info, Node: WebAssembly-Chars, Next: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17317. 9.51.2.1 Special Characters
  17318. ...........................
  17319. '#' and ';' are the line comment characters. Note that if '#' is the
  17320. first character on a line then it can also be a logical line number
  17321. directive (*note Comments::) or a preprocessor control command (*note
  17322. Preprocessing::).
  17323. 
  17324. File: as.info, Node: WebAssembly-Relocs, Next: WebAssembly-Signatures, Prev: WebAssembly-Chars, Up: WebAssembly-Syntax
  17325. 9.51.2.2 Relocations
  17326. ....................
  17327. Special relocations are available by using the '@PLT', '@GOT', or '@GOT'
  17328. suffixes after a constant expression, which correspond to the
  17329. R_ASMJS_LEB128_PLT, R_ASMJS_LEB128_GOT, and R_ASMJS_LEB128_GOT_CODE
  17330. relocations, respectively.
  17331. The '@PLT' suffix is followed by a symbol name in braces; the symbol
  17332. value is used to determine the function signature for which a PLT stub
  17333. is generated. Currently, the symbol _name_ is parsed from its last 'F'
  17334. character to determine the argument count of the function, which is also
  17335. necessary for generating a PLT stub.
  17336. 
  17337. File: as.info, Node: WebAssembly-Signatures, Prev: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17338. 9.51.2.3 Signatures
  17339. ...................
  17340. Function signatures are specified with the 'signature' pseudo-opcode,
  17341. followed by a simple function signature imitating a C++-mangled function
  17342. type: 'F' followed by an optional 'v', then a sequence of 'i', 'l', 'f',
  17343. and 'd' characters to mark i32, i64, f32, and f64 parameters,
  17344. respectively; followed by a final 'E' to mark the end of the function
  17345. signature.
  17346. 
  17347. File: as.info, Node: WebAssembly-Floating-Point, Next: WebAssembly-Opcodes, Prev: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17348. 9.51.3 Floating Point
  17349. ---------------------
  17350. WebAssembly uses little-endian IEEE floating-point numbers.
  17351. 
  17352. File: as.info, Node: WebAssembly-Opcodes, Next: WebAssembly-module-layout, Prev: WebAssembly-Floating-Point, Up: WebAssembly-Dependent
  17353. 9.51.4 Regular Opcodes
  17354. ----------------------
  17355. Ordinary instructions are encoded with the WebAssembly mnemonics as
  17356. listed at:
  17357. <https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md>.
  17358. Opcodes are written directly in the order in which they are encoded,
  17359. without going through an intermediate sexp-style expression as in the
  17360. 'was' format.
  17361. For "typed" opcodes (block, if, etc.), the type of the block is
  17362. specified in square brackets following the opcode: 'if[i]', 'if[]'.
  17363. 
  17364. File: as.info, Node: WebAssembly-module-layout, Prev: WebAssembly-Opcodes, Up: WebAssembly-Dependent
  17365. 9.51.5 WebAssembly Module Layout
  17366. --------------------------------
  17367. 'as' will only produce ELF output, not a valid WebAssembly module. It
  17368. is possible to make 'as' produce output in a single ELF section which
  17369. becomes a valid WebAssembly module, but a linker script to do so may be
  17370. preferrable, as it doesn't require running the entire module through the
  17371. assembler at once.
  17372. 
  17373. File: as.info, Node: XGATE-Dependent, Next: XSTORMY16-Dependent, Prev: WebAssembly-Dependent, Up: Machine Dependencies
  17374. 9.52 XGATE Dependent Features
  17375. =============================
  17376. * Menu:
  17377. * XGATE-Opts:: XGATE Options
  17378. * XGATE-Syntax:: Syntax
  17379. * XGATE-Directives:: Assembler Directives
  17380. * XGATE-Float:: Floating Point
  17381. * XGATE-opcodes:: Opcodes
  17382. 
  17383. File: as.info, Node: XGATE-Opts, Next: XGATE-Syntax, Up: XGATE-Dependent
  17384. 9.52.1 XGATE Options
  17385. --------------------
  17386. The Freescale XGATE version of 'as' has a few machine dependent options.
  17387. '-mshort'
  17388. This option controls the ABI and indicates to use a 16-bit integer
  17389. ABI. It has no effect on the assembled instructions. This is the
  17390. default.
  17391. '-mlong'
  17392. This option controls the ABI and indicates to use a 32-bit integer
  17393. ABI.
  17394. '-mshort-double'
  17395. This option controls the ABI and indicates to use a 32-bit float
  17396. ABI. This is the default.
  17397. '-mlong-double'
  17398. This option controls the ABI and indicates to use a 64-bit float
  17399. ABI.
  17400. '--print-insn-syntax'
  17401. You can use the '--print-insn-syntax' option to obtain the syntax
  17402. description of the instruction when an error is detected.
  17403. '--print-opcodes'
  17404. The '--print-opcodes' option prints the list of all the
  17405. instructions with their syntax. Once the list is printed 'as'
  17406. exits.
  17407. 
  17408. File: as.info, Node: XGATE-Syntax, Next: XGATE-Directives, Prev: XGATE-Opts, Up: XGATE-Dependent
  17409. 9.52.2 Syntax
  17410. -------------
  17411. In XGATE RISC syntax, the instruction name comes first and it may be
  17412. followed by up to three operands. Operands are separated by commas
  17413. (','). 'as' will complain if too many operands are specified for a
  17414. given instruction. The same will happen if you specified too few
  17415. operands.
  17416. nop
  17417. ldl #23
  17418. CMP R1, R2
  17419. The presence of a ';' character or a '!' character anywhere on a line
  17420. indicates the start of a comment that extends to the end of that line.
  17421. A '*' or a '#' character at the start of a line also introduces a
  17422. line comment, but these characters do not work elsewhere on the line.
  17423. If the first character of the line is a '#' then as well as starting a
  17424. comment, the line could also be logical line number directive (*note
  17425. Comments::) or a preprocessor control command (*note Preprocessing::).
  17426. The XGATE assembler does not currently support a line separator
  17427. character.
  17428. The following addressing modes are understood for XGATE:
  17429. "Inherent"
  17430. ''
  17431. "Immediate 3 Bit Wide"
  17432. '#NUMBER'
  17433. "Immediate 4 Bit Wide"
  17434. '#NUMBER'
  17435. "Immediate 8 Bit Wide"
  17436. '#NUMBER'
  17437. "Monadic Addressing"
  17438. 'REG'
  17439. "Dyadic Addressing"
  17440. 'REG, REG'
  17441. "Triadic Addressing"
  17442. 'REG, REG, REG'
  17443. "Relative Addressing 9 Bit Wide"
  17444. '*SYMBOL'
  17445. "Relative Addressing 10 Bit Wide"
  17446. '*SYMBOL'
  17447. "Index Register plus Immediate Offset"
  17448. 'REG, (REG, #NUMBER)'
  17449. "Index Register plus Register Offset"
  17450. 'REG, REG, REG'
  17451. "Index Register plus Register Offset with Post-increment"
  17452. 'REG, REG, REG+'
  17453. "Index Register plus Register Offset with Pre-decrement"
  17454. 'REG, REG, -REG'
  17455. The register can be either 'R0', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6'
  17456. or 'R7'.
  17457. Convene macro opcodes to deal with 16-bit values have been added.
  17458. "Immediate 16 Bit Wide"
  17459. '#NUMBER', or '*SYMBOL'
  17460. For example:
  17461. ldw R1, #1024
  17462. ldw R3, timer
  17463. ldw R1, (R1, #0)
  17464. COM R1
  17465. stw R2, (R1, #0)
  17466. 
  17467. File: as.info, Node: XGATE-Directives, Next: XGATE-Float, Prev: XGATE-Syntax, Up: XGATE-Dependent
  17468. 9.52.3 Assembler Directives
  17469. ---------------------------
  17470. The XGATE version of 'as' have the following specific assembler
  17471. directives:
  17472. 
  17473. File: as.info, Node: XGATE-Float, Next: XGATE-opcodes, Prev: XGATE-Directives, Up: XGATE-Dependent
  17474. 9.52.4 Floating Point
  17475. ---------------------
  17476. Packed decimal (P) format floating literals are not supported(yet).
  17477. The floating point formats generated by directives are these.
  17478. '.float'
  17479. 'Single' precision floating point constants.
  17480. '.double'
  17481. 'Double' precision floating point constants.
  17482. '.extend'
  17483. '.ldouble'
  17484. 'Extended' precision ('long double') floating point constants.
  17485. 
  17486. File: as.info, Node: XGATE-opcodes, Prev: XGATE-Float, Up: XGATE-Dependent
  17487. 9.52.5 Opcodes
  17488. --------------
  17489. 
  17490. File: as.info, Node: XSTORMY16-Dependent, Next: Xtensa-Dependent, Prev: XGATE-Dependent, Up: Machine Dependencies
  17491. 9.53 XStormy16 Dependent Features
  17492. =================================
  17493. * Menu:
  17494. * XStormy16 Syntax:: Syntax
  17495. * XStormy16 Directives:: Machine Directives
  17496. * XStormy16 Opcodes:: Pseudo-Opcodes
  17497. 
  17498. File: as.info, Node: XStormy16 Syntax, Next: XStormy16 Directives, Up: XSTORMY16-Dependent
  17499. 9.53.1 Syntax
  17500. -------------
  17501. * Menu:
  17502. * XStormy16-Chars:: Special Characters
  17503. 
  17504. File: as.info, Node: XStormy16-Chars, Up: XStormy16 Syntax
  17505. 9.53.1.1 Special Characters
  17506. ...........................
  17507. '#' is the line comment character. If a '#' appears as the first
  17508. character of a line, the whole line is treated as a comment, but in this
  17509. case the line can also be a logical line number directive (*note
  17510. Comments::) or a preprocessor control command (*note Preprocessing::).
  17511. A semicolon (';') can be used to start a comment that extends from
  17512. wherever the character appears on the line up to the end of the line.
  17513. The '|' character can be used to separate statements on the same
  17514. line.
  17515. 
  17516. File: as.info, Node: XStormy16 Directives, Next: XStormy16 Opcodes, Prev: XStormy16 Syntax, Up: XSTORMY16-Dependent
  17517. 9.53.2 XStormy16 Machine Directives
  17518. -----------------------------------
  17519. '.16bit_pointers'
  17520. Like the '--16bit-pointers' command-line option this directive
  17521. indicates that the assembly code makes use of 16-bit pointers.
  17522. '.32bit_pointers'
  17523. Like the '--32bit-pointers' command-line option this directive
  17524. indicates that the assembly code makes use of 32-bit pointers.
  17525. '.no_pointers'
  17526. Like the '--no-pointers' command-line option this directive
  17527. indicates that the assembly code does not makes use pointers.
  17528. 
  17529. File: as.info, Node: XStormy16 Opcodes, Prev: XStormy16 Directives, Up: XSTORMY16-Dependent
  17530. 9.53.3 XStormy16 Pseudo-Opcodes
  17531. -------------------------------
  17532. 'as' implements all the standard XStormy16 opcodes.
  17533. 'as' also implements the following pseudo ops:
  17534. '@lo()'
  17535. Computes the lower 16 bits of the given expression and stores it
  17536. into the immediate operand field of the given instruction. For
  17537. example:
  17538. 'add r6, @lo(here - there)'
  17539. computes the difference between the address of labels 'here' and
  17540. 'there', takes the lower 16 bits of this difference and adds it to
  17541. register 6.
  17542. '@hi()'
  17543. Computes the higher 16 bits of the given expression and stores it
  17544. into the immediate operand field of the given instruction. For
  17545. example:
  17546. 'addc r7, @hi(here - there)'
  17547. computes the difference between the address of labels 'here' and
  17548. 'there', takes the upper 16 bits of this difference, shifts it down
  17549. 16 bits and then adds it, along with the carry bit, to the value in
  17550. register 7.
  17551. 
  17552. File: as.info, Node: Xtensa-Dependent, Next: Z80-Dependent, Prev: XSTORMY16-Dependent, Up: Machine Dependencies
  17553. 9.54 Xtensa Dependent Features
  17554. ==============================
  17555. This chapter covers features of the GNU assembler that are specific to
  17556. the Xtensa architecture. For details about the Xtensa instruction set,
  17557. please consult the 'Xtensa Instruction Set Architecture (ISA) Reference
  17558. Manual'.
  17559. * Menu:
  17560. * Xtensa Options:: Command-line Options.
  17561. * Xtensa Syntax:: Assembler Syntax for Xtensa Processors.
  17562. * Xtensa Optimizations:: Assembler Optimizations.
  17563. * Xtensa Relaxation:: Other Automatic Transformations.
  17564. * Xtensa Directives:: Directives for Xtensa Processors.
  17565. 
  17566. File: as.info, Node: Xtensa Options, Next: Xtensa Syntax, Up: Xtensa-Dependent
  17567. 9.54.1 Command-line Options
  17568. ---------------------------
  17569. '--text-section-literals | --no-text-section-literals'
  17570. Control the treatment of literal pools. The default is
  17571. '--no-text-section-literals', which places literals in separate
  17572. sections in the output file. This allows the literal pool to be
  17573. placed in a data RAM/ROM. With '--text-section-literals', the
  17574. literals are interspersed in the text section in order to keep them
  17575. as close as possible to their references. This may be necessary
  17576. for large assembly files, where the literals would otherwise be out
  17577. of range of the 'L32R' instructions in the text section. Literals
  17578. are grouped into pools following '.literal_position' directives or
  17579. preceding 'ENTRY' instructions. These options only affect literals
  17580. referenced via PC-relative 'L32R' instructions; literals for
  17581. absolute mode 'L32R' instructions are handled separately. *Note
  17582. literal: Literal Directive.
  17583. '--auto-litpools | --no-auto-litpools'
  17584. Control the treatment of literal pools. The default is
  17585. '--no-auto-litpools', which in the absence of
  17586. '--text-section-literals' places literals in separate sections in
  17587. the output file. This allows the literal pool to be placed in a
  17588. data RAM/ROM. With '--auto-litpools', the literals are interspersed
  17589. in the text section in order to keep them as close as possible to
  17590. their references, explicit '.literal_position' directives are not
  17591. required. This may be necessary for very large functions, where
  17592. single literal pool at the beginning of the function may not be
  17593. reachable by 'L32R' instructions at the end. These options only
  17594. affect literals referenced via PC-relative 'L32R' instructions;
  17595. literals for absolute mode 'L32R' instructions are handled
  17596. separately. When used together with '--text-section-literals',
  17597. '--auto-litpools' takes precedence. *Note literal: Literal
  17598. Directive.
  17599. '--absolute-literals | --no-absolute-literals'
  17600. Indicate to the assembler whether 'L32R' instructions use absolute
  17601. or PC-relative addressing. If the processor includes the absolute
  17602. addressing option, the default is to use absolute 'L32R'
  17603. relocations. Otherwise, only the PC-relative 'L32R' relocations
  17604. can be used.
  17605. '--target-align | --no-target-align'
  17606. Enable or disable automatic alignment to reduce branch penalties at
  17607. some expense in code size. *Note Automatic Instruction Alignment:
  17608. Xtensa Automatic Alignment. This optimization is enabled by
  17609. default. Note that the assembler will always align instructions
  17610. like 'LOOP' that have fixed alignment requirements.
  17611. '--longcalls | --no-longcalls'
  17612. Enable or disable transformation of call instructions to allow
  17613. calls across a greater range of addresses. *Note Function Call
  17614. Relaxation: Xtensa Call Relaxation. This option should be used
  17615. when call targets can potentially be out of range. It may degrade
  17616. both code size and performance, but the linker can generally
  17617. optimize away the unnecessary overhead when a call ends up within
  17618. range. The default is '--no-longcalls'.
  17619. '--transform | --no-transform'
  17620. Enable or disable all assembler transformations of Xtensa
  17621. instructions, including both relaxation and optimization. The
  17622. default is '--transform'; '--no-transform' should only be used in
  17623. the rare cases when the instructions must be exactly as specified
  17624. in the assembly source. Using '--no-transform' causes out of range
  17625. instruction operands to be errors.
  17626. '--rename-section OLDNAME=NEWNAME'
  17627. Rename the OLDNAME section to NEWNAME. This option can be used
  17628. multiple times to rename multiple sections.
  17629. '--trampolines | --no-trampolines'
  17630. Enable or disable transformation of jump instructions to allow
  17631. jumps across a greater range of addresses. *Note Jump Trampolines:
  17632. Xtensa Jump Relaxation. This option should be used when jump
  17633. targets can potentially be out of range. In the absence of such
  17634. jumps this option does not affect code size or performance. The
  17635. default is '--trampolines'.
  17636. 
  17637. File: as.info, Node: Xtensa Syntax, Next: Xtensa Optimizations, Prev: Xtensa Options, Up: Xtensa-Dependent
  17638. 9.54.2 Assembler Syntax
  17639. -----------------------
  17640. Block comments are delimited by '/*' and '*/'. End of line comments may
  17641. be introduced with either '#' or '//'.
  17642. If a '#' appears as the first character of a line then the whole line
  17643. is treated as a comment, but in this case the line could also be a
  17644. logical line number directive (*note Comments::) or a preprocessor
  17645. control command (*note Preprocessing::).
  17646. Instructions consist of a leading opcode or macro name followed by
  17647. whitespace and an optional comma-separated list of operands:
  17648. OPCODE [OPERAND, ...]
  17649. Instructions must be separated by a newline or semicolon (';').
  17650. FLIX instructions, which bundle multiple opcodes together in a single
  17651. instruction, are specified by enclosing the bundled opcodes inside
  17652. braces:
  17653. {
  17654. [FORMAT]
  17655. OPCODE0 [OPERANDS]
  17656. OPCODE1 [OPERANDS]
  17657. OPCODE2 [OPERANDS]
  17658. ...
  17659. }
  17660. The opcodes in a FLIX instruction are listed in the same order as the
  17661. corresponding instruction slots in the TIE format declaration.
  17662. Directives and labels are not allowed inside the braces of a FLIX
  17663. instruction. A particular TIE format name can optionally be specified
  17664. immediately after the opening brace, but this is usually unnecessary.
  17665. The assembler will automatically search for a format that can encode the
  17666. specified opcodes, so the format name need only be specified in rare
  17667. cases where there is more than one applicable format and where it
  17668. matters which of those formats is used. A FLIX instruction can also be
  17669. specified on a single line by separating the opcodes with semicolons:
  17670. { [FORMAT;] OPCODE0 [OPERANDS]; OPCODE1 [OPERANDS]; OPCODE2 [OPERANDS]; ... }
  17671. If an opcode can only be encoded in a FLIX instruction but is not
  17672. specified as part of a FLIX bundle, the assembler will choose the
  17673. smallest format where the opcode can be encoded and will fill unused
  17674. instruction slots with no-ops.
  17675. * Menu:
  17676. * Xtensa Opcodes:: Opcode Naming Conventions.
  17677. * Xtensa Registers:: Register Naming.
  17678. 
  17679. File: as.info, Node: Xtensa Opcodes, Next: Xtensa Registers, Up: Xtensa Syntax
  17680. 9.54.2.1 Opcode Names
  17681. .....................
  17682. See the 'Xtensa Instruction Set Architecture (ISA) Reference Manual' for
  17683. a complete list of opcodes and descriptions of their semantics.
  17684. If an opcode name is prefixed with an underscore character ('_'),
  17685. 'as' will not transform that instruction in any way. The underscore
  17686. prefix disables both optimization (*note Xtensa Optimizations: Xtensa
  17687. Optimizations.) and relaxation (*note Xtensa Relaxation: Xtensa
  17688. Relaxation.) for that particular instruction. Only use the underscore
  17689. prefix when it is essential to select the exact opcode produced by the
  17690. assembler. Using this feature unnecessarily makes the code less
  17691. efficient by disabling assembler optimization and less flexible by
  17692. disabling relaxation.
  17693. Note that this special handling of underscore prefixes only applies
  17694. to Xtensa opcodes, not to either built-in macros or user-defined macros.
  17695. When an underscore prefix is used with a macro (e.g., '_MOV'), it refers
  17696. to a different macro. The assembler generally provides built-in macros
  17697. both with and without the underscore prefix, where the underscore
  17698. versions behave as if the underscore carries through to the instructions
  17699. in the macros. For example, '_MOV' may expand to '_MOV.N'.
  17700. The underscore prefix only applies to individual instructions, not to
  17701. series of instructions. For example, if a series of instructions have
  17702. underscore prefixes, the assembler will not transform the individual
  17703. instructions, but it may insert other instructions between them (e.g.,
  17704. to align a 'LOOP' instruction). To prevent the assembler from modifying
  17705. a series of instructions as a whole, use the 'no-transform' directive.
  17706. *Note transform: Transform Directive.
  17707. 
  17708. File: as.info, Node: Xtensa Registers, Prev: Xtensa Opcodes, Up: Xtensa Syntax
  17709. 9.54.2.2 Register Names
  17710. .......................
  17711. The assembly syntax for a register file entry is the "short" name for a
  17712. TIE register file followed by the index into that register file. For
  17713. example, the general-purpose 'AR' register file has a short name of 'a',
  17714. so these registers are named 'a0'...'a15'. As a special feature, 'sp'
  17715. is also supported as a synonym for 'a1'. Additional registers may be
  17716. added by processor configuration options and by designer-defined TIE
  17717. extensions. An initial '$' character is optional in all register names.
  17718. 
  17719. File: as.info, Node: Xtensa Optimizations, Next: Xtensa Relaxation, Prev: Xtensa Syntax, Up: Xtensa-Dependent
  17720. 9.54.3 Xtensa Optimizations
  17721. ---------------------------
  17722. The optimizations currently supported by 'as' are generation of density
  17723. instructions where appropriate and automatic branch target alignment.
  17724. * Menu:
  17725. * Density Instructions:: Using Density Instructions.
  17726. * Xtensa Automatic Alignment:: Automatic Instruction Alignment.
  17727. 
  17728. File: as.info, Node: Density Instructions, Next: Xtensa Automatic Alignment, Up: Xtensa Optimizations
  17729. 9.54.3.1 Using Density Instructions
  17730. ...................................
  17731. The Xtensa instruction set has a code density option that provides
  17732. 16-bit versions of some of the most commonly used opcodes. Use of these
  17733. opcodes can significantly reduce code size. When possible, the
  17734. assembler automatically translates instructions from the core Xtensa
  17735. instruction set into equivalent instructions from the Xtensa code
  17736. density option. This translation can be disabled by using underscore
  17737. prefixes (*note Opcode Names: Xtensa Opcodes.), by using the
  17738. '--no-transform' command-line option (*note Command Line Options: Xtensa
  17739. Options.), or by using the 'no-transform' directive (*note transform:
  17740. Transform Directive.).
  17741. It is a good idea _not_ to use the density instructions directly.
  17742. The assembler will automatically select dense instructions where
  17743. possible. If you later need to use an Xtensa processor without the code
  17744. density option, the same assembly code will then work without
  17745. modification.
  17746. 
  17747. File: as.info, Node: Xtensa Automatic Alignment, Prev: Density Instructions, Up: Xtensa Optimizations
  17748. 9.54.3.2 Automatic Instruction Alignment
  17749. ........................................
  17750. The Xtensa assembler will automatically align certain instructions, both
  17751. to optimize performance and to satisfy architectural requirements.
  17752. As an optimization to improve performance, the assembler attempts to
  17753. align branch targets so they do not cross instruction fetch boundaries.
  17754. (Xtensa processors can be configured with either 32-bit or 64-bit
  17755. instruction fetch widths.) An instruction immediately following a call
  17756. is treated as a branch target in this context, because it will be the
  17757. target of a return from the call. This alignment has the potential to
  17758. reduce branch penalties at some expense in code size. This optimization
  17759. is enabled by default. You can disable it with the '--no-target-align'
  17760. command-line option (*note Command-line Options: Xtensa Options.).
  17761. The target alignment optimization is done without adding instructions
  17762. that could increase the execution time of the program. If there are
  17763. density instructions in the code preceding a target, the assembler can
  17764. change the target alignment by widening some of those instructions to
  17765. the equivalent 24-bit instructions. Extra bytes of padding can be
  17766. inserted immediately following unconditional jump and return
  17767. instructions. This approach is usually successful in aligning many, but
  17768. not all, branch targets.
  17769. The 'LOOP' family of instructions must be aligned such that the first
  17770. instruction in the loop body does not cross an instruction fetch
  17771. boundary (e.g., with a 32-bit fetch width, a 'LOOP' instruction must be
  17772. on either a 1 or 2 mod 4 byte boundary). The assembler knows about this
  17773. restriction and inserts the minimal number of 2 or 3 byte no-op
  17774. instructions to satisfy it. When no-op instructions are added, any
  17775. label immediately preceding the original loop will be moved in order to
  17776. refer to the loop instruction, not the newly generated no-op
  17777. instruction. To preserve binary compatibility across processors with
  17778. different fetch widths, the assembler conservatively assumes a 32-bit
  17779. fetch width when aligning 'LOOP' instructions (except if the first
  17780. instruction in the loop is a 64-bit instruction).
  17781. Previous versions of the assembler automatically aligned 'ENTRY'
  17782. instructions to 4-byte boundaries, but that alignment is now the
  17783. programmer's responsibility.
  17784. 
  17785. File: as.info, Node: Xtensa Relaxation, Next: Xtensa Directives, Prev: Xtensa Optimizations, Up: Xtensa-Dependent
  17786. 9.54.4 Xtensa Relaxation
  17787. ------------------------
  17788. When an instruction operand is outside the range allowed for that
  17789. particular instruction field, 'as' can transform the code to use a
  17790. functionally-equivalent instruction or sequence of instructions. This
  17791. process is known as "relaxation". This is typically done for branch
  17792. instructions because the distance of the branch targets is not known
  17793. until assembly-time. The Xtensa assembler offers branch relaxation and
  17794. also extends this concept to function calls, 'MOVI' instructions and
  17795. other instructions with immediate fields.
  17796. * Menu:
  17797. * Xtensa Branch Relaxation:: Relaxation of Branches.
  17798. * Xtensa Call Relaxation:: Relaxation of Function Calls.
  17799. * Xtensa Jump Relaxation:: Relaxation of Jumps.
  17800. * Xtensa Immediate Relaxation:: Relaxation of other Immediate Fields.
  17801. 
  17802. File: as.info, Node: Xtensa Branch Relaxation, Next: Xtensa Call Relaxation, Up: Xtensa Relaxation
  17803. 9.54.4.1 Conditional Branch Relaxation
  17804. ......................................
  17805. When the target of a branch is too far away from the branch itself,
  17806. i.e., when the offset from the branch to the target is too large to fit
  17807. in the immediate field of the branch instruction, it may be necessary to
  17808. replace the branch with a branch around a jump. For example,
  17809. beqz a2, L
  17810. may result in:
  17811. bnez.n a2, M
  17812. j L
  17813. M:
  17814. (The 'BNEZ.N' instruction would be used in this example only if the
  17815. density option is available. Otherwise, 'BNEZ' would be used.)
  17816. This relaxation works well because the unconditional jump instruction
  17817. has a much larger offset range than the various conditional branches.
  17818. However, an error will occur if a branch target is beyond the range of a
  17819. jump instruction. 'as' cannot relax unconditional jumps. Similarly, an
  17820. error will occur if the original input contains an unconditional jump to
  17821. a target that is out of range.
  17822. Branch relaxation is enabled by default. It can be disabled by using
  17823. underscore prefixes (*note Opcode Names: Xtensa Opcodes.), the
  17824. '--no-transform' command-line option (*note Command-line Options: Xtensa
  17825. Options.), or the 'no-transform' directive (*note transform: Transform
  17826. Directive.).
  17827. 
  17828. File: as.info, Node: Xtensa Call Relaxation, Next: Xtensa Jump Relaxation, Prev: Xtensa Branch Relaxation, Up: Xtensa Relaxation
  17829. 9.54.4.2 Function Call Relaxation
  17830. .................................
  17831. Function calls may require relaxation because the Xtensa immediate call
  17832. instructions ('CALL0', 'CALL4', 'CALL8' and 'CALL12') provide a
  17833. PC-relative offset of only 512 Kbytes in either direction. For larger
  17834. programs, it may be necessary to use indirect calls ('CALLX0', 'CALLX4',
  17835. 'CALLX8' and 'CALLX12') where the target address is specified in a
  17836. register. The Xtensa assembler can automatically relax immediate call
  17837. instructions into indirect call instructions. This relaxation is done
  17838. by loading the address of the called function into the callee's return
  17839. address register and then using a 'CALLX' instruction. So, for example:
  17840. call8 func
  17841. might be relaxed to:
  17842. .literal .L1, func
  17843. l32r a8, .L1
  17844. callx8 a8
  17845. Because the addresses of targets of function calls are not generally
  17846. known until link-time, the assembler must assume the worst and relax all
  17847. the calls to functions in other source files, not just those that really
  17848. will be out of range. The linker can recognize calls that were
  17849. unnecessarily relaxed, and it will remove the overhead introduced by the
  17850. assembler for those cases where direct calls are sufficient.
  17851. Call relaxation is disabled by default because it can have a negative
  17852. effect on both code size and performance, although the linker can
  17853. usually eliminate the unnecessary overhead. If a program is too large
  17854. and some of the calls are out of range, function call relaxation can be
  17855. enabled using the '--longcalls' command-line option or the 'longcalls'
  17856. directive (*note longcalls: Longcalls Directive.).
  17857. 
  17858. File: as.info, Node: Xtensa Jump Relaxation, Next: Xtensa Immediate Relaxation, Prev: Xtensa Call Relaxation, Up: Xtensa Relaxation
  17859. 9.54.4.3 Jump Relaxation
  17860. ........................
  17861. Jump instruction may require relaxation because the Xtensa jump
  17862. instruction ('J') provide a PC-relative offset of only 128 Kbytes in
  17863. either direction. One option is to use jump long ('J.L') instruction,
  17864. which depending on jump distance may be assembled as jump ('J') or
  17865. indirect jump ('JX'). However it needs a free register. When there's
  17866. no spare register it is possible to plant intermediate jump sites
  17867. (trampolines) between the jump instruction and its target. These sites
  17868. may be located in areas unreachable by normal code execution flow, in
  17869. that case they only contain intermediate jumps, or they may be inserted
  17870. in the middle of code block, in which case there's an additional jump
  17871. from the beginning of the trampoline to the instruction past its end.
  17872. So, for example:
  17873. j 1f
  17874. ...
  17875. retw
  17876. ...
  17877. mov a10, a2
  17878. call8 func
  17879. ...
  17880. 1:
  17881. ...
  17882. might be relaxed to:
  17883. j .L0_TR_1
  17884. ...
  17885. retw
  17886. .L0_TR_1:
  17887. j 1f
  17888. ...
  17889. mov a10, a2
  17890. call8 func
  17891. ...
  17892. 1:
  17893. ...
  17894. or to:
  17895. j .L0_TR_1
  17896. ...
  17897. retw
  17898. ...
  17899. mov a10, a2
  17900. j .L0_TR_0
  17901. .L0_TR_1:
  17902. j 1f
  17903. .L0_TR_0:
  17904. call8 func
  17905. ...
  17906. 1:
  17907. ...
  17908. The Xtensa assembler uses trampolines with jump around only when it
  17909. cannot find suitable unreachable trampoline. There may be multiple
  17910. trampolines between the jump instruction and its target.
  17911. This relaxation does not apply to jumps to undefined symbols,
  17912. assuming they will reach their targets once resolved.
  17913. Jump relaxation is enabled by default because it does not affect code
  17914. size or performance while the code itself is small. This relaxation may
  17915. be disabled completely with '--no-trampolines' or '--no-transform'
  17916. command-line options (*note Command-line Options: Xtensa Options.).
  17917. 
  17918. File: as.info, Node: Xtensa Immediate Relaxation, Prev: Xtensa Jump Relaxation, Up: Xtensa Relaxation
  17919. 9.54.4.4 Other Immediate Field Relaxation
  17920. .........................................
  17921. The assembler normally performs the following other relaxations. They
  17922. can be disabled by using underscore prefixes (*note Opcode Names: Xtensa
  17923. Opcodes.), the '--no-transform' command-line option (*note Command-line
  17924. Options: Xtensa Options.), or the 'no-transform' directive (*note
  17925. transform: Transform Directive.).
  17926. The 'MOVI' machine instruction can only materialize values in the
  17927. range from -2048 to 2047. Values outside this range are best
  17928. materialized with 'L32R' instructions. Thus:
  17929. movi a0, 100000
  17930. is assembled into the following machine code:
  17931. .literal .L1, 100000
  17932. l32r a0, .L1
  17933. The 'L8UI' machine instruction can only be used with immediate
  17934. offsets in the range from 0 to 255. The 'L16SI' and 'L16UI' machine
  17935. instructions can only be used with offsets from 0 to 510. The 'L32I'
  17936. machine instruction can only be used with offsets from 0 to 1020. A
  17937. load offset outside these ranges can be materialized with an 'L32R'
  17938. instruction if the destination register of the load is different than
  17939. the source address register. For example:
  17940. l32i a1, a0, 2040
  17941. is translated to:
  17942. .literal .L1, 2040
  17943. l32r a1, .L1
  17944. add a1, a0, a1
  17945. l32i a1, a1, 0
  17946. If the load destination and source address register are the same, an
  17947. out-of-range offset causes an error.
  17948. The Xtensa 'ADDI' instruction only allows immediate operands in the
  17949. range from -128 to 127. There are a number of alternate instruction
  17950. sequences for the 'ADDI' operation. First, if the immediate is 0, the
  17951. 'ADDI' will be turned into a 'MOV.N' instruction (or the equivalent 'OR'
  17952. instruction if the code density option is not available). If the 'ADDI'
  17953. immediate is outside of the range -128 to 127, but inside the range
  17954. -32896 to 32639, an 'ADDMI' instruction or 'ADDMI'/'ADDI' sequence will
  17955. be used. Finally, if the immediate is outside of this range and a free
  17956. register is available, an 'L32R'/'ADD' sequence will be used with a
  17957. literal allocated from the literal pool.
  17958. For example:
  17959. addi a5, a6, 0
  17960. addi a5, a6, 512
  17961. addi a5, a6, 513
  17962. addi a5, a6, 50000
  17963. is assembled into the following:
  17964. .literal .L1, 50000
  17965. mov.n a5, a6
  17966. addmi a5, a6, 0x200
  17967. addmi a5, a6, 0x200
  17968. addi a5, a5, 1
  17969. l32r a5, .L1
  17970. add a5, a6, a5
  17971. 
  17972. File: as.info, Node: Xtensa Directives, Prev: Xtensa Relaxation, Up: Xtensa-Dependent
  17973. 9.54.5 Directives
  17974. -----------------
  17975. The Xtensa assembler supports a region-based directive syntax:
  17976. .begin DIRECTIVE [OPTIONS]
  17977. ...
  17978. .end DIRECTIVE
  17979. All the Xtensa-specific directives that apply to a region of code use
  17980. this syntax.
  17981. The directive applies to code between the '.begin' and the '.end'.
  17982. The state of the option after the '.end' reverts to what it was before
  17983. the '.begin'. A nested '.begin'/'.end' region can further change the
  17984. state of the directive without having to be aware of its outer state.
  17985. For example, consider:
  17986. .begin no-transform
  17987. L: add a0, a1, a2
  17988. .begin transform
  17989. M: add a0, a1, a2
  17990. .end transform
  17991. N: add a0, a1, a2
  17992. .end no-transform
  17993. The 'ADD' opcodes at 'L' and 'N' in the outer 'no-transform' region
  17994. both result in 'ADD' machine instructions, but the assembler selects an
  17995. 'ADD.N' instruction for the 'ADD' at 'M' in the inner 'transform'
  17996. region.
  17997. The advantage of this style is that it works well inside macros which
  17998. can preserve the context of their callers.
  17999. The following directives are available:
  18000. * Menu:
  18001. * Schedule Directive:: Enable instruction scheduling.
  18002. * Longcalls Directive:: Use Indirect Calls for Greater Range.
  18003. * Transform Directive:: Disable All Assembler Transformations.
  18004. * Literal Directive:: Intermix Literals with Instructions.
  18005. * Literal Position Directive:: Specify Inline Literal Pool Locations.
  18006. * Literal Prefix Directive:: Specify Literal Section Name Prefix.
  18007. * Absolute Literals Directive:: Control PC-Relative vs. Absolute Literals.
  18008. 
  18009. File: as.info, Node: Schedule Directive, Next: Longcalls Directive, Up: Xtensa Directives
  18010. 9.54.5.1 schedule
  18011. .................
  18012. The 'schedule' directive is recognized only for compatibility with
  18013. Tensilica's assembler.
  18014. .begin [no-]schedule
  18015. .end [no-]schedule
  18016. This directive is ignored and has no effect on 'as'.
  18017. 
  18018. File: as.info, Node: Longcalls Directive, Next: Transform Directive, Prev: Schedule Directive, Up: Xtensa Directives
  18019. 9.54.5.2 longcalls
  18020. ..................
  18021. The 'longcalls' directive enables or disables function call relaxation.
  18022. *Note Function Call Relaxation: Xtensa Call Relaxation.
  18023. .begin [no-]longcalls
  18024. .end [no-]longcalls
  18025. Call relaxation is disabled by default unless the '--longcalls'
  18026. command-line option is specified. The 'longcalls' directive overrides
  18027. the default determined by the command-line options.
  18028. 
  18029. File: as.info, Node: Transform Directive, Next: Literal Directive, Prev: Longcalls Directive, Up: Xtensa Directives
  18030. 9.54.5.3 transform
  18031. ..................
  18032. This directive enables or disables all assembler transformation,
  18033. including relaxation (*note Xtensa Relaxation: Xtensa Relaxation.) and
  18034. optimization (*note Xtensa Optimizations: Xtensa Optimizations.).
  18035. .begin [no-]transform
  18036. .end [no-]transform
  18037. Transformations are enabled by default unless the '--no-transform'
  18038. option is used. The 'transform' directive overrides the default
  18039. determined by the command-line options. An underscore opcode prefix,
  18040. disabling transformation of that opcode, always takes precedence over
  18041. both directives and command-line flags.
  18042. 
  18043. File: as.info, Node: Literal Directive, Next: Literal Position Directive, Prev: Transform Directive, Up: Xtensa Directives
  18044. 9.54.5.4 literal
  18045. ................
  18046. The '.literal' directive is used to define literal pool data, i.e.,
  18047. read-only 32-bit data accessed via 'L32R' instructions.
  18048. .literal LABEL, VALUE[, VALUE...]
  18049. This directive is similar to the standard '.word' directive, except
  18050. that the actual location of the literal data is determined by the
  18051. assembler and linker, not by the position of the '.literal' directive.
  18052. Using this directive gives the assembler freedom to locate the literal
  18053. data in the most appropriate place and possibly to combine identical
  18054. literals. For example, the code:
  18055. entry sp, 40
  18056. .literal .L1, sym
  18057. l32r a4, .L1
  18058. can be used to load a pointer to the symbol 'sym' into register 'a4'.
  18059. The value of 'sym' will not be placed between the 'ENTRY' and 'L32R'
  18060. instructions; instead, the assembler puts the data in a literal pool.
  18061. Literal pools are placed by default in separate literal sections;
  18062. however, when using the '--text-section-literals' option (*note
  18063. Command-line Options: Xtensa Options.), the literal pools for
  18064. PC-relative mode 'L32R' instructions are placed in the current
  18065. section.(1) These text section literal pools are created automatically
  18066. before 'ENTRY' instructions and manually after '.literal_position'
  18067. directives (*note literal_position: Literal Position Directive.). If
  18068. there are no preceding 'ENTRY' instructions, explicit
  18069. '.literal_position' directives must be used to place the text section
  18070. literal pools; otherwise, 'as' will report an error.
  18071. When literals are placed in separate sections, the literal section
  18072. names are derived from the names of the sections where the literals are
  18073. defined. The base literal section names are '.literal' for PC-relative
  18074. mode 'L32R' instructions and '.lit4' for absolute mode 'L32R'
  18075. instructions (*note absolute-literals: Absolute Literals Directive.).
  18076. These base names are used for literals defined in the default '.text'
  18077. section. For literals defined in other sections or within the scope of
  18078. a 'literal_prefix' directive (*note literal_prefix: Literal Prefix
  18079. Directive.), the following rules determine the literal section name:
  18080. 1. If the current section is a member of a section group, the literal
  18081. section name includes the group name as a suffix to the base
  18082. '.literal' or '.lit4' name, with a period to separate the base name
  18083. and group name. The literal section is also made a member of the
  18084. group.
  18085. 2. If the current section name (or 'literal_prefix' value) begins with
  18086. "'.gnu.linkonce.KIND.'", the literal section name is formed by
  18087. replacing "'.KIND'" with the base '.literal' or '.lit4' name. For
  18088. example, for literals defined in a section named
  18089. '.gnu.linkonce.t.func', the literal section will be
  18090. '.gnu.linkonce.literal.func' or '.gnu.linkonce.lit4.func'.
  18091. 3. If the current section name (or 'literal_prefix' value) ends with
  18092. '.text', the literal section name is formed by replacing that
  18093. suffix with the base '.literal' or '.lit4' name. For example, for
  18094. literals defined in a section named '.iram0.text', the literal
  18095. section will be '.iram0.literal' or '.iram0.lit4'.
  18096. 4. If none of the preceding conditions apply, the literal section name
  18097. is formed by adding the base '.literal' or '.lit4' name as a suffix
  18098. to the current section name (or 'literal_prefix' value).
  18099. ---------- Footnotes ----------
  18100. (1) Literals for the '.init' and '.fini' sections are always placed
  18101. in separate sections, even when '--text-section-literals' is enabled.
  18102. 
  18103. File: as.info, Node: Literal Position Directive, Next: Literal Prefix Directive, Prev: Literal Directive, Up: Xtensa Directives
  18104. 9.54.5.5 literal_position
  18105. .........................
  18106. When using '--text-section-literals' to place literals inline in the
  18107. section being assembled, the '.literal_position' directive can be used
  18108. to mark a potential location for a literal pool.
  18109. .literal_position
  18110. The '.literal_position' directive is ignored when the
  18111. '--text-section-literals' option is not used or when 'L32R' instructions
  18112. use the absolute addressing mode.
  18113. The assembler will automatically place text section literal pools
  18114. before 'ENTRY' instructions, so the '.literal_position' directive is
  18115. only needed to specify some other location for a literal pool. You may
  18116. need to add an explicit jump instruction to skip over an inline literal
  18117. pool.
  18118. For example, an interrupt vector does not begin with an 'ENTRY'
  18119. instruction so the assembler will be unable to automatically find a good
  18120. place to put a literal pool. Moreover, the code for the interrupt
  18121. vector must be at a specific starting address, so the literal pool
  18122. cannot come before the start of the code. The literal pool for the
  18123. vector must be explicitly positioned in the middle of the vector (before
  18124. any uses of the literals, due to the negative offsets used by
  18125. PC-relative 'L32R' instructions). The '.literal_position' directive can
  18126. be used to do this. In the following code, the literal for 'M' will
  18127. automatically be aligned correctly and is placed after the unconditional
  18128. jump.
  18129. .global M
  18130. code_start:
  18131. j continue
  18132. .literal_position
  18133. .align 4
  18134. continue:
  18135. movi a4, M
  18136. 
  18137. File: as.info, Node: Literal Prefix Directive, Next: Absolute Literals Directive, Prev: Literal Position Directive, Up: Xtensa Directives
  18138. 9.54.5.6 literal_prefix
  18139. .......................
  18140. The 'literal_prefix' directive allows you to override the default
  18141. literal section names, which are derived from the names of the sections
  18142. where the literals are defined.
  18143. .begin literal_prefix [NAME]
  18144. .end literal_prefix
  18145. For literals defined within the delimited region, the literal section
  18146. names are derived from the NAME argument instead of the name of the
  18147. current section. The rules used to derive the literal section names do
  18148. not change. *Note literal: Literal Directive. If the NAME argument is
  18149. omitted, the literal sections revert to the defaults. This directive
  18150. has no effect when using the '--text-section-literals' option (*note
  18151. Command-line Options: Xtensa Options.).
  18152. 
  18153. File: as.info, Node: Absolute Literals Directive, Prev: Literal Prefix Directive, Up: Xtensa Directives
  18154. 9.54.5.7 absolute-literals
  18155. ..........................
  18156. The 'absolute-literals' and 'no-absolute-literals' directives control
  18157. the absolute vs. PC-relative mode for 'L32R' instructions. These are
  18158. relevant only for Xtensa configurations that include the absolute
  18159. addressing option for 'L32R' instructions.
  18160. .begin [no-]absolute-literals
  18161. .end [no-]absolute-literals
  18162. These directives do not change the 'L32R' mode--they only cause the
  18163. assembler to emit the appropriate kind of relocation for 'L32R'
  18164. instructions and to place the literal values in the appropriate section.
  18165. To change the 'L32R' mode, the program must write the 'LITBASE' special
  18166. register. It is the programmer's responsibility to keep track of the
  18167. mode and indicate to the assembler which mode is used in each region of
  18168. code.
  18169. If the Xtensa configuration includes the absolute 'L32R' addressing
  18170. option, the default is to assume absolute 'L32R' addressing unless the
  18171. '--no-absolute-literals' command-line option is specified. Otherwise,
  18172. the default is to assume PC-relative 'L32R' addressing. The
  18173. 'absolute-literals' directive can then be used to override the default
  18174. determined by the command-line options.
  18175. 
  18176. File: as.info, Node: Z80-Dependent, Next: Z8000-Dependent, Prev: Xtensa-Dependent, Up: Machine Dependencies
  18177. 9.55 Z80 Dependent Features
  18178. ===========================
  18179. * Menu:
  18180. * Z80 Options:: Options
  18181. * Z80 Syntax:: Syntax
  18182. * Z80 Floating Point:: Floating Point
  18183. * Z80 Directives:: Z80 Machine Directives
  18184. * Z80 Opcodes:: Opcodes
  18185. 
  18186. File: as.info, Node: Z80 Options, Next: Z80 Syntax, Up: Z80-Dependent
  18187. 9.55.1 Options
  18188. --------------
  18189. The Zilog Z80 and Ascii R800 version of 'as' have a few machine
  18190. dependent options.
  18191. '-z80'
  18192. Produce code for the Z80 processor. There are additional options
  18193. to request warnings and error messages for undocumented
  18194. instructions.
  18195. '-ignore-undocumented-instructions'
  18196. '-Wnud'
  18197. Silently assemble undocumented Z80-instructions that have been
  18198. adopted as documented R800-instructions.
  18199. '-ignore-unportable-instructions'
  18200. '-Wnup'
  18201. Silently assemble all undocumented Z80-instructions.
  18202. '-warn-undocumented-instructions'
  18203. '-Wud'
  18204. Issue warnings for undocumented Z80-instructions that work on R800,
  18205. do not assemble other undocumented instructions without warning.
  18206. '-warn-unportable-instructions'
  18207. '-Wup'
  18208. Issue warnings for other undocumented Z80-instructions, do not
  18209. treat any undocumented instructions as errors.
  18210. '-forbid-undocumented-instructions'
  18211. '-Fud'
  18212. Treat all undocumented z80-instructions as errors.
  18213. '-forbid-unportable-instructions'
  18214. '-Fup'
  18215. Treat undocumented z80-instructions that do not work on R800 as
  18216. errors.
  18217. '-r800'
  18218. Produce code for the R800 processor. The assembler does not
  18219. support undocumented instructions for the R800. In line with
  18220. common practice, 'as' uses Z80 instruction names for the R800
  18221. processor, as far as they exist.
  18222. 
  18223. File: as.info, Node: Z80 Syntax, Next: Z80 Floating Point, Prev: Z80 Options, Up: Z80-Dependent
  18224. 9.55.2 Syntax
  18225. -------------
  18226. The assembler syntax closely follows the 'Z80 family CPU User Manual' by
  18227. Zilog. In expressions a single '=' may be used as "is equal to"
  18228. comparison operator.
  18229. Suffices can be used to indicate the radix of integer constants; 'H'
  18230. or 'h' for hexadecimal, 'D' or 'd' for decimal, 'Q', 'O', 'q' or 'o' for
  18231. octal, and 'B' for binary.
  18232. The suffix 'b' denotes a backreference to local label.
  18233. * Menu:
  18234. * Z80-Chars:: Special Characters
  18235. * Z80-Regs:: Register Names
  18236. * Z80-Case:: Case Sensitivity
  18237. 
  18238. File: as.info, Node: Z80-Chars, Next: Z80-Regs, Up: Z80 Syntax
  18239. 9.55.2.1 Special Characters
  18240. ...........................
  18241. The semicolon ';' is the line comment character;
  18242. If a '#' appears as the first character of a line then the whole line
  18243. is treated as a comment, but in this case the line could also be a
  18244. logical line number directive (*note Comments::) or a preprocessor
  18245. control command (*note Preprocessing::).
  18246. The Z80 assembler does not support a line separator character.
  18247. The dollar sign '$' can be used as a prefix for hexadecimal numbers
  18248. and as a symbol denoting the current location counter.
  18249. A backslash '\' is an ordinary character for the Z80 assembler.
  18250. The single quote ''' must be followed by a closing quote. If there
  18251. is one character in between, it is a character constant, otherwise it is
  18252. a string constant.
  18253. 
  18254. File: as.info, Node: Z80-Regs, Next: Z80-Case, Prev: Z80-Chars, Up: Z80 Syntax
  18255. 9.55.2.2 Register Names
  18256. .......................
  18257. The registers are referred to with the letters assigned to them by
  18258. Zilog. In addition 'as' recognizes 'ixl' and 'ixh' as the least and
  18259. most significant octet in 'ix', and similarly 'iyl' and 'iyh' as parts
  18260. of 'iy'.
  18261. 
  18262. File: as.info, Node: Z80-Case, Prev: Z80-Regs, Up: Z80 Syntax
  18263. 9.55.2.3 Case Sensitivity
  18264. .........................
  18265. Upper and lower case are equivalent in register names, opcodes,
  18266. condition codes and assembler directives. The case of letters is
  18267. significant in labels and symbol names. The case is also important to
  18268. distinguish the suffix 'b' for a backward reference to a local label
  18269. from the suffix 'B' for a number in binary notation.
  18270. 
  18271. File: as.info, Node: Z80 Floating Point, Next: Z80 Directives, Prev: Z80 Syntax, Up: Z80-Dependent
  18272. 9.55.3 Floating Point
  18273. ---------------------
  18274. Floating-point numbers are not supported.
  18275. 
  18276. File: as.info, Node: Z80 Directives, Next: Z80 Opcodes, Prev: Z80 Floating Point, Up: Z80-Dependent
  18277. 9.55.4 Z80 Assembler Directives
  18278. -------------------------------
  18279. 'as' for the Z80 supports some additional directives for compatibility
  18280. with other assemblers.
  18281. These are the additional directives in 'as' for the Z80:
  18282. 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18283. 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18284. For each STRING the characters are copied to the object file, for
  18285. each other EXPRESSION the value is stored in one byte. A warning
  18286. is issued in case of an overflow.
  18287. 'dw EXPRESSION[,EXPRESSION...]'
  18288. 'defw EXPRESSION[,EXPRESSION...]'
  18289. For each EXPRESSION the value is stored in two bytes, ignoring
  18290. overflow.
  18291. 'd24 EXPRESSION[,EXPRESSION...]'
  18292. 'def24 EXPRESSION[,EXPRESSION...]'
  18293. For each EXPRESSION the value is stored in three bytes, ignoring
  18294. overflow.
  18295. 'd32 EXPRESSION[,EXPRESSION...]'
  18296. 'def32 EXPRESSION[,EXPRESSION...]'
  18297. For each EXPRESSION the value is stored in four bytes, ignoring
  18298. overflow.
  18299. 'ds COUNT[, VALUE]'
  18300. 'defs COUNT[, VALUE]'
  18301. Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
  18302. it defaults to zero.
  18303. 'SYMBOL equ EXPRESSION'
  18304. 'SYMBOL defl EXPRESSION'
  18305. These directives set the value of SYMBOL to EXPRESSION. If 'equ'
  18306. is used, it is an error if SYMBOL is already defined. Symbols
  18307. defined with 'equ' are not protected from redefinition.
  18308. 'set'
  18309. This is a normal instruction on Z80, and not an assembler
  18310. directive.
  18311. 'psect NAME'
  18312. A synonym for *Note Section::, no second argument should be given.
  18313. 
  18314. File: as.info, Node: Z80 Opcodes, Prev: Z80 Directives, Up: Z80-Dependent
  18315. 9.55.5 Opcodes
  18316. --------------
  18317. In line with common practice, Z80 mnemonics are used for both the Z80
  18318. and the R800.
  18319. In many instructions it is possible to use one of the half index
  18320. registers ('ixl','ixh','iyl','iyh') in stead of an 8-bit general purpose
  18321. register. This yields instructions that are documented on the R800 and
  18322. undocumented on the Z80. Similarly 'in f,(c)' is documented on the R800
  18323. and undocumented on the Z80.
  18324. The assembler also supports the following undocumented
  18325. Z80-instructions, that have not been adopted in the R800 instruction
  18326. set:
  18327. 'out (c),0'
  18328. Sends zero to the port pointed to by register c.
  18329. 'sli M'
  18330. Equivalent to 'M = (M<<1)+1', the operand M can be any operand that
  18331. is valid for 'sla'. One can use 'sll' as a synonym for 'sli'.
  18332. 'OP (ix+D), R'
  18333. This is equivalent to
  18334. ld R, (ix+D)
  18335. OPC R
  18336. ld (ix+D), R
  18337. The operation 'OPC' may be any of 'res B,', 'set B,', 'rl', 'rlc',
  18338. 'rr', 'rrc', 'sla', 'sli', 'sra' and 'srl', and the register 'R'
  18339. may be any of 'a', 'b', 'c', 'd', 'e', 'h' and 'l'.
  18340. 'OPC (iy+D), R'
  18341. As above, but with 'iy' instead of 'ix'.
  18342. The web site at <http://www.z80.info> is a good starting place to
  18343. find more information on programming the Z80.
  18344. 
  18345. File: as.info, Node: Z8000-Dependent, Prev: Z80-Dependent, Up: Machine Dependencies
  18346. 9.56 Z8000 Dependent Features
  18347. =============================
  18348. The Z8000 as supports both members of the Z8000 family: the unsegmented
  18349. Z8002, with 16 bit addresses, and the segmented Z8001 with 24 bit
  18350. addresses.
  18351. When the assembler is in unsegmented mode (specified with the
  18352. 'unsegm' directive), an address takes up one word (16 bit) sized
  18353. register. When the assembler is in segmented mode (specified with the
  18354. 'segm' directive), a 24-bit address takes up a long (32 bit) register.
  18355. *Note Assembler Directives for the Z8000: Z8000 Directives, for a list
  18356. of other Z8000 specific assembler directives.
  18357. * Menu:
  18358. * Z8000 Options:: Command-line options for the Z8000
  18359. * Z8000 Syntax:: Assembler syntax for the Z8000
  18360. * Z8000 Directives:: Special directives for the Z8000
  18361. * Z8000 Opcodes:: Opcodes
  18362. 
  18363. File: as.info, Node: Z8000 Options, Next: Z8000 Syntax, Up: Z8000-Dependent
  18364. 9.56.1 Options
  18365. --------------
  18366. '-z8001'
  18367. Generate segmented code by default.
  18368. '-z8002'
  18369. Generate unsegmented code by default.
  18370. 
  18371. File: as.info, Node: Z8000 Syntax, Next: Z8000 Directives, Prev: Z8000 Options, Up: Z8000-Dependent
  18372. 9.56.2 Syntax
  18373. -------------
  18374. * Menu:
  18375. * Z8000-Chars:: Special Characters
  18376. * Z8000-Regs:: Register Names
  18377. * Z8000-Addressing:: Addressing Modes
  18378. 
  18379. File: as.info, Node: Z8000-Chars, Next: Z8000-Regs, Up: Z8000 Syntax
  18380. 9.56.2.1 Special Characters
  18381. ...........................
  18382. '!' is the line comment character.
  18383. If a '#' appears as the first character of a line then the whole line
  18384. is treated as a comment, but in this case the line could also be a
  18385. logical line number directive (*note Comments::) or a preprocessor
  18386. control command (*note Preprocessing::).
  18387. You can use ';' instead of a newline to separate statements.
  18388. 
  18389. File: as.info, Node: Z8000-Regs, Next: Z8000-Addressing, Prev: Z8000-Chars, Up: Z8000 Syntax
  18390. 9.56.2.2 Register Names
  18391. .......................
  18392. The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer
  18393. to different sized groups of registers by register number, with the
  18394. prefix 'r' for 16 bit registers, 'rr' for 32 bit registers and 'rq' for
  18395. 64 bit registers. You can also refer to the contents of the first eight
  18396. (of the sixteen 16 bit registers) by bytes. They are named 'rlN' and
  18397. 'rhN'.
  18398. _byte registers_
  18399. rl0 rh0 rl1 rh1 rl2 rh2 rl3 rh3
  18400. rl4 rh4 rl5 rh5 rl6 rh6 rl7 rh7
  18401. _word registers_
  18402. r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15
  18403. _long word registers_
  18404. rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14
  18405. _quad word registers_
  18406. rq0 rq4 rq8 rq12
  18407. 
  18408. File: as.info, Node: Z8000-Addressing, Prev: Z8000-Regs, Up: Z8000 Syntax
  18409. 9.56.2.3 Addressing Modes
  18410. .........................
  18411. as understands the following addressing modes for the Z8000:
  18412. 'rlN'
  18413. 'rhN'
  18414. 'rN'
  18415. 'rrN'
  18416. 'rqN'
  18417. Register direct: 8bit, 16bit, 32bit, and 64bit registers.
  18418. '@rN'
  18419. '@rrN'
  18420. Indirect register: @rrN in segmented mode, @rN in unsegmented mode.
  18421. 'ADDR'
  18422. Direct: the 16 bit or 24 bit address (depending on whether the
  18423. assembler is in segmented or unsegmented mode) of the operand is in
  18424. the instruction.
  18425. 'address(rN)'
  18426. Indexed: the 16 or 24 bit address is added to the 16 bit register
  18427. to produce the final address in memory of the operand.
  18428. 'rN(#IMM)'
  18429. 'rrN(#IMM)'
  18430. Base Address: the 16 or 24 bit register is added to the 16 bit sign
  18431. extended immediate displacement to produce the final address in
  18432. memory of the operand.
  18433. 'rN(rM)'
  18434. 'rrN(rM)'
  18435. Base Index: the 16 or 24 bit register rN or rrN is added to the
  18436. sign extended 16 bit index register rM to produce the final address
  18437. in memory of the operand.
  18438. '#XX'
  18439. Immediate data XX.
  18440. 
  18441. File: as.info, Node: Z8000 Directives, Next: Z8000 Opcodes, Prev: Z8000 Syntax, Up: Z8000-Dependent
  18442. 9.56.3 Assembler Directives for the Z8000
  18443. -----------------------------------------
  18444. The Z8000 port of as includes additional assembler directives, for
  18445. compatibility with other Z8000 assemblers. These do not begin with '.'
  18446. (unlike the ordinary as directives).
  18447. 'segm'
  18448. '.z8001'
  18449. Generate code for the segmented Z8001.
  18450. 'unsegm'
  18451. '.z8002'
  18452. Generate code for the unsegmented Z8002.
  18453. 'name'
  18454. Synonym for '.file'
  18455. 'global'
  18456. Synonym for '.global'
  18457. 'wval'
  18458. Synonym for '.word'
  18459. 'lval'
  18460. Synonym for '.long'
  18461. 'bval'
  18462. Synonym for '.byte'
  18463. 'sval'
  18464. Assemble a string. 'sval' expects one string literal, delimited by
  18465. single quotes. It assembles each byte of the string into
  18466. consecutive addresses. You can use the escape sequence '%XX'
  18467. (where XX represents a two-digit hexadecimal number) to represent
  18468. the character whose ASCII value is XX. Use this feature to
  18469. describe single quote and other characters that may not appear in
  18470. string literals as themselves. For example, the C statement
  18471. 'char *a = "he said \"it's 50% off\"";' is represented in Z8000
  18472. assembly language (shown with the assembler output in hex at the
  18473. left) as
  18474. 68652073 sval 'he said %22it%27s 50%25 off%22%00'
  18475. 61696420
  18476. 22697427
  18477. 73203530
  18478. 25206F66
  18479. 662200
  18480. 'rsect'
  18481. synonym for '.section'
  18482. 'block'
  18483. synonym for '.space'
  18484. 'even'
  18485. special case of '.align'; aligns output to even byte boundary.
  18486. 
  18487. File: as.info, Node: Z8000 Opcodes, Prev: Z8000 Directives, Up: Z8000-Dependent
  18488. 9.56.4 Opcodes
  18489. --------------
  18490. For detailed information on the Z8000 machine instruction set, see
  18491. 'Z8000 Technical Manual'.
  18492. The following table summarizes the opcodes and their arguments:
  18493. rs 16 bit source register
  18494. rd 16 bit destination register
  18495. rbs 8 bit source register
  18496. rbd 8 bit destination register
  18497. rrs 32 bit source register
  18498. rrd 32 bit destination register
  18499. rqs 64 bit source register
  18500. rqd 64 bit destination register
  18501. addr 16/24 bit address
  18502. imm immediate data
  18503. adc rd,rs clrb addr cpsir @rd,@rs,rr,cc
  18504. adcb rbd,rbs clrb addr(rd) cpsirb @rd,@rs,rr,cc
  18505. add rd,@rs clrb rbd dab rbd
  18506. add rd,addr com @rd dbjnz rbd,disp7
  18507. add rd,addr(rs) com addr dec @rd,imm4m1
  18508. add rd,imm16 com addr(rd) dec addr(rd),imm4m1
  18509. add rd,rs com rd dec addr,imm4m1
  18510. addb rbd,@rs comb @rd dec rd,imm4m1
  18511. addb rbd,addr comb addr decb @rd,imm4m1
  18512. addb rbd,addr(rs) comb addr(rd) decb addr(rd),imm4m1
  18513. addb rbd,imm8 comb rbd decb addr,imm4m1
  18514. addb rbd,rbs comflg flags decb rbd,imm4m1
  18515. addl rrd,@rs cp @rd,imm16 di i2
  18516. addl rrd,addr cp addr(rd),imm16 div rrd,@rs
  18517. addl rrd,addr(rs) cp addr,imm16 div rrd,addr
  18518. addl rrd,imm32 cp rd,@rs div rrd,addr(rs)
  18519. addl rrd,rrs cp rd,addr div rrd,imm16
  18520. and rd,@rs cp rd,addr(rs) div rrd,rs
  18521. and rd,addr cp rd,imm16 divl rqd,@rs
  18522. and rd,addr(rs) cp rd,rs divl rqd,addr
  18523. and rd,imm16 cpb @rd,imm8 divl rqd,addr(rs)
  18524. and rd,rs cpb addr(rd),imm8 divl rqd,imm32
  18525. andb rbd,@rs cpb addr,imm8 divl rqd,rrs
  18526. andb rbd,addr cpb rbd,@rs djnz rd,disp7
  18527. andb rbd,addr(rs) cpb rbd,addr ei i2
  18528. andb rbd,imm8 cpb rbd,addr(rs) ex rd,@rs
  18529. andb rbd,rbs cpb rbd,imm8 ex rd,addr
  18530. bit @rd,imm4 cpb rbd,rbs ex rd,addr(rs)
  18531. bit addr(rd),imm4 cpd rd,@rs,rr,cc ex rd,rs
  18532. bit addr,imm4 cpdb rbd,@rs,rr,cc exb rbd,@rs
  18533. bit rd,imm4 cpdr rd,@rs,rr,cc exb rbd,addr
  18534. bit rd,rs cpdrb rbd,@rs,rr,cc exb rbd,addr(rs)
  18535. bitb @rd,imm4 cpi rd,@rs,rr,cc exb rbd,rbs
  18536. bitb addr(rd),imm4 cpib rbd,@rs,rr,cc ext0e imm8
  18537. bitb addr,imm4 cpir rd,@rs,rr,cc ext0f imm8
  18538. bitb rbd,imm4 cpirb rbd,@rs,rr,cc ext8e imm8
  18539. bitb rbd,rs cpl rrd,@rs ext8f imm8
  18540. bpt cpl rrd,addr exts rrd
  18541. call @rd cpl rrd,addr(rs) extsb rd
  18542. call addr cpl rrd,imm32 extsl rqd
  18543. call addr(rd) cpl rrd,rrs halt
  18544. calr disp12 cpsd @rd,@rs,rr,cc in rd,@rs
  18545. clr @rd cpsdb @rd,@rs,rr,cc in rd,imm16
  18546. clr addr cpsdr @rd,@rs,rr,cc inb rbd,@rs
  18547. clr addr(rd) cpsdrb @rd,@rs,rr,cc inb rbd,imm16
  18548. clr rd cpsi @rd,@rs,rr,cc inc @rd,imm4m1
  18549. clrb @rd cpsib @rd,@rs,rr,cc inc addr(rd),imm4m1
  18550. inc addr,imm4m1 ldb rbd,rs(rx) mult rrd,addr(rs)
  18551. inc rd,imm4m1 ldb rd(imm16),rbs mult rrd,imm16
  18552. incb @rd,imm4m1 ldb rd(rx),rbs mult rrd,rs
  18553. incb addr(rd),imm4m1 ldctl ctrl,rs multl rqd,@rs
  18554. incb addr,imm4m1 ldctl rd,ctrl multl rqd,addr
  18555. incb rbd,imm4m1 ldd @rs,@rd,rr multl rqd,addr(rs)
  18556. ind @rd,@rs,ra lddb @rs,@rd,rr multl rqd,imm32
  18557. indb @rd,@rs,rba lddr @rs,@rd,rr multl rqd,rrs
  18558. inib @rd,@rs,ra lddrb @rs,@rd,rr neg @rd
  18559. inibr @rd,@rs,ra ldi @rd,@rs,rr neg addr
  18560. iret ldib @rd,@rs,rr neg addr(rd)
  18561. jp cc,@rd ldir @rd,@rs,rr neg rd
  18562. jp cc,addr ldirb @rd,@rs,rr negb @rd
  18563. jp cc,addr(rd) ldk rd,imm4 negb addr
  18564. jr cc,disp8 ldl @rd,rrs negb addr(rd)
  18565. ld @rd,imm16 ldl addr(rd),rrs negb rbd
  18566. ld @rd,rs ldl addr,rrs nop
  18567. ld addr(rd),imm16 ldl rd(imm16),rrs or rd,@rs
  18568. ld addr(rd),rs ldl rd(rx),rrs or rd,addr
  18569. ld addr,imm16 ldl rrd,@rs or rd,addr(rs)
  18570. ld addr,rs ldl rrd,addr or rd,imm16
  18571. ld rd(imm16),rs ldl rrd,addr(rs) or rd,rs
  18572. ld rd(rx),rs ldl rrd,imm32 orb rbd,@rs
  18573. ld rd,@rs ldl rrd,rrs orb rbd,addr
  18574. ld rd,addr ldl rrd,rs(imm16) orb rbd,addr(rs)
  18575. ld rd,addr(rs) ldl rrd,rs(rx) orb rbd,imm8
  18576. ld rd,imm16 ldm @rd,rs,n orb rbd,rbs
  18577. ld rd,rs ldm addr(rd),rs,n out @rd,rs
  18578. ld rd,rs(imm16) ldm addr,rs,n out imm16,rs
  18579. ld rd,rs(rx) ldm rd,@rs,n outb @rd,rbs
  18580. lda rd,addr ldm rd,addr(rs),n outb imm16,rbs
  18581. lda rd,addr(rs) ldm rd,addr,n outd @rd,@rs,ra
  18582. lda rd,rs(imm16) ldps @rs outdb @rd,@rs,rba
  18583. lda rd,rs(rx) ldps addr outib @rd,@rs,ra
  18584. ldar rd,disp16 ldps addr(rs) outibr @rd,@rs,ra
  18585. ldb @rd,imm8 ldr disp16,rs pop @rd,@rs
  18586. ldb @rd,rbs ldr rd,disp16 pop addr(rd),@rs
  18587. ldb addr(rd),imm8 ldrb disp16,rbs pop addr,@rs
  18588. ldb addr(rd),rbs ldrb rbd,disp16 pop rd,@rs
  18589. ldb addr,imm8 ldrl disp16,rrs popl @rd,@rs
  18590. ldb addr,rbs ldrl rrd,disp16 popl addr(rd),@rs
  18591. ldb rbd,@rs mbit popl addr,@rs
  18592. ldb rbd,addr mreq rd popl rrd,@rs
  18593. ldb rbd,addr(rs) mres push @rd,@rs
  18594. ldb rbd,imm8 mset push @rd,addr
  18595. ldb rbd,rbs mult rrd,@rs push @rd,addr(rs)
  18596. ldb rbd,rs(imm16) mult rrd,addr push @rd,imm16
  18597. push @rd,rs set addr,imm4 subl rrd,imm32
  18598. pushl @rd,@rs set rd,imm4 subl rrd,rrs
  18599. pushl @rd,addr set rd,rs tcc cc,rd
  18600. pushl @rd,addr(rs) setb @rd,imm4 tccb cc,rbd
  18601. pushl @rd,rrs setb addr(rd),imm4 test @rd
  18602. res @rd,imm4 setb addr,imm4 test addr
  18603. res addr(rd),imm4 setb rbd,imm4 test addr(rd)
  18604. res addr,imm4 setb rbd,rs test rd
  18605. res rd,imm4 setflg imm4 testb @rd
  18606. res rd,rs sinb rbd,imm16 testb addr
  18607. resb @rd,imm4 sinb rd,imm16 testb addr(rd)
  18608. resb addr(rd),imm4 sind @rd,@rs,ra testb rbd
  18609. resb addr,imm4 sindb @rd,@rs,rba testl @rd
  18610. resb rbd,imm4 sinib @rd,@rs,ra testl addr
  18611. resb rbd,rs sinibr @rd,@rs,ra testl addr(rd)
  18612. resflg imm4 sla rd,imm8 testl rrd
  18613. ret cc slab rbd,imm8 trdb @rd,@rs,rba
  18614. rl rd,imm1or2 slal rrd,imm8 trdrb @rd,@rs,rba
  18615. rlb rbd,imm1or2 sll rd,imm8 trib @rd,@rs,rbr
  18616. rlc rd,imm1or2 sllb rbd,imm8 trirb @rd,@rs,rbr
  18617. rlcb rbd,imm1or2 slll rrd,imm8 trtdrb @ra,@rb,rbr
  18618. rldb rbb,rba sout imm16,rs trtib @ra,@rb,rr
  18619. rr rd,imm1or2 soutb imm16,rbs trtirb @ra,@rb,rbr
  18620. rrb rbd,imm1or2 soutd @rd,@rs,ra trtrb @ra,@rb,rbr
  18621. rrc rd,imm1or2 soutdb @rd,@rs,rba tset @rd
  18622. rrcb rbd,imm1or2 soutib @rd,@rs,ra tset addr
  18623. rrdb rbb,rba soutibr @rd,@rs,ra tset addr(rd)
  18624. rsvd36 sra rd,imm8 tset rd
  18625. rsvd38 srab rbd,imm8 tsetb @rd
  18626. rsvd78 sral rrd,imm8 tsetb addr
  18627. rsvd7e srl rd,imm8 tsetb addr(rd)
  18628. rsvd9d srlb rbd,imm8 tsetb rbd
  18629. rsvd9f srll rrd,imm8 xor rd,@rs
  18630. rsvdb9 sub rd,@rs xor rd,addr
  18631. rsvdbf sub rd,addr xor rd,addr(rs)
  18632. sbc rd,rs sub rd,addr(rs) xor rd,imm16
  18633. sbcb rbd,rbs sub rd,imm16 xor rd,rs
  18634. sc imm8 sub rd,rs xorb rbd,@rs
  18635. sda rd,rs subb rbd,@rs xorb rbd,addr
  18636. sdab rbd,rs subb rbd,addr xorb rbd,addr(rs)
  18637. sdal rrd,rs subb rbd,addr(rs) xorb rbd,imm8
  18638. sdl rd,rs subb rbd,imm8 xorb rbd,rbs
  18639. sdlb rbd,rs subb rbd,rbs xorb rbd,rbs
  18640. sdll rrd,rs subl rrd,@rs
  18641. set @rd,imm4 subl rrd,addr
  18642. set addr(rd),imm4 subl rrd,addr(rs)
  18643. 
  18644. File: as.info, Node: Reporting Bugs, Next: Acknowledgements, Prev: Machine Dependencies, Up: Top
  18645. 10 Reporting Bugs
  18646. *****************
  18647. Your bug reports play an essential role in making 'as' reliable.
  18648. Reporting a bug may help you by bringing a solution to your problem,
  18649. or it may not. But in any case the principal function of a bug report
  18650. is to help the entire community by making the next version of 'as' work
  18651. better. Bug reports are your contribution to the maintenance of 'as'.
  18652. In order for a bug report to serve its purpose, you must include the
  18653. information that enables us to fix the bug.
  18654. * Menu:
  18655. * Bug Criteria:: Have you found a bug?
  18656. * Bug Reporting:: How to report bugs
  18657. 
  18658. File: as.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  18659. 10.1 Have You Found a Bug?
  18660. ==========================
  18661. If you are not sure whether you have found a bug, here are some
  18662. guidelines:
  18663. * If the assembler gets a fatal signal, for any input whatever, that
  18664. is a 'as' bug. Reliable assemblers never crash.
  18665. * If 'as' produces an error message for valid input, that is a bug.
  18666. * If 'as' does not produce an error message for invalid input, that
  18667. is a bug. However, you should note that your idea of "invalid
  18668. input" might be our idea of "an extension" or "support for
  18669. traditional practice".
  18670. * If you are an experienced user of assemblers, your suggestions for
  18671. improvement of 'as' are welcome in any case.
  18672. 
  18673. File: as.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  18674. 10.2 How to Report Bugs
  18675. =======================
  18676. A number of companies and individuals offer support for GNU products.
  18677. If you obtained 'as' from a support organization, we recommend you
  18678. contact that organization first.
  18679. You can find contact information for many support companies and
  18680. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  18681. In any event, we also recommend that you send bug reports for 'as' to
  18682. <https://github.com/sifive/freedom-tools/issues>.
  18683. The fundamental principle of reporting bugs usefully is this: *report
  18684. all the facts*. If you are not sure whether to state a fact or leave it
  18685. out, state it!
  18686. Often people omit facts because they think they know what causes the
  18687. problem and assume that some details do not matter. Thus, you might
  18688. assume that the name of a symbol you use in an example does not matter.
  18689. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  18690. a stray memory reference which happens to fetch from the location where
  18691. that name is stored in memory; perhaps, if the name were different, the
  18692. contents of that location would fool the assembler into doing the right
  18693. thing despite the bug. Play it safe and give a specific, complete
  18694. example. That is the easiest thing for you to do, and the most helpful.
  18695. Keep in mind that the purpose of a bug report is to enable us to fix
  18696. the bug if it is new to us. Therefore, always write your bug reports on
  18697. the assumption that the bug has not been reported previously.
  18698. Sometimes people give a few sketchy facts and ask, "Does this ring a
  18699. bell?" This cannot help us fix a bug, so it is basically useless. We
  18700. respond by asking for enough details to enable us to investigate. You
  18701. might as well expedite matters by sending them to begin with.
  18702. To enable us to fix the bug, you should include all these things:
  18703. * The version of 'as'. 'as' announces it if you start it with the
  18704. '--version' argument.
  18705. Without this, we will not know whether there is any point in
  18706. looking for the bug in the current version of 'as'.
  18707. * Any patches you may have applied to the 'as' source.
  18708. * The type of machine you are using, and the operating system name
  18709. and version number.
  18710. * What compiler (and its version) was used to compile 'as'--e.g.
  18711. "'gcc-2.7'".
  18712. * The command arguments you gave the assembler to assemble your
  18713. example and observe the bug. To guarantee you will not omit
  18714. something important, list them all. A copy of the Makefile (or the
  18715. output from make) is sufficient.
  18716. If we were to try to guess the arguments, we would probably guess
  18717. wrong and then we might not encounter the bug.
  18718. * A complete input file that will reproduce the bug. If the bug is
  18719. observed when the assembler is invoked via a compiler, send the
  18720. assembler source, not the high level language source. Most
  18721. compilers will produce the assembler source when run with the '-S'
  18722. option. If you are using 'gcc', use the options '-v --save-temps';
  18723. this will save the assembler source in a file with an extension of
  18724. '.s', and also show you exactly how 'as' is being run.
  18725. * A description of what behavior you observe that you believe is
  18726. incorrect. For example, "It gets a fatal signal."
  18727. Of course, if the bug is that 'as' gets a fatal signal, then we
  18728. will certainly notice it. But if the bug is incorrect output, we
  18729. might not notice unless it is glaringly wrong. You might as well
  18730. not give us a chance to make a mistake.
  18731. Even if the problem you experience is a fatal signal, you should
  18732. still say so explicitly. Suppose something strange is going on,
  18733. such as, your copy of 'as' is out of sync, or you have encountered
  18734. a bug in the C library on your system. (This has happened!) Your
  18735. copy might crash and ours would not. If you told us to expect a
  18736. crash, then when ours fails to crash, we would know that the bug
  18737. was not happening for us. If you had not told us to expect a
  18738. crash, then we would not be able to draw any conclusion from our
  18739. observations.
  18740. * If you wish to suggest changes to the 'as' source, send us context
  18741. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  18742. Always send diffs from the old file to the new file. If you even
  18743. discuss something in the 'as' source, refer to it by context, not
  18744. by line number.
  18745. The line numbers in our development sources will not match those in
  18746. your sources. Your line numbers would convey no useful information
  18747. to us.
  18748. Here are some things that are not necessary:
  18749. * A description of the envelope of the bug.
  18750. Often people who encounter a bug spend a lot of time investigating
  18751. which changes to the input file will make the bug go away and which
  18752. changes will not affect it.
  18753. This is often time consuming and not very useful, because the way
  18754. we will find the bug is by running a single example under the
  18755. debugger with breakpoints, not by pure deduction from a series of
  18756. examples. We recommend that you save your time for something else.
  18757. Of course, if you can find a simpler example to report _instead_ of
  18758. the original one, that is a convenience for us. Errors in the
  18759. output will be easier to spot, running under the debugger will take
  18760. less time, and so on.
  18761. However, simplification is not vital; if you do not want to do
  18762. this, report the bug anyway and send us the entire test case you
  18763. used.
  18764. * A patch for the bug.
  18765. A patch for the bug does help us if it is a good one. But do not
  18766. omit the necessary information, such as the test case, on the
  18767. assumption that a patch is all we need. We might see problems with
  18768. your patch and decide to fix the problem another way, or we might
  18769. not understand it at all.
  18770. Sometimes with a program as complicated as 'as' it is very hard to
  18771. construct an example that will make the program follow a certain
  18772. path through the code. If you do not send us the example, we will
  18773. not be able to construct one, so we will not be able to verify that
  18774. the bug is fixed.
  18775. And if we cannot understand what bug you are trying to fix, or why
  18776. your patch should be an improvement, we will not install it. A
  18777. test case will help us to understand.
  18778. * A guess about what the bug is or what it depends on.
  18779. Such guesses are usually wrong. Even we cannot guess right about
  18780. such things without first using the debugger to find the facts.
  18781. 
  18782. File: as.info, Node: Acknowledgements, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
  18783. 11 Acknowledgements
  18784. *******************
  18785. If you have contributed to GAS and your name isn't listed here, it is
  18786. not meant as a slight. We just don't know about it. Send mail to the
  18787. maintainer, and we'll correct the situation. Currently the maintainer
  18788. is Nick Clifton (email address 'nickc@redhat.com').
  18789. Dean Elsner wrote the original GNU assembler for the VAX.(1)
  18790. Jay Fenlason maintained GAS for a while, adding support for
  18791. GDB-specific debug information and the 68k series machines, most of the
  18792. preprocessing pass, and extensive changes in 'messages.c',
  18793. 'input-file.c', 'write.c'.
  18794. K. Richard Pixley maintained GAS for a while, adding various
  18795. enhancements and many bug fixes, including merging support for several
  18796. processors, breaking GAS up to handle multiple object file format back
  18797. ends (including heavy rewrite, testing, an integration of the coff and
  18798. b.out back ends), adding configuration including heavy testing and
  18799. verification of cross assemblers and file splits and renaming, converted
  18800. GAS to strictly ANSI C including full prototypes, added support for
  18801. m680[34]0 and cpu32, did considerable work on i960 including a COFF port
  18802. (including considerable amounts of reverse engineering), a SPARC opcode
  18803. file rewrite, DECstation, rs6000, and hp300hpux host ports, updated
  18804. "know" assertions and made them work, much other reorganization,
  18805. cleanup, and lint.
  18806. Ken Raeburn wrote the high-level BFD interface code to replace most
  18807. of the code in format-specific I/O modules.
  18808. The original VMS support was contributed by David L. Kashtan. Eric
  18809. Youngdale has done much work with it since.
  18810. The Intel 80386 machine description was written by Eliot Dresselhaus.
  18811. Minh Tran-Le at IntelliCorp contributed some AIX 386 support.
  18812. The Motorola 88k machine description was contributed by Devon Bowen
  18813. of Buffalo University and Torbjorn Granlund of the Swedish Institute of
  18814. Computer Science.
  18815. Keith Knowles at the Open Software Foundation wrote the original MIPS
  18816. back end ('tc-mips.c', 'tc-mips.h'), and contributed Rose format support
  18817. (which hasn't been merged in yet). Ralph Campbell worked with the MIPS
  18818. code to support a.out format.
  18819. Support for the Zilog Z8k and Renesas H8/300 processors (tc-z8k,
  18820. tc-h8300), and IEEE 695 object file format (obj-ieee), was written by
  18821. Steve Chamberlain of Cygnus Support. Steve also modified the COFF back
  18822. end to use BFD for some low-level operations, for use with the H8/300
  18823. and AMD 29k targets.
  18824. John Gilmore built the AMD 29000 support, added '.include' support,
  18825. and simplified the configuration of which versions accept which
  18826. directives. He updated the 68k machine description so that Motorola's
  18827. opcodes always produced fixed-size instructions (e.g., 'jsr'), while
  18828. synthetic instructions remained shrinkable ('jbsr'). John fixed many
  18829. bugs, including true tested cross-compilation support, and one bug in
  18830. relaxation that took a week and required the proverbial one-bit fix.
  18831. Ian Lance Taylor of Cygnus Support merged the Motorola and MIT syntax
  18832. for the 68k, completed support for some COFF targets (68k, i386 SVR3,
  18833. and SCO Unix), added support for MIPS ECOFF and ELF targets, wrote the
  18834. initial RS/6000 and PowerPC assembler, and made a few other minor
  18835. patches.
  18836. Steve Chamberlain made GAS able to generate listings.
  18837. Hewlett-Packard contributed support for the HP9000/300.
  18838. Jeff Law wrote GAS and BFD support for the native HPPA object format
  18839. (SOM) along with a fairly extensive HPPA testsuite (for both SOM and ELF
  18840. object formats). This work was supported by both the Center for
  18841. Software Science at the University of Utah and Cygnus Support.
  18842. Support for ELF format files has been worked on by Mark Eichin of
  18843. Cygnus Support (original, incomplete implementation for SPARC), Pete
  18844. Hoogenboom and Jeff Law at the University of Utah (HPPA mainly), Michael
  18845. Meissner of the Open Software Foundation (i386 mainly), and Ken Raeburn
  18846. of Cygnus Support (sparc, and some initial 64-bit support).
  18847. Linas Vepstas added GAS support for the ESA/390 "IBM 370"
  18848. architecture.
  18849. Richard Henderson rewrote the Alpha assembler. Klaus Kaempf wrote
  18850. GAS and BFD support for openVMS/Alpha.
  18851. Timothy Wall, Michael Hayes, and Greg Smart contributed to the
  18852. various tic* flavors.
  18853. David Heine, Sterling Augustine, Bob Wilson and John Ruttenberg from
  18854. Tensilica, Inc. added support for Xtensa processors.
  18855. Several engineers at Cygnus Support have also provided many small bug
  18856. fixes and configuration enhancements.
  18857. Jon Beniston added support for the Lattice Mico32 architecture.
  18858. Many others have contributed large or small bugfixes and
  18859. enhancements. If you have contributed significant work and are not
  18860. mentioned on this list, and want to be, let us know. Some of the
  18861. history has been lost; we are not intentionally leaving anyone out.
  18862. ---------- Footnotes ----------
  18863. (1) Any more details?
  18864. 
  18865. File: as.info, Node: GNU Free Documentation License, Next: AS Index, Prev: Acknowledgements, Up: Top
  18866. Appendix A GNU Free Documentation License
  18867. *****************************************
  18868. Version 1.3, 3 November 2008
  18869. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  18870. <http://fsf.org/>
  18871. Everyone is permitted to copy and distribute verbatim copies
  18872. of this license document, but changing it is not allowed.
  18873. 0. PREAMBLE
  18874. The purpose of this License is to make a manual, textbook, or other
  18875. functional and useful document "free" in the sense of freedom: to
  18876. assure everyone the effective freedom to copy and redistribute it,
  18877. with or without modifying it, either commercially or
  18878. noncommercially. Secondarily, this License preserves for the
  18879. author and publisher a way to get credit for their work, while not
  18880. being considered responsible for modifications made by others.
  18881. This License is a kind of "copyleft", which means that derivative
  18882. works of the document must themselves be free in the same sense.
  18883. It complements the GNU General Public License, which is a copyleft
  18884. license designed for free software.
  18885. We have designed this License in order to use it for manuals for
  18886. free software, because free software needs free documentation: a
  18887. free program should come with manuals providing the same freedoms
  18888. that the software does. But this License is not limited to
  18889. software manuals; it can be used for any textual work, regardless
  18890. of subject matter or whether it is published as a printed book. We
  18891. recommend this License principally for works whose purpose is
  18892. instruction or reference.
  18893. 1. APPLICABILITY AND DEFINITIONS
  18894. This License applies to any manual or other work, in any medium,
  18895. that contains a notice placed by the copyright holder saying it can
  18896. be distributed under the terms of this License. Such a notice
  18897. grants a world-wide, royalty-free license, unlimited in duration,
  18898. to use that work under the conditions stated herein. The
  18899. "Document", below, refers to any such manual or work. Any member
  18900. of the public is a licensee, and is addressed as "you". You accept
  18901. the license if you copy, modify or distribute the work in a way
  18902. requiring permission under copyright law.
  18903. A "Modified Version" of the Document means any work containing the
  18904. Document or a portion of it, either copied verbatim, or with
  18905. modifications and/or translated into another language.
  18906. A "Secondary Section" is a named appendix or a front-matter section
  18907. of the Document that deals exclusively with the relationship of the
  18908. publishers or authors of the Document to the Document's overall
  18909. subject (or to related matters) and contains nothing that could
  18910. fall directly within that overall subject. (Thus, if the Document
  18911. is in part a textbook of mathematics, a Secondary Section may not
  18912. explain any mathematics.) The relationship could be a matter of
  18913. historical connection with the subject or with related matters, or
  18914. of legal, commercial, philosophical, ethical or political position
  18915. regarding them.
  18916. The "Invariant Sections" are certain Secondary Sections whose
  18917. titles are designated, as being those of Invariant Sections, in the
  18918. notice that says that the Document is released under this License.
  18919. If a section does not fit the above definition of Secondary then it
  18920. is not allowed to be designated as Invariant. The Document may
  18921. contain zero Invariant Sections. If the Document does not identify
  18922. any Invariant Sections then there are none.
  18923. The "Cover Texts" are certain short passages of text that are
  18924. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  18925. that says that the Document is released under this License. A
  18926. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  18927. be at most 25 words.
  18928. A "Transparent" copy of the Document means a machine-readable copy,
  18929. represented in a format whose specification is available to the
  18930. general public, that is suitable for revising the document
  18931. straightforwardly with generic text editors or (for images composed
  18932. of pixels) generic paint programs or (for drawings) some widely
  18933. available drawing editor, and that is suitable for input to text
  18934. formatters or for automatic translation to a variety of formats
  18935. suitable for input to text formatters. A copy made in an otherwise
  18936. Transparent file format whose markup, or absence of markup, has
  18937. been arranged to thwart or discourage subsequent modification by
  18938. readers is not Transparent. An image format is not Transparent if
  18939. used for any substantial amount of text. A copy that is not
  18940. "Transparent" is called "Opaque".
  18941. Examples of suitable formats for Transparent copies include plain
  18942. ASCII without markup, Texinfo input format, LaTeX input format,
  18943. SGML or XML using a publicly available DTD, and standard-conforming
  18944. simple HTML, PostScript or PDF designed for human modification.
  18945. Examples of transparent image formats include PNG, XCF and JPG.
  18946. Opaque formats include proprietary formats that can be read and
  18947. edited only by proprietary word processors, SGML or XML for which
  18948. the DTD and/or processing tools are not generally available, and
  18949. the machine-generated HTML, PostScript or PDF produced by some word
  18950. processors for output purposes only.
  18951. The "Title Page" means, for a printed book, the title page itself,
  18952. plus such following pages as are needed to hold, legibly, the
  18953. material this License requires to appear in the title page. For
  18954. works in formats which do not have any title page as such, "Title
  18955. Page" means the text near the most prominent appearance of the
  18956. work's title, preceding the beginning of the body of the text.
  18957. The "publisher" means any person or entity that distributes copies
  18958. of the Document to the public.
  18959. A section "Entitled XYZ" means a named subunit of the Document
  18960. whose title either is precisely XYZ or contains XYZ in parentheses
  18961. following text that translates XYZ in another language. (Here XYZ
  18962. stands for a specific section name mentioned below, such as
  18963. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  18964. To "Preserve the Title" of such a section when you modify the
  18965. Document means that it remains a section "Entitled XYZ" according
  18966. to this definition.
  18967. The Document may include Warranty Disclaimers next to the notice
  18968. which states that this License applies to the Document. These
  18969. Warranty Disclaimers are considered to be included by reference in
  18970. this License, but only as regards disclaiming warranties: any other
  18971. implication that these Warranty Disclaimers may have is void and
  18972. has no effect on the meaning of this License.
  18973. 2. VERBATIM COPYING
  18974. You may copy and distribute the Document in any medium, either
  18975. commercially or noncommercially, provided that this License, the
  18976. copyright notices, and the license notice saying this License
  18977. applies to the Document are reproduced in all copies, and that you
  18978. add no other conditions whatsoever to those of this License. You
  18979. may not use technical measures to obstruct or control the reading
  18980. or further copying of the copies you make or distribute. However,
  18981. you may accept compensation in exchange for copies. If you
  18982. distribute a large enough number of copies you must also follow the
  18983. conditions in section 3.
  18984. You may also lend copies, under the same conditions stated above,
  18985. and you may publicly display copies.
  18986. 3. COPYING IN QUANTITY
  18987. If you publish printed copies (or copies in media that commonly
  18988. have printed covers) of the Document, numbering more than 100, and
  18989. the Document's license notice requires Cover Texts, you must
  18990. enclose the copies in covers that carry, clearly and legibly, all
  18991. these Cover Texts: Front-Cover Texts on the front cover, and
  18992. Back-Cover Texts on the back cover. Both covers must also clearly
  18993. and legibly identify you as the publisher of these copies. The
  18994. front cover must present the full title with all words of the title
  18995. equally prominent and visible. You may add other material on the
  18996. covers in addition. Copying with changes limited to the covers, as
  18997. long as they preserve the title of the Document and satisfy these
  18998. conditions, can be treated as verbatim copying in other respects.
  18999. If the required texts for either cover are too voluminous to fit
  19000. legibly, you should put the first ones listed (as many as fit
  19001. reasonably) on the actual cover, and continue the rest onto
  19002. adjacent pages.
  19003. If you publish or distribute Opaque copies of the Document
  19004. numbering more than 100, you must either include a machine-readable
  19005. Transparent copy along with each Opaque copy, or state in or with
  19006. each Opaque copy a computer-network location from which the general
  19007. network-using public has access to download using public-standard
  19008. network protocols a complete Transparent copy of the Document, free
  19009. of added material. If you use the latter option, you must take
  19010. reasonably prudent steps, when you begin distribution of Opaque
  19011. copies in quantity, to ensure that this Transparent copy will
  19012. remain thus accessible at the stated location until at least one
  19013. year after the last time you distribute an Opaque copy (directly or
  19014. through your agents or retailers) of that edition to the public.
  19015. It is requested, but not required, that you contact the authors of
  19016. the Document well before redistributing any large number of copies,
  19017. to give them a chance to provide you with an updated version of the
  19018. Document.
  19019. 4. MODIFICATIONS
  19020. You may copy and distribute a Modified Version of the Document
  19021. under the conditions of sections 2 and 3 above, provided that you
  19022. release the Modified Version under precisely this License, with the
  19023. Modified Version filling the role of the Document, thus licensing
  19024. distribution and modification of the Modified Version to whoever
  19025. possesses a copy of it. In addition, you must do these things in
  19026. the Modified Version:
  19027. A. Use in the Title Page (and on the covers, if any) a title
  19028. distinct from that of the Document, and from those of previous
  19029. versions (which should, if there were any, be listed in the
  19030. History section of the Document). You may use the same title
  19031. as a previous version if the original publisher of that
  19032. version gives permission.
  19033. B. List on the Title Page, as authors, one or more persons or
  19034. entities responsible for authorship of the modifications in
  19035. the Modified Version, together with at least five of the
  19036. principal authors of the Document (all of its principal
  19037. authors, if it has fewer than five), unless they release you
  19038. from this requirement.
  19039. C. State on the Title page the name of the publisher of the
  19040. Modified Version, as the publisher.
  19041. D. Preserve all the copyright notices of the Document.
  19042. E. Add an appropriate copyright notice for your modifications
  19043. adjacent to the other copyright notices.
  19044. F. Include, immediately after the copyright notices, a license
  19045. notice giving the public permission to use the Modified
  19046. Version under the terms of this License, in the form shown in
  19047. the Addendum below.
  19048. G. Preserve in that license notice the full lists of Invariant
  19049. Sections and required Cover Texts given in the Document's
  19050. license notice.
  19051. H. Include an unaltered copy of this License.
  19052. I. Preserve the section Entitled "History", Preserve its Title,
  19053. and add to it an item stating at least the title, year, new
  19054. authors, and publisher of the Modified Version as given on the
  19055. Title Page. If there is no section Entitled "History" in the
  19056. Document, create one stating the title, year, authors, and
  19057. publisher of the Document as given on its Title Page, then add
  19058. an item describing the Modified Version as stated in the
  19059. previous sentence.
  19060. J. Preserve the network location, if any, given in the Document
  19061. for public access to a Transparent copy of the Document, and
  19062. likewise the network locations given in the Document for
  19063. previous versions it was based on. These may be placed in the
  19064. "History" section. You may omit a network location for a work
  19065. that was published at least four years before the Document
  19066. itself, or if the original publisher of the version it refers
  19067. to gives permission.
  19068. K. For any section Entitled "Acknowledgements" or "Dedications",
  19069. Preserve the Title of the section, and preserve in the section
  19070. all the substance and tone of each of the contributor
  19071. acknowledgements and/or dedications given therein.
  19072. L. Preserve all the Invariant Sections of the Document, unaltered
  19073. in their text and in their titles. Section numbers or the
  19074. equivalent are not considered part of the section titles.
  19075. M. Delete any section Entitled "Endorsements". Such a section
  19076. may not be included in the Modified Version.
  19077. N. Do not retitle any existing section to be Entitled
  19078. "Endorsements" or to conflict in title with any Invariant
  19079. Section.
  19080. O. Preserve any Warranty Disclaimers.
  19081. If the Modified Version includes new front-matter sections or
  19082. appendices that qualify as Secondary Sections and contain no
  19083. material copied from the Document, you may at your option designate
  19084. some or all of these sections as invariant. To do this, add their
  19085. titles to the list of Invariant Sections in the Modified Version's
  19086. license notice. These titles must be distinct from any other
  19087. section titles.
  19088. You may add a section Entitled "Endorsements", provided it contains
  19089. nothing but endorsements of your Modified Version by various
  19090. parties--for example, statements of peer review or that the text
  19091. has been approved by an organization as the authoritative
  19092. definition of a standard.
  19093. You may add a passage of up to five words as a Front-Cover Text,
  19094. and a passage of up to 25 words as a Back-Cover Text, to the end of
  19095. the list of Cover Texts in the Modified Version. Only one passage
  19096. of Front-Cover Text and one of Back-Cover Text may be added by (or
  19097. through arrangements made by) any one entity. If the Document
  19098. already includes a cover text for the same cover, previously added
  19099. by you or by arrangement made by the same entity you are acting on
  19100. behalf of, you may not add another; but you may replace the old
  19101. one, on explicit permission from the previous publisher that added
  19102. the old one.
  19103. The author(s) and publisher(s) of the Document do not by this
  19104. License give permission to use their names for publicity for or to
  19105. assert or imply endorsement of any Modified Version.
  19106. 5. COMBINING DOCUMENTS
  19107. You may combine the Document with other documents released under
  19108. this License, under the terms defined in section 4 above for
  19109. modified versions, provided that you include in the combination all
  19110. of the Invariant Sections of all of the original documents,
  19111. unmodified, and list them all as Invariant Sections of your
  19112. combined work in its license notice, and that you preserve all
  19113. their Warranty Disclaimers.
  19114. The combined work need only contain one copy of this License, and
  19115. multiple identical Invariant Sections may be replaced with a single
  19116. copy. If there are multiple Invariant Sections with the same name
  19117. but different contents, make the title of each such section unique
  19118. by adding at the end of it, in parentheses, the name of the
  19119. original author or publisher of that section if known, or else a
  19120. unique number. Make the same adjustment to the section titles in
  19121. the list of Invariant Sections in the license notice of the
  19122. combined work.
  19123. In the combination, you must combine any sections Entitled
  19124. "History" in the various original documents, forming one section
  19125. Entitled "History"; likewise combine any sections Entitled
  19126. "Acknowledgements", and any sections Entitled "Dedications". You
  19127. must delete all sections Entitled "Endorsements."
  19128. 6. COLLECTIONS OF DOCUMENTS
  19129. You may make a collection consisting of the Document and other
  19130. documents released under this License, and replace the individual
  19131. copies of this License in the various documents with a single copy
  19132. that is included in the collection, provided that you follow the
  19133. rules of this License for verbatim copying of each of the documents
  19134. in all other respects.
  19135. You may extract a single document from such a collection, and
  19136. distribute it individually under this License, provided you insert
  19137. a copy of this License into the extracted document, and follow this
  19138. License in all other respects regarding verbatim copying of that
  19139. document.
  19140. 7. AGGREGATION WITH INDEPENDENT WORKS
  19141. A compilation of the Document or its derivatives with other
  19142. separate and independent documents or works, in or on a volume of a
  19143. storage or distribution medium, is called an "aggregate" if the
  19144. copyright resulting from the compilation is not used to limit the
  19145. legal rights of the compilation's users beyond what the individual
  19146. works permit. When the Document is included in an aggregate, this
  19147. License does not apply to the other works in the aggregate which
  19148. are not themselves derivative works of the Document.
  19149. If the Cover Text requirement of section 3 is applicable to these
  19150. copies of the Document, then if the Document is less than one half
  19151. of the entire aggregate, the Document's Cover Texts may be placed
  19152. on covers that bracket the Document within the aggregate, or the
  19153. electronic equivalent of covers if the Document is in electronic
  19154. form. Otherwise they must appear on printed covers that bracket
  19155. the whole aggregate.
  19156. 8. TRANSLATION
  19157. Translation is considered a kind of modification, so you may
  19158. distribute translations of the Document under the terms of section
  19159. 4. Replacing Invariant Sections with translations requires special
  19160. permission from their copyright holders, but you may include
  19161. translations of some or all Invariant Sections in addition to the
  19162. original versions of these Invariant Sections. You may include a
  19163. translation of this License, and all the license notices in the
  19164. Document, and any Warranty Disclaimers, provided that you also
  19165. include the original English version of this License and the
  19166. original versions of those notices and disclaimers. In case of a
  19167. disagreement between the translation and the original version of
  19168. this License or a notice or disclaimer, the original version will
  19169. prevail.
  19170. If a section in the Document is Entitled "Acknowledgements",
  19171. "Dedications", or "History", the requirement (section 4) to
  19172. Preserve its Title (section 1) will typically require changing the
  19173. actual title.
  19174. 9. TERMINATION
  19175. You may not copy, modify, sublicense, or distribute the Document
  19176. except as expressly provided under this License. Any attempt
  19177. otherwise to copy, modify, sublicense, or distribute it is void,
  19178. and will automatically terminate your rights under this License.
  19179. However, if you cease all violation of this License, then your
  19180. license from a particular copyright holder is reinstated (a)
  19181. provisionally, unless and until the copyright holder explicitly and
  19182. finally terminates your license, and (b) permanently, if the
  19183. copyright holder fails to notify you of the violation by some
  19184. reasonable means prior to 60 days after the cessation.
  19185. Moreover, your license from a particular copyright holder is
  19186. reinstated permanently if the copyright holder notifies you of the
  19187. violation by some reasonable means, this is the first time you have
  19188. received notice of violation of this License (for any work) from
  19189. that copyright holder, and you cure the violation prior to 30 days
  19190. after your receipt of the notice.
  19191. Termination of your rights under this section does not terminate
  19192. the licenses of parties who have received copies or rights from you
  19193. under this License. If your rights have been terminated and not
  19194. permanently reinstated, receipt of a copy of some or all of the
  19195. same material does not give you any rights to use it.
  19196. 10. FUTURE REVISIONS OF THIS LICENSE
  19197. The Free Software Foundation may publish new, revised versions of
  19198. the GNU Free Documentation License from time to time. Such new
  19199. versions will be similar in spirit to the present version, but may
  19200. differ in detail to address new problems or concerns. See
  19201. <http://www.gnu.org/copyleft/>.
  19202. Each version of the License is given a distinguishing version
  19203. number. If the Document specifies that a particular numbered
  19204. version of this License "or any later version" applies to it, you
  19205. have the option of following the terms and conditions either of
  19206. that specified version or of any later version that has been
  19207. published (not as a draft) by the Free Software Foundation. If the
  19208. Document does not specify a version number of this License, you may
  19209. choose any version ever published (not as a draft) by the Free
  19210. Software Foundation. If the Document specifies that a proxy can
  19211. decide which future versions of this License can be used, that
  19212. proxy's public statement of acceptance of a version permanently
  19213. authorizes you to choose that version for the Document.
  19214. 11. RELICENSING
  19215. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  19216. World Wide Web server that publishes copyrightable works and also
  19217. provides prominent facilities for anybody to edit those works. A
  19218. public wiki that anybody can edit is an example of such a server.
  19219. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  19220. site means any set of copyrightable works thus published on the MMC
  19221. site.
  19222. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  19223. license published by Creative Commons Corporation, a not-for-profit
  19224. corporation with a principal place of business in San Francisco,
  19225. California, as well as future copyleft versions of that license
  19226. published by that same organization.
  19227. "Incorporate" means to publish or republish a Document, in whole or
  19228. in part, as part of another Document.
  19229. An MMC is "eligible for relicensing" if it is licensed under this
  19230. License, and if all works that were first published under this
  19231. License somewhere other than this MMC, and subsequently
  19232. incorporated in whole or in part into the MMC, (1) had no cover
  19233. texts or invariant sections, and (2) were thus incorporated prior
  19234. to November 1, 2008.
  19235. The operator of an MMC Site may republish an MMC contained in the
  19236. site under CC-BY-SA on the same site at any time before August 1,
  19237. 2009, provided the MMC is eligible for relicensing.
  19238. ADDENDUM: How to use this License for your documents
  19239. ====================================================
  19240. To use this License in a document you have written, include a copy of
  19241. the License in the document and put the following copyright and license
  19242. notices just after the title page:
  19243. Copyright (C) YEAR YOUR NAME.
  19244. Permission is granted to copy, distribute and/or modify this document
  19245. under the terms of the GNU Free Documentation License, Version 1.3
  19246. or any later version published by the Free Software Foundation;
  19247. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  19248. Texts. A copy of the license is included in the section entitled ``GNU
  19249. Free Documentation License''.
  19250. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  19251. Texts, replace the "with...Texts." line with this:
  19252. with the Invariant Sections being LIST THEIR TITLES, with
  19253. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  19254. being LIST.
  19255. If you have Invariant Sections without Cover Texts, or some other
  19256. combination of the three, merge those two alternatives to suit the
  19257. situation.
  19258. If your document contains nontrivial examples of program code, we
  19259. recommend releasing these examples in parallel under your choice of free
  19260. software license, such as the GNU General Public License, to permit
  19261. their use in free software.
  19262. 
  19263. File: as.info, Node: AS Index, Prev: GNU Free Documentation License, Up: Top
  19264. AS Index
  19265. ********
  19266. �[index�]
  19267. * Menu:
  19268. * \" (doublequote character): Strings. (line 43)
  19269. * \b (backspace character): Strings. (line 15)
  19270. * \DDD (octal character code): Strings. (line 30)
  19271. * \f (formfeed character): Strings. (line 18)
  19272. * \n (newline character): Strings. (line 21)
  19273. * \r (carriage return character): Strings. (line 24)
  19274. * \t (tab): Strings. (line 27)
  19275. * \XD... (hex character code): Strings. (line 36)
  19276. * \\ (\ character): Strings. (line 40)
  19277. * #: Comments. (line 33)
  19278. * #APP: Preprocessing. (line 26)
  19279. * #NO_APP: Preprocessing. (line 26)
  19280. * $ in symbol names: D10V-Chars. (line 46)
  19281. * $ in symbol names <1>: D30V-Chars. (line 70)
  19282. * $ in symbol names <2>: Meta-Chars. (line 10)
  19283. * $ in symbol names <3>: SH-Chars. (line 15)
  19284. * $a: ARM Mapping Symbols.
  19285. (line 9)
  19286. * $acos math builtin, TIC54X: TIC54X-Builtins. (line 10)
  19287. * $asin math builtin, TIC54X: TIC54X-Builtins. (line 13)
  19288. * $atan math builtin, TIC54X: TIC54X-Builtins. (line 16)
  19289. * $atan2 math builtin, TIC54X: TIC54X-Builtins. (line 19)
  19290. * $ceil math builtin, TIC54X: TIC54X-Builtins. (line 22)
  19291. * $cos math builtin, TIC54X: TIC54X-Builtins. (line 28)
  19292. * $cosh math builtin, TIC54X: TIC54X-Builtins. (line 25)
  19293. * $cvf math builtin, TIC54X: TIC54X-Builtins. (line 31)
  19294. * $cvi math builtin, TIC54X: TIC54X-Builtins. (line 34)
  19295. * $d: AArch64 Mapping Symbols.
  19296. (line 12)
  19297. * $d <1>: ARM Mapping Symbols.
  19298. (line 15)
  19299. * $exp math builtin, TIC54X: TIC54X-Builtins. (line 37)
  19300. * $fabs math builtin, TIC54X: TIC54X-Builtins. (line 40)
  19301. * $firstch subsym builtin, TIC54X: TIC54X-Macros. (line 26)
  19302. * $floor math builtin, TIC54X: TIC54X-Builtins. (line 43)
  19303. * $fmod math builtin, TIC54X: TIC54X-Builtins. (line 47)
  19304. * $int math builtin, TIC54X: TIC54X-Builtins. (line 50)
  19305. * $iscons subsym builtin, TIC54X: TIC54X-Macros. (line 43)
  19306. * $isdefed subsym builtin, TIC54X: TIC54X-Macros. (line 34)
  19307. * $ismember subsym builtin, TIC54X: TIC54X-Macros. (line 38)
  19308. * $isname subsym builtin, TIC54X: TIC54X-Macros. (line 47)
  19309. * $isreg subsym builtin, TIC54X: TIC54X-Macros. (line 50)
  19310. * $lastch subsym builtin, TIC54X: TIC54X-Macros. (line 30)
  19311. * $ldexp math builtin, TIC54X: TIC54X-Builtins. (line 53)
  19312. * $log math builtin, TIC54X: TIC54X-Builtins. (line 59)
  19313. * $log10 math builtin, TIC54X: TIC54X-Builtins. (line 56)
  19314. * $max math builtin, TIC54X: TIC54X-Builtins. (line 62)
  19315. * $min math builtin, TIC54X: TIC54X-Builtins. (line 65)
  19316. * $pow math builtin, TIC54X: TIC54X-Builtins. (line 68)
  19317. * $round math builtin, TIC54X: TIC54X-Builtins. (line 71)
  19318. * $sgn math builtin, TIC54X: TIC54X-Builtins. (line 74)
  19319. * $sin math builtin, TIC54X: TIC54X-Builtins. (line 77)
  19320. * $sinh math builtin, TIC54X: TIC54X-Builtins. (line 80)
  19321. * $sqrt math builtin, TIC54X: TIC54X-Builtins. (line 83)
  19322. * $structacc subsym builtin, TIC54X: TIC54X-Macros. (line 57)
  19323. * $structsz subsym builtin, TIC54X: TIC54X-Macros. (line 54)
  19324. * $symcmp subsym builtin, TIC54X: TIC54X-Macros. (line 23)
  19325. * $symlen subsym builtin, TIC54X: TIC54X-Macros. (line 20)
  19326. * $t: ARM Mapping Symbols.
  19327. (line 12)
  19328. * $tan math builtin, TIC54X: TIC54X-Builtins. (line 86)
  19329. * $tanh math builtin, TIC54X: TIC54X-Builtins. (line 89)
  19330. * $trunc math builtin, TIC54X: TIC54X-Builtins. (line 92)
  19331. * $x: AArch64 Mapping Symbols.
  19332. (line 9)
  19333. * %gp: RX-Modifiers. (line 6)
  19334. * %gpreg: RX-Modifiers. (line 22)
  19335. * %pidreg: RX-Modifiers. (line 25)
  19336. * -+ option, VAX/VMS: VAX-Opts. (line 71)
  19337. * --: Command Line. (line 10)
  19338. * --32 option, i386: i386-Options. (line 8)
  19339. * --32 option, x86-64: i386-Options. (line 8)
  19340. * --64 option, i386: i386-Options. (line 8)
  19341. * --64 option, x86-64: i386-Options. (line 8)
  19342. * --absolute-literals: Xtensa Options. (line 39)
  19343. * --allow-reg-prefix: SH Options. (line 9)
  19344. * --alternate: alternate. (line 6)
  19345. * --auto-litpools: Xtensa Options. (line 22)
  19346. * --base-size-default-16: M68K-Opts. (line 66)
  19347. * --base-size-default-32: M68K-Opts. (line 66)
  19348. * --big: SH Options. (line 9)
  19349. * --bitwise-or option, M680x0: M68K-Opts. (line 59)
  19350. * --compress-debug-sections= option: Overview. (line 374)
  19351. * --disp-size-default-16: M68K-Opts. (line 75)
  19352. * --disp-size-default-32: M68K-Opts. (line 75)
  19353. * --divide option, i386: i386-Options. (line 25)
  19354. * --dsp: SH Options. (line 9)
  19355. * --emulation=crisaout command-line option, CRIS: CRIS-Opts. (line 9)
  19356. * --emulation=criself command-line option, CRIS: CRIS-Opts. (line 9)
  19357. * --enforce-aligned-data: Sparc-Aligned-Data. (line 11)
  19358. * --fatal-warnings: W. (line 16)
  19359. * --fdpic: SH Options. (line 31)
  19360. * --fix-v4bx command-line option, ARM: ARM Options. (line 200)
  19361. * --fixed-special-register-names command-line option, MMIX: MMIX-Opts.
  19362. (line 8)
  19363. * --force-long-branches: M68HC11-Opts. (line 81)
  19364. * --generate-example: M68HC11-Opts. (line 98)
  19365. * --globalize-symbols command-line option, MMIX: MMIX-Opts. (line 12)
  19366. * --gnu-syntax command-line option, MMIX: MMIX-Opts. (line 16)
  19367. * --linker-allocated-gregs command-line option, MMIX: MMIX-Opts.
  19368. (line 67)
  19369. * --listing-cont-lines: listing. (line 34)
  19370. * --listing-lhs-width: listing. (line 16)
  19371. * --listing-lhs-width2: listing. (line 21)
  19372. * --listing-rhs-width: listing. (line 28)
  19373. * --little: SH Options. (line 9)
  19374. * --longcalls: Xtensa Options. (line 53)
  19375. * --march=ARCHITECTURE command-line option, CRIS: CRIS-Opts. (line 34)
  19376. * --MD: MD. (line 6)
  19377. * --mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  19378. * --no-absolute-literals: Xtensa Options. (line 39)
  19379. * --no-auto-litpools: Xtensa Options. (line 22)
  19380. * --no-expand command-line option, MMIX: MMIX-Opts. (line 31)
  19381. * --no-longcalls: Xtensa Options. (line 53)
  19382. * --no-merge-gregs command-line option, MMIX: MMIX-Opts. (line 36)
  19383. * --no-mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  19384. * --no-pad-sections: no-pad-sections. (line 6)
  19385. * --no-predefined-syms command-line option, MMIX: MMIX-Opts. (line 22)
  19386. * --no-pushj-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  19387. * --no-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  19388. * --no-target-align: Xtensa Options. (line 46)
  19389. * --no-text-section-literals: Xtensa Options. (line 7)
  19390. * --no-trampolines: Xtensa Options. (line 74)
  19391. * --no-transform: Xtensa Options. (line 62)
  19392. * --no-underscore command-line option, CRIS: CRIS-Opts. (line 15)
  19393. * --no-warn: W. (line 11)
  19394. * --pcrel: M68K-Opts. (line 87)
  19395. * --pic command-line option, CRIS: CRIS-Opts. (line 27)
  19396. * --print-insn-syntax: M68HC11-Opts. (line 87)
  19397. * --print-insn-syntax <1>: XGATE-Opts. (line 25)
  19398. * --print-opcodes: M68HC11-Opts. (line 91)
  19399. * --print-opcodes <1>: XGATE-Opts. (line 29)
  19400. * --register-prefix-optional option, M680x0: M68K-Opts. (line 46)
  19401. * --relax: SH Options. (line 9)
  19402. * --relax command-line option, MMIX: MMIX-Opts. (line 19)
  19403. * --rename-section: Xtensa Options. (line 70)
  19404. * --renesas: SH Options. (line 9)
  19405. * --sectname-subst: Section. (line 71)
  19406. * --short-branches: M68HC11-Opts. (line 67)
  19407. * --small: SH Options. (line 9)
  19408. * --statistics: statistics. (line 6)
  19409. * --strict-direct-mode: M68HC11-Opts. (line 57)
  19410. * --target-align: Xtensa Options. (line 46)
  19411. * --text-section-literals: Xtensa Options. (line 7)
  19412. * --traditional-format: traditional-format. (line 6)
  19413. * --trampolines: Xtensa Options. (line 74)
  19414. * --transform: Xtensa Options. (line 62)
  19415. * --underscore command-line option, CRIS: CRIS-Opts. (line 15)
  19416. * --warn: W. (line 19)
  19417. * --x32 option, i386: i386-Options. (line 8)
  19418. * --x32 option, x86-64: i386-Options. (line 8)
  19419. * --xgate-ramoffset: M68HC11-Opts. (line 36)
  19420. * -1 option, VAX/VMS: VAX-Opts. (line 77)
  19421. * -32addr command-line option, Alpha: Alpha Options. (line 57)
  19422. * -a: a. (line 6)
  19423. * -ac: a. (line 6)
  19424. * -ad: a. (line 6)
  19425. * -ag: a. (line 6)
  19426. * -ah: a. (line 6)
  19427. * -al: a. (line 6)
  19428. * -Aleon: Sparc-Opts. (line 25)
  19429. * -an: a. (line 6)
  19430. * -as: a. (line 6)
  19431. * -Asparc: Sparc-Opts. (line 25)
  19432. * -Asparcfmaf: Sparc-Opts. (line 25)
  19433. * -Asparcima: Sparc-Opts. (line 25)
  19434. * -Asparclet: Sparc-Opts. (line 25)
  19435. * -Asparclite: Sparc-Opts. (line 25)
  19436. * -Asparcvis: Sparc-Opts. (line 25)
  19437. * -Asparcvis2: Sparc-Opts. (line 25)
  19438. * -Asparcvis3: Sparc-Opts. (line 25)
  19439. * -Asparcvis3r: Sparc-Opts. (line 25)
  19440. * -Av6: Sparc-Opts. (line 25)
  19441. * -Av7: Sparc-Opts. (line 25)
  19442. * -Av8: Sparc-Opts. (line 25)
  19443. * -Av9: Sparc-Opts. (line 25)
  19444. * -Av9a: Sparc-Opts. (line 25)
  19445. * -Av9b: Sparc-Opts. (line 25)
  19446. * -Av9c: Sparc-Opts. (line 25)
  19447. * -Av9d: Sparc-Opts. (line 25)
  19448. * -Av9e: Sparc-Opts. (line 25)
  19449. * -Av9m: Sparc-Opts. (line 25)
  19450. * -Av9v: Sparc-Opts. (line 25)
  19451. * -big option, M32R: M32R-Opts. (line 35)
  19452. * -D: D. (line 6)
  19453. * -D, ignored on VAX: VAX-Opts. (line 11)
  19454. * -d, VAX option: VAX-Opts. (line 16)
  19455. * -eabi= command-line option, ARM: ARM Options. (line 176)
  19456. * -EB command-line option, AArch64: AArch64 Options. (line 6)
  19457. * -EB command-line option, ARC: ARC Options. (line 84)
  19458. * -EB command-line option, ARM: ARM Options. (line 181)
  19459. * -EB option (MIPS): MIPS Options. (line 13)
  19460. * -EB option, M32R: M32R-Opts. (line 39)
  19461. * -EB option, TILE-Gx: TILE-Gx Options. (line 11)
  19462. * -EL command-line option, AArch64: AArch64 Options. (line 10)
  19463. * -EL command-line option, ARC: ARC Options. (line 88)
  19464. * -EL command-line option, ARM: ARM Options. (line 192)
  19465. * -EL option (MIPS): MIPS Options. (line 13)
  19466. * -EL option, M32R: M32R-Opts. (line 32)
  19467. * -EL option, TILE-Gx: TILE-Gx Options. (line 11)
  19468. * -f: f. (line 6)
  19469. * -F command-line option, Alpha: Alpha Options. (line 57)
  19470. * -fno-pic option, RISC-V: RISC-V-Options. (line 12)
  19471. * -fpic option, RISC-V: RISC-V-Options. (line 8)
  19472. * -g command-line option, Alpha: Alpha Options. (line 47)
  19473. * -G command-line option, Alpha: Alpha Options. (line 53)
  19474. * -G option (MIPS): MIPS Options. (line 8)
  19475. * -h option, VAX/VMS: VAX-Opts. (line 45)
  19476. * -H option, VAX/VMS: VAX-Opts. (line 81)
  19477. * -I PATH: I. (line 6)
  19478. * -ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 87)
  19479. * -Ip option, M32RX: M32R-Opts. (line 97)
  19480. * -J, ignored on VAX: VAX-Opts. (line 27)
  19481. * -K: K. (line 6)
  19482. * -k command-line option, ARM: ARM Options. (line 196)
  19483. * -KPIC option, M32R: M32R-Opts. (line 42)
  19484. * -KPIC option, MIPS: MIPS Options. (line 21)
  19485. * -L: L. (line 6)
  19486. * -l option, M680x0: M68K-Opts. (line 34)
  19487. * -little option, M32R: M32R-Opts. (line 27)
  19488. * -M: M. (line 6)
  19489. * -m11/03: PDP-11-Options. (line 140)
  19490. * -m11/04: PDP-11-Options. (line 143)
  19491. * -m11/05: PDP-11-Options. (line 146)
  19492. * -m11/10: PDP-11-Options. (line 146)
  19493. * -m11/15: PDP-11-Options. (line 149)
  19494. * -m11/20: PDP-11-Options. (line 149)
  19495. * -m11/21: PDP-11-Options. (line 152)
  19496. * -m11/23: PDP-11-Options. (line 155)
  19497. * -m11/24: PDP-11-Options. (line 155)
  19498. * -m11/34: PDP-11-Options. (line 158)
  19499. * -m11/34a: PDP-11-Options. (line 161)
  19500. * -m11/35: PDP-11-Options. (line 164)
  19501. * -m11/40: PDP-11-Options. (line 164)
  19502. * -m11/44: PDP-11-Options. (line 167)
  19503. * -m11/45: PDP-11-Options. (line 170)
  19504. * -m11/50: PDP-11-Options. (line 170)
  19505. * -m11/53: PDP-11-Options. (line 173)
  19506. * -m11/55: PDP-11-Options. (line 170)
  19507. * -m11/60: PDP-11-Options. (line 176)
  19508. * -m11/70: PDP-11-Options. (line 170)
  19509. * -m11/73: PDP-11-Options. (line 173)
  19510. * -m11/83: PDP-11-Options. (line 173)
  19511. * -m11/84: PDP-11-Options. (line 173)
  19512. * -m11/93: PDP-11-Options. (line 173)
  19513. * -m11/94: PDP-11-Options. (line 173)
  19514. * -m16c option, M16C: M32C-Opts. (line 12)
  19515. * -m31 option, s390: s390 Options. (line 8)
  19516. * -m32 option, TILE-Gx: TILE-Gx Options. (line 8)
  19517. * -m32bit-doubles: RX-Opts. (line 9)
  19518. * -m32c option, M32C: M32C-Opts. (line 9)
  19519. * -m32r option, M32R: M32R-Opts. (line 21)
  19520. * -m32rx option, M32R2: M32R-Opts. (line 17)
  19521. * -m32rx option, M32RX: M32R-Opts. (line 9)
  19522. * -m4byte-align command-line option, V850: V850 Options. (line 90)
  19523. * -m64 option, s390: s390 Options. (line 8)
  19524. * -m64 option, TILE-Gx: TILE-Gx Options. (line 8)
  19525. * -m64bit-doubles: RX-Opts. (line 15)
  19526. * -m68000 and related options: M68K-Opts. (line 99)
  19527. * -m68hc11: M68HC11-Opts. (line 9)
  19528. * -m68hc12: M68HC11-Opts. (line 14)
  19529. * -m68hcs12: M68HC11-Opts. (line 21)
  19530. * -m8byte-align command-line option, V850: V850 Options. (line 86)
  19531. * -mabi= command-line option, AArch64: AArch64 Options. (line 14)
  19532. * -mabi=ABI option, RISC-V: RISC-V-Options. (line 19)
  19533. * -madd-bnd-prefix option, i386: i386-Options. (line 146)
  19534. * -madd-bnd-prefix option, x86-64: i386-Options. (line 146)
  19535. * -mall: PDP-11-Options. (line 26)
  19536. * -mall-enabled command-line option, LM32: LM32 Options. (line 30)
  19537. * -mall-extensions: PDP-11-Options. (line 26)
  19538. * -mall-opcodes command-line option, AVR: AVR Options. (line 111)
  19539. * -mamd64 option, x86-64: i386-Options. (line 209)
  19540. * -mapcs-26 command-line option, ARM: ARM Options. (line 148)
  19541. * -mapcs-32 command-line option, ARM: ARM Options. (line 148)
  19542. * -mapcs-float command-line option, ARM: ARM Options. (line 162)
  19543. * -mapcs-reentrant command-line option, ARM: ARM Options. (line 167)
  19544. * -march= command-line option, AArch64: AArch64 Options. (line 40)
  19545. * -march= command-line option, ARM: ARM Options. (line 81)
  19546. * -march= command-line option, M680x0: M68K-Opts. (line 8)
  19547. * -march= command-line option, TIC6X: TIC6X Options. (line 6)
  19548. * -march= option, i386: i386-Options. (line 32)
  19549. * -march= option, s390: s390 Options. (line 25)
  19550. * -march= option, x86-64: i386-Options. (line 32)
  19551. * -march=ISA option, RISC-V: RISC-V-Options. (line 15)
  19552. * -matpcs command-line option, ARM: ARM Options. (line 154)
  19553. * -mavxscalar= option, i386: i386-Options. (line 97)
  19554. * -mavxscalar= option, x86-64: i386-Options. (line 97)
  19555. * -mbarrel-shift-enabled command-line option, LM32: LM32 Options.
  19556. (line 12)
  19557. * -mbig-endian: RX-Opts. (line 20)
  19558. * -mbig-obj option, x86-64: i386-Options. (line 160)
  19559. * -mbreak-enabled command-line option, LM32: LM32 Options. (line 27)
  19560. * -mccs command-line option, ARM: ARM Options. (line 209)
  19561. * -mcis: PDP-11-Options. (line 32)
  19562. * -mcode-density command-line option, ARC: ARC Options. (line 93)
  19563. * -mconstant-gp command-line option, IA-64: IA-64 Options. (line 6)
  19564. * -mCPU command-line option, Alpha: Alpha Options. (line 6)
  19565. * -mcpu option, cpu: TIC54X-Opts. (line 15)
  19566. * -mcpu=: RX-Opts. (line 75)
  19567. * -mcpu= command-line option, AArch64: AArch64 Options. (line 19)
  19568. * -mcpu= command-line option, ARM: ARM Options. (line 6)
  19569. * -mcpu= command-line option, Blackfin: Blackfin Options. (line 6)
  19570. * -mcpu= command-line option, M680x0: M68K-Opts. (line 14)
  19571. * -mcpu=CPU command-line option, ARC: ARC Options. (line 10)
  19572. * -mcsm: PDP-11-Options. (line 43)
  19573. * -mdcache-enabled command-line option, LM32: LM32 Options. (line 24)
  19574. * -mdebug command-line option, Alpha: Alpha Options. (line 25)
  19575. * -mdivide-enabled command-line option, LM32: LM32 Options. (line 9)
  19576. * -mdpfp command-line option, ARC: ARC Options. (line 108)
  19577. * -mdsbt command-line option, TIC6X: TIC6X Options. (line 13)
  19578. * -me option, stderr redirect: TIC54X-Opts. (line 20)
  19579. * -meis: PDP-11-Options. (line 46)
  19580. * -mepiphany command-line option, Epiphany: Epiphany Options.
  19581. (line 9)
  19582. * -mepiphany16 command-line option, Epiphany: Epiphany Options.
  19583. (line 13)
  19584. * -merrors-to-file option, stderr redirect: TIC54X-Opts. (line 20)
  19585. * -mesa option, s390: s390 Options. (line 17)
  19586. * -mevexlig= option, i386: i386-Options. (line 112)
  19587. * -mevexlig= option, x86-64: i386-Options. (line 112)
  19588. * -mevexrcig= option, i386: i386-Options. (line 199)
  19589. * -mevexrcig= option, x86-64: i386-Options. (line 199)
  19590. * -mevexwig= option, i386: i386-Options. (line 122)
  19591. * -mevexwig= option, x86-64: i386-Options. (line 122)
  19592. * -mf option, far-mode: TIC54X-Opts. (line 8)
  19593. * -mf11: PDP-11-Options. (line 122)
  19594. * -mfar-mode option, far-mode: TIC54X-Opts. (line 8)
  19595. * -mfdpic command-line option, Blackfin: Blackfin Options. (line 19)
  19596. * -mfence-as-lock-add= option, i386: i386-Options. (line 173)
  19597. * -mfence-as-lock-add= option, x86-64: i386-Options. (line 173)
  19598. * -mfis: PDP-11-Options. (line 51)
  19599. * -mfloat-abi= command-line option, ARM: ARM Options. (line 171)
  19600. * -mfp-11: PDP-11-Options. (line 56)
  19601. * -mfpp: PDP-11-Options. (line 56)
  19602. * -mfpu: PDP-11-Options. (line 56)
  19603. * -mfpu= command-line option, ARM: ARM Options. (line 98)
  19604. * -mfpuda command-line option, ARC: ARC Options. (line 111)
  19605. * -mgcc-abi: RX-Opts. (line 63)
  19606. * -mgcc-abi command-line option, V850: V850 Options. (line 79)
  19607. * -mgcc-isr command-line option, AVR: AVR Options. (line 132)
  19608. * -mhard-float command-line option, V850: V850 Options. (line 101)
  19609. * -micache-enabled command-line option, LM32: LM32 Options. (line 21)
  19610. * -mimplicit-it command-line option, ARM: ARM Options. (line 132)
  19611. * -mint-register: RX-Opts. (line 57)
  19612. * -mintel64 option, x86-64: i386-Options. (line 209)
  19613. * -mip2022 option, IP2K: IP2K-Opts. (line 14)
  19614. * -mip2022ext option, IP2022: IP2K-Opts. (line 9)
  19615. * -mj11: PDP-11-Options. (line 126)
  19616. * -mka11: PDP-11-Options. (line 92)
  19617. * -mkb11: PDP-11-Options. (line 95)
  19618. * -mkd11a: PDP-11-Options. (line 98)
  19619. * -mkd11b: PDP-11-Options. (line 101)
  19620. * -mkd11d: PDP-11-Options. (line 104)
  19621. * -mkd11e: PDP-11-Options. (line 107)
  19622. * -mkd11f: PDP-11-Options. (line 110)
  19623. * -mkd11h: PDP-11-Options. (line 110)
  19624. * -mkd11k: PDP-11-Options. (line 114)
  19625. * -mkd11q: PDP-11-Options. (line 110)
  19626. * -mkd11z: PDP-11-Options. (line 118)
  19627. * -mkev11: PDP-11-Options. (line 51)
  19628. * -mkev11 <1>: PDP-11-Options. (line 51)
  19629. * -mlimited-eis: PDP-11-Options. (line 64)
  19630. * -mlink-relax command-line option, AVR: AVR Options. (line 123)
  19631. * -mlittle-endian: RX-Opts. (line 26)
  19632. * -mlong: M68HC11-Opts. (line 45)
  19633. * -mlong <1>: XGATE-Opts. (line 13)
  19634. * -mlong-double: M68HC11-Opts. (line 53)
  19635. * -mlong-double <1>: XGATE-Opts. (line 21)
  19636. * -mm9s12x: M68HC11-Opts. (line 27)
  19637. * -mm9s12xg: M68HC11-Opts. (line 32)
  19638. * -mmcu= command-line option, AVR: AVR Options. (line 6)
  19639. * -mmfpt: PDP-11-Options. (line 70)
  19640. * -mmicrocode: PDP-11-Options. (line 83)
  19641. * -mmnemonic= option, i386: i386-Options. (line 129)
  19642. * -mmnemonic= option, x86-64: i386-Options. (line 129)
  19643. * -mmultiply-enabled command-line option, LM32: LM32 Options.
  19644. (line 6)
  19645. * -mmutiproc: PDP-11-Options. (line 73)
  19646. * -mmxps: PDP-11-Options. (line 77)
  19647. * -mnaked-reg option, i386: i386-Options. (line 141)
  19648. * -mnaked-reg option, x86-64: i386-Options. (line 141)
  19649. * -mnan= command-line option, MIPS: MIPS Options. (line 432)
  19650. * -mno-allow-string-insns: RX-Opts. (line 82)
  19651. * -mno-cis: PDP-11-Options. (line 32)
  19652. * -mno-csm: PDP-11-Options. (line 43)
  19653. * -mno-dsbt command-line option, TIC6X: TIC6X Options. (line 13)
  19654. * -mno-eis: PDP-11-Options. (line 46)
  19655. * -mno-extensions: PDP-11-Options. (line 29)
  19656. * -mno-fdpic command-line option, Blackfin: Blackfin Options.
  19657. (line 22)
  19658. * -mno-fis: PDP-11-Options. (line 51)
  19659. * -mno-fp-11: PDP-11-Options. (line 56)
  19660. * -mno-fpp: PDP-11-Options. (line 56)
  19661. * -mno-fpu: PDP-11-Options. (line 56)
  19662. * -mno-kev11: PDP-11-Options. (line 51)
  19663. * -mno-limited-eis: PDP-11-Options. (line 64)
  19664. * -mno-link-relax command-line option, AVR: AVR Options. (line 127)
  19665. * -mno-mfpt: PDP-11-Options. (line 70)
  19666. * -mno-microcode: PDP-11-Options. (line 83)
  19667. * -mno-mutiproc: PDP-11-Options. (line 73)
  19668. * -mno-mxps: PDP-11-Options. (line 77)
  19669. * -mno-pic: PDP-11-Options. (line 11)
  19670. * -mno-pic command-line option, TIC6X: TIC6X Options. (line 36)
  19671. * -mno-regnames option, s390: s390 Options. (line 50)
  19672. * -mno-relax option, RISC-V: RISC-V-Options. (line 31)
  19673. * -mno-skip-bug command-line option, AVR: AVR Options. (line 114)
  19674. * -mno-spl: PDP-11-Options. (line 80)
  19675. * -mno-sym32: MIPS Options. (line 341)
  19676. * -mno-verbose-error command-line option, AArch64: AArch64 Options.
  19677. (line 60)
  19678. * -mno-wrap command-line option, AVR: AVR Options. (line 117)
  19679. * -mnopic command-line option, Blackfin: Blackfin Options. (line 22)
  19680. * -mnps400 command-line option, ARC: ARC Options. (line 102)
  19681. * -momit-lock-prefix= option, i386: i386-Options. (line 164)
  19682. * -momit-lock-prefix= option, x86-64: i386-Options. (line 164)
  19683. * -mpic: PDP-11-Options. (line 11)
  19684. * -mpic command-line option, TIC6X: TIC6X Options. (line 36)
  19685. * -mpid: RX-Opts. (line 50)
  19686. * -mpid= command-line option, TIC6X: TIC6X Options. (line 23)
  19687. * -mregnames option, s390: s390 Options. (line 47)
  19688. * -mrelax command-line option, ARC: ARC Options. (line 97)
  19689. * -mrelax command-line option, V850: V850 Options. (line 72)
  19690. * -mrelax option, RISC-V: RISC-V-Options. (line 27)
  19691. * -mrelax-relocations= option, i386: i386-Options. (line 182)
  19692. * -mrelax-relocations= option, x86-64: i386-Options. (line 182)
  19693. * -mrh850-abi command-line option, V850: V850 Options. (line 82)
  19694. * -mrmw command-line option, AVR: AVR Options. (line 120)
  19695. * -mrx-abi: RX-Opts. (line 69)
  19696. * -mshared option, i386: i386-Options. (line 151)
  19697. * -mshared option, x86-64: i386-Options. (line 151)
  19698. * -mshort: M68HC11-Opts. (line 40)
  19699. * -mshort <1>: XGATE-Opts. (line 8)
  19700. * -mshort-double: M68HC11-Opts. (line 49)
  19701. * -mshort-double <1>: XGATE-Opts. (line 17)
  19702. * -msign-extend-enabled command-line option, LM32: LM32 Options.
  19703. (line 15)
  19704. * -msmall-data-limit: RX-Opts. (line 42)
  19705. * -msoft-float command-line option, V850: V850 Options. (line 95)
  19706. * -mspfp command-line option, ARC: ARC Options. (line 105)
  19707. * -mspl: PDP-11-Options. (line 80)
  19708. * -msse-check= option, i386: i386-Options. (line 87)
  19709. * -msse-check= option, x86-64: i386-Options. (line 87)
  19710. * -msse2avx option, i386: i386-Options. (line 83)
  19711. * -msse2avx option, x86-64: i386-Options. (line 83)
  19712. * -msym32: MIPS Options. (line 341)
  19713. * -msyntax= option, i386: i386-Options. (line 135)
  19714. * -msyntax= option, x86-64: i386-Options. (line 135)
  19715. * -mt11: PDP-11-Options. (line 130)
  19716. * -mthumb command-line option, ARM: ARM Options. (line 122)
  19717. * -mthumb-interwork command-line option, ARM: ARM Options. (line 127)
  19718. * -mtune= option, i386: i386-Options. (line 75)
  19719. * -mtune= option, x86-64: i386-Options. (line 75)
  19720. * -mtune=ARCH command-line option, Visium: Visium Options. (line 8)
  19721. * -muse-conventional-section-names: RX-Opts. (line 33)
  19722. * -muse-renesas-section-names: RX-Opts. (line 37)
  19723. * -muser-enabled command-line option, LM32: LM32 Options. (line 18)
  19724. * -mv850 command-line option, V850: V850 Options. (line 23)
  19725. * -mv850any command-line option, V850: V850 Options. (line 41)
  19726. * -mv850e command-line option, V850: V850 Options. (line 29)
  19727. * -mv850e1 command-line option, V850: V850 Options. (line 35)
  19728. * -mv850e2 command-line option, V850: V850 Options. (line 51)
  19729. * -mv850e2v3 command-line option, V850: V850 Options. (line 57)
  19730. * -mv850e2v4 command-line option, V850: V850 Options. (line 63)
  19731. * -mv850e3v5 command-line option, V850: V850 Options. (line 66)
  19732. * -mverbose-error command-line option, AArch64: AArch64 Options.
  19733. (line 56)
  19734. * -mvexwig= option, i386: i386-Options. (line 105)
  19735. * -mvexwig= option, x86-64: i386-Options. (line 105)
  19736. * -mvxworks-pic option, MIPS: MIPS Options. (line 26)
  19737. * -mwarn-areg-zero option, s390: s390 Options. (line 53)
  19738. * -mwarn-deprecated command-line option, ARM: ARM Options. (line 204)
  19739. * -mwarn-syms command-line option, ARM: ARM Options. (line 212)
  19740. * -mx86-used-note= option, i386: i386-Options. (line 192)
  19741. * -mx86-used-note= option, x86-64: i386-Options. (line 192)
  19742. * -mzarch option, s390: s390 Options. (line 17)
  19743. * -m[no-]68851 command-line option, M680x0: M68K-Opts. (line 21)
  19744. * -m[no-]68881 command-line option, M680x0: M68K-Opts. (line 21)
  19745. * -m[no-]div command-line option, M680x0: M68K-Opts. (line 21)
  19746. * -m[no-]emac command-line option, M680x0: M68K-Opts. (line 21)
  19747. * -m[no-]float command-line option, M680x0: M68K-Opts. (line 21)
  19748. * -m[no-]mac command-line option, M680x0: M68K-Opts. (line 21)
  19749. * -m[no-]usp command-line option, M680x0: M68K-Opts. (line 21)
  19750. * -N command-line option, CRIS: CRIS-Opts. (line 59)
  19751. * -nIp option, M32RX: M32R-Opts. (line 101)
  19752. * -no-bitinst, M32R2: M32R-Opts. (line 54)
  19753. * -no-ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 93)
  19754. * -no-mdebug command-line option, Alpha: Alpha Options. (line 25)
  19755. * -no-parallel option, M32RX: M32R-Opts. (line 51)
  19756. * -no-warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  19757. (line 79)
  19758. * -no-warn-unmatched-high option, M32R: M32R-Opts. (line 111)
  19759. * -nocpp ignored (MIPS): MIPS Options. (line 344)
  19760. * -noreplace command-line option, Alpha: Alpha Options. (line 40)
  19761. * -o: o. (line 6)
  19762. * -O option, i386: i386-Options. (line 214)
  19763. * -O option, M32RX: M32R-Opts. (line 59)
  19764. * -O option, x86-64: i386-Options. (line 214)
  19765. * -O0 option, i386: i386-Options. (line 214)
  19766. * -O0 option, x86-64: i386-Options. (line 214)
  19767. * -O1 option, i386: i386-Options. (line 214)
  19768. * -O1 option, x86-64: i386-Options. (line 214)
  19769. * -O2 option, i386: i386-Options. (line 214)
  19770. * -O2 option, x86-64: i386-Options. (line 214)
  19771. * -Os option, i386: i386-Options. (line 214)
  19772. * -Os option, x86-64: i386-Options. (line 214)
  19773. * -parallel option, M32RX: M32R-Opts. (line 46)
  19774. * -R: R. (line 6)
  19775. * -r800 command-line option, Z80: Z80 Options. (line 35)
  19776. * -relax command-line option, Alpha: Alpha Options. (line 32)
  19777. * -replace command-line option, Alpha: Alpha Options. (line 40)
  19778. * -S, ignored on VAX: VAX-Opts. (line 11)
  19779. * -T, ignored on VAX: VAX-Opts. (line 11)
  19780. * -t, ignored on VAX: VAX-Opts. (line 36)
  19781. * -v: v. (line 6)
  19782. * -V, redundant on VAX: VAX-Opts. (line 22)
  19783. * -version: v. (line 6)
  19784. * -W: W. (line 11)
  19785. * -warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  19786. (line 65)
  19787. * -warn-unmatched-high option, M32R: M32R-Opts. (line 105)
  19788. * -Wnp option, M32RX: M32R-Opts. (line 83)
  19789. * -Wnuh option, M32RX: M32R-Opts. (line 117)
  19790. * -Wp option, M32RX: M32R-Opts. (line 75)
  19791. * -wsigned_overflow command-line option, V850: V850 Options. (line 9)
  19792. * -Wuh option, M32RX: M32R-Opts. (line 114)
  19793. * -wunsigned_overflow command-line option, V850: V850 Options.
  19794. (line 16)
  19795. * -x command-line option, MMIX: MMIX-Opts. (line 44)
  19796. * -z80 command-line option, Z80: Z80 Options. (line 8)
  19797. * -z8001 command-line option, Z8000: Z8000 Options. (line 6)
  19798. * -z8002 command-line option, Z8000: Z8000 Options. (line 9)
  19799. * . (symbol): Dot. (line 6)
  19800. * .align directive, ARM: ARM Directives. (line 6)
  19801. * .align directive, TILE-Gx: TILE-Gx Directives. (line 6)
  19802. * .align directive, TILEPro: TILEPro Directives. (line 6)
  19803. * .allow_suspicious_bundles directive, TILE-Gx: TILE-Gx Directives.
  19804. (line 10)
  19805. * .allow_suspicious_bundles directive, TILEPro: TILEPro Directives.
  19806. (line 10)
  19807. * .arch directive, AArch64: AArch64 Directives. (line 6)
  19808. * .arch directive, ARM: ARM Directives. (line 13)
  19809. * .arch directive, TIC6X: TIC6X Directives. (line 10)
  19810. * .arch_extension directive, AArch64: AArch64 Directives. (line 13)
  19811. * .arch_extension directive, ARM: ARM Directives. (line 21)
  19812. * .arc_attribute directive, ARC: ARC Directives. (line 240)
  19813. * .arm directive, ARM: ARM Directives. (line 30)
  19814. * .attribute directive, RISC-V: RISC-V-Directives. (line 96)
  19815. * .big directive, M32RX: M32R-Directives. (line 88)
  19816. * .bss directive, AArch64: AArch64 Directives. (line 21)
  19817. * .bss directive, ARM: ARM Directives. (line 33)
  19818. * .c6xabi_attribute directive, TIC6X: TIC6X Directives. (line 20)
  19819. * .cantunwind directive, ARM: ARM Directives. (line 36)
  19820. * .cantunwind directive, TIC6X: TIC6X Directives. (line 13)
  19821. * .cfi_b_key_frame directive, AArch64: AArch64 Directives. (line 88)
  19822. * .code directive, ARM: ARM Directives. (line 40)
  19823. * .cpu directive, AArch64: AArch64 Directives. (line 24)
  19824. * .cpu directive, ARM: ARM Directives. (line 44)
  19825. * .dn and .qn directives, ARM: ARM Directives. (line 52)
  19826. * .dword directive, AArch64: AArch64 Directives. (line 28)
  19827. * .eabi_attribute directive, ARM: ARM Directives. (line 76)
  19828. * .ehtype directive, TIC6X: TIC6X Directives. (line 31)
  19829. * .endp directive, TIC6X: TIC6X Directives. (line 34)
  19830. * .even directive, AArch64: AArch64 Directives. (line 31)
  19831. * .even directive, ARM: ARM Directives. (line 104)
  19832. * .extend directive, ARM: ARM Directives. (line 107)
  19833. * .fnend directive, ARM: ARM Directives. (line 113)
  19834. * .fnstart directive, ARM: ARM Directives. (line 121)
  19835. * .force_thumb directive, ARM: ARM Directives. (line 124)
  19836. * .fpu directive, ARM: ARM Directives. (line 128)
  19837. * .global: MIPS insn. (line 12)
  19838. * .gnu_attribute 4, N directive, MIPS: MIPS FP ABI History.
  19839. (line 6)
  19840. * .gnu_attribute Tag_GNU_MIPS_ABI_FP, N directive, MIPS: MIPS FP ABI History.
  19841. (line 6)
  19842. * .handlerdata directive, ARM: ARM Directives. (line 132)
  19843. * .handlerdata directive, TIC6X: TIC6X Directives. (line 39)
  19844. * .insn: MIPS insn. (line 6)
  19845. * .insn directive, s390: s390 Directives. (line 11)
  19846. * .inst directive, AArch64: AArch64 Directives. (line 35)
  19847. * .inst directive, ARM: ARM Directives. (line 141)
  19848. * .ldouble directive, ARM: ARM Directives. (line 107)
  19849. * .little directive, M32RX: M32R-Directives. (line 82)
  19850. * .long directive, s390: s390 Directives. (line 16)
  19851. * .ltorg directive, AArch64: AArch64 Directives. (line 39)
  19852. * .ltorg directive, ARM: ARM Directives. (line 151)
  19853. * .ltorg directive, s390: s390 Directives. (line 79)
  19854. * .m32r directive, M32R: M32R-Directives. (line 66)
  19855. * .m32r2 directive, M32R2: M32R-Directives. (line 77)
  19856. * .m32rx directive, M32RX: M32R-Directives. (line 72)
  19857. * .machine directive, s390: s390 Directives. (line 84)
  19858. * .machinemode directive, s390: s390 Directives. (line 101)
  19859. * .module: MIPS assembly options.
  19860. (line 6)
  19861. * .module fp=NN directive, MIPS: MIPS FP ABI Selection.
  19862. (line 6)
  19863. * .movsp directive, ARM: ARM Directives. (line 165)
  19864. * .nan directive, MIPS: MIPS NaN Encodings. (line 6)
  19865. * .nocmp directive, TIC6X: TIC6X Directives. (line 47)
  19866. * .no_pointers directive, XStormy16: XStormy16 Directives.
  19867. (line 14)
  19868. * .o: Object. (line 6)
  19869. * .object_arch directive, ARM: ARM Directives. (line 170)
  19870. * .packed directive, ARM: ARM Directives. (line 176)
  19871. * .pad directive, ARM: ARM Directives. (line 181)
  19872. * .param on HPPA: HPPA Directives. (line 19)
  19873. * .personality directive, ARM: ARM Directives. (line 186)
  19874. * .personality directive, TIC6X: TIC6X Directives. (line 55)
  19875. * .personalityindex directive, ARM: ARM Directives. (line 189)
  19876. * .personalityindex directive, TIC6X: TIC6X Directives. (line 51)
  19877. * .pool directive, AArch64: AArch64 Directives. (line 53)
  19878. * .pool directive, ARM: ARM Directives. (line 193)
  19879. * .quad directive, s390: s390 Directives. (line 16)
  19880. * .req directive, AArch64: AArch64 Directives. (line 56)
  19881. * .req directive, ARM: ARM Directives. (line 196)
  19882. * .require_canonical_reg_names directive, TILE-Gx: TILE-Gx Directives.
  19883. (line 19)
  19884. * .require_canonical_reg_names directive, TILEPro: TILEPro Directives.
  19885. (line 19)
  19886. * .save directive, ARM: ARM Directives. (line 201)
  19887. * .scomm directive, TIC6X: TIC6X Directives. (line 58)
  19888. * .secrel32 directive, ARM: ARM Directives. (line 239)
  19889. * .set arch=CPU: MIPS ISA. (line 18)
  19890. * .set at: MIPS Macros. (line 41)
  19891. * .set at=REG: MIPS Macros. (line 35)
  19892. * .set autoextend: MIPS autoextend. (line 6)
  19893. * .set crc: MIPS ASE Instruction Generation Overrides.
  19894. (line 68)
  19895. * .set doublefloat: MIPS Floating-Point.
  19896. (line 12)
  19897. * .set dsp: MIPS ASE Instruction Generation Overrides.
  19898. (line 21)
  19899. * .set dspr2: MIPS ASE Instruction Generation Overrides.
  19900. (line 26)
  19901. * .set dspr3: MIPS ASE Instruction Generation Overrides.
  19902. (line 31)
  19903. * .set ginv: MIPS ASE Instruction Generation Overrides.
  19904. (line 72)
  19905. * .set hardfloat: MIPS Floating-Point.
  19906. (line 6)
  19907. * .set insn32: MIPS assembly options.
  19908. (line 18)
  19909. * .set loongson-cam: MIPS ASE Instruction Generation Overrides.
  19910. (line 81)
  19911. * .set loongson-ext: MIPS ASE Instruction Generation Overrides.
  19912. (line 86)
  19913. * .set loongson-ext2: MIPS ASE Instruction Generation Overrides.
  19914. (line 91)
  19915. * .set loongson-mmi: MIPS ASE Instruction Generation Overrides.
  19916. (line 76)
  19917. * .set macro: MIPS Macros. (line 30)
  19918. * .set mcu: MIPS ASE Instruction Generation Overrides.
  19919. (line 42)
  19920. * .set mdmx: MIPS ASE Instruction Generation Overrides.
  19921. (line 16)
  19922. * .set mips16e2: MIPS ASE Instruction Generation Overrides.
  19923. (line 61)
  19924. * .set mips3d: MIPS ASE Instruction Generation Overrides.
  19925. (line 6)
  19926. * .set mipsN: MIPS ISA. (line 6)
  19927. * .set msa: MIPS ASE Instruction Generation Overrides.
  19928. (line 47)
  19929. * .set mt: MIPS ASE Instruction Generation Overrides.
  19930. (line 37)
  19931. * .set noat: MIPS Macros. (line 41)
  19932. * .set noautoextend: MIPS autoextend. (line 6)
  19933. * .set nocrc: MIPS ASE Instruction Generation Overrides.
  19934. (line 68)
  19935. * .set nodsp: MIPS ASE Instruction Generation Overrides.
  19936. (line 21)
  19937. * .set nodspr2: MIPS ASE Instruction Generation Overrides.
  19938. (line 26)
  19939. * .set nodspr3: MIPS ASE Instruction Generation Overrides.
  19940. (line 31)
  19941. * .set noginv: MIPS ASE Instruction Generation Overrides.
  19942. (line 72)
  19943. * .set noinsn32: MIPS assembly options.
  19944. (line 18)
  19945. * .set noloongson-cam: MIPS ASE Instruction Generation Overrides.
  19946. (line 81)
  19947. * .set noloongson-ext: MIPS ASE Instruction Generation Overrides.
  19948. (line 86)
  19949. * .set noloongson-ext2: MIPS ASE Instruction Generation Overrides.
  19950. (line 91)
  19951. * .set noloongson-mmi: MIPS ASE Instruction Generation Overrides.
  19952. (line 76)
  19953. * .set nomacro: MIPS Macros. (line 30)
  19954. * .set nomcu: MIPS ASE Instruction Generation Overrides.
  19955. (line 42)
  19956. * .set nomdmx: MIPS ASE Instruction Generation Overrides.
  19957. (line 16)
  19958. * .set nomips16e2: MIPS ASE Instruction Generation Overrides.
  19959. (line 61)
  19960. * .set nomips3d: MIPS ASE Instruction Generation Overrides.
  19961. (line 6)
  19962. * .set nomsa: MIPS ASE Instruction Generation Overrides.
  19963. (line 47)
  19964. * .set nomt: MIPS ASE Instruction Generation Overrides.
  19965. (line 37)
  19966. * .set nosmartmips: MIPS ASE Instruction Generation Overrides.
  19967. (line 11)
  19968. * .set nosym32: MIPS Symbol Sizes. (line 6)
  19969. * .set novirt: MIPS ASE Instruction Generation Overrides.
  19970. (line 52)
  19971. * .set noxpa: MIPS ASE Instruction Generation Overrides.
  19972. (line 57)
  19973. * .set pop: MIPS Option Stack. (line 6)
  19974. * .set push: MIPS Option Stack. (line 6)
  19975. * .set singlefloat: MIPS Floating-Point.
  19976. (line 12)
  19977. * .set smartmips: MIPS ASE Instruction Generation Overrides.
  19978. (line 11)
  19979. * .set softfloat: MIPS Floating-Point.
  19980. (line 6)
  19981. * .set sym32: MIPS Symbol Sizes. (line 6)
  19982. * .set virt: MIPS ASE Instruction Generation Overrides.
  19983. (line 52)
  19984. * .set xpa: MIPS ASE Instruction Generation Overrides.
  19985. (line 57)
  19986. * .setfp directive, ARM: ARM Directives. (line 225)
  19987. * .short directive, s390: s390 Directives. (line 16)
  19988. * .syntax directive, ARM: ARM Directives. (line 244)
  19989. * .thumb directive, ARM: ARM Directives. (line 248)
  19990. * .thumb_func directive, ARM: ARM Directives. (line 251)
  19991. * .thumb_set directive, ARM: ARM Directives. (line 262)
  19992. * .tlsdescadd directive, AArch64: AArch64 Directives. (line 64)
  19993. * .tlsdesccall directive, AArch64: AArch64 Directives. (line 67)
  19994. * .tlsdescldr directive, AArch64: AArch64 Directives. (line 70)
  19995. * .tlsdescseq directive, ARM: ARM Directives. (line 269)
  19996. * .unreq directive, AArch64: AArch64 Directives. (line 73)
  19997. * .unreq directive, ARM: ARM Directives. (line 274)
  19998. * .unwind_raw directive, ARM: ARM Directives. (line 285)
  19999. * .v850 directive, V850: V850 Directives. (line 14)
  20000. * .v850e directive, V850: V850 Directives. (line 20)
  20001. * .v850e1 directive, V850: V850 Directives. (line 26)
  20002. * .v850e2 directive, V850: V850 Directives. (line 32)
  20003. * .v850e2v3 directive, V850: V850 Directives. (line 38)
  20004. * .v850e2v4 directive, V850: V850 Directives. (line 44)
  20005. * .v850e3v5 directive, V850: V850 Directives. (line 50)
  20006. * .vsave directive, ARM: ARM Directives. (line 292)
  20007. * .xword directive, AArch64: AArch64 Directives. (line 84)
  20008. * .z8001: Z8000 Directives. (line 11)
  20009. * .z8002: Z8000 Directives. (line 15)
  20010. * 16-bit code, i386: i386-16bit. (line 6)
  20011. * 16bit_pointers directive, XStormy16: XStormy16 Directives.
  20012. (line 6)
  20013. * 16byte directive, Nios II: Nios II Directives. (line 28)
  20014. * 16byte directive, PRU: PRU Directives. (line 25)
  20015. * 2byte directive: 2byte. (line 6)
  20016. * 2byte directive, Nios II: Nios II Directives. (line 19)
  20017. * 2byte directive, PRU: PRU Directives. (line 16)
  20018. * 32bit_pointers directive, XStormy16: XStormy16 Directives.
  20019. (line 10)
  20020. * 3DNow!, i386: i386-SIMD. (line 6)
  20021. * 3DNow!, x86-64: i386-SIMD. (line 6)
  20022. * 430 support: MSP430-Dependent. (line 6)
  20023. * 4byte directive: 4byte. (line 6)
  20024. * 4byte directive, Nios II: Nios II Directives. (line 22)
  20025. * 4byte directive, PRU: PRU Directives. (line 19)
  20026. * 8byte directive: 8byte. (line 6)
  20027. * 8byte directive, Nios II: Nios II Directives. (line 25)
  20028. * 8byte directive, PRU: PRU Directives. (line 22)
  20029. * : (label): Statements. (line 31)
  20030. * @gotoff(SYMBOL), ARC modifier: ARC Modifiers. (line 20)
  20031. * @gotpc(SYMBOL), ARC modifier: ARC Modifiers. (line 16)
  20032. * @hi pseudo-op, XStormy16: XStormy16 Opcodes. (line 21)
  20033. * @lo pseudo-op, XStormy16: XStormy16 Opcodes. (line 10)
  20034. * @pcl(SYMBOL), ARC modifier: ARC Modifiers. (line 12)
  20035. * @plt(SYMBOL), ARC modifier: ARC Modifiers. (line 23)
  20036. * @sda(SYMBOL), ARC modifier: ARC Modifiers. (line 28)
  20037. * @word modifier, D10V: D10V-Word. (line 6)
  20038. * _ opcode prefix: Xtensa Opcodes. (line 9)
  20039. * __DYNAMIC__, ARC pre-defined symbol: ARC Symbols. (line 14)
  20040. * __GLOBAL_OFFSET_TABLE__, ARC pre-defined symbol: ARC Symbols.
  20041. (line 11)
  20042. * a.out: Object. (line 6)
  20043. * a.out symbol attributes: a.out Symbols. (line 6)
  20044. * AArch64 floating point (IEEE): AArch64 Floating Point.
  20045. (line 6)
  20046. * AArch64 immediate character: AArch64-Chars. (line 13)
  20047. * AArch64 line comment character: AArch64-Chars. (line 6)
  20048. * AArch64 line separator: AArch64-Chars. (line 10)
  20049. * AArch64 machine directives: AArch64 Directives. (line 6)
  20050. * AArch64 opcodes: AArch64 Opcodes. (line 6)
  20051. * AArch64 options (none): AArch64 Options. (line 6)
  20052. * AArch64 register names: AArch64-Regs. (line 6)
  20053. * AArch64 relocations: AArch64-Relocations.
  20054. (line 6)
  20055. * AArch64 support: AArch64-Dependent. (line 6)
  20056. * abort directive: Abort. (line 6)
  20057. * ABORT directive: ABORT (COFF). (line 6)
  20058. * absolute section: Ld Sections. (line 29)
  20059. * absolute-literals directive: Absolute Literals Directive.
  20060. (line 6)
  20061. * ADDI instructions, relaxation: Xtensa Immediate Relaxation.
  20062. (line 43)
  20063. * addition, permitted arguments: Infix Ops. (line 45)
  20064. * addresses: Expressions. (line 6)
  20065. * addresses, format of: Secs Background. (line 65)
  20066. * addressing modes, D10V: D10V-Addressing. (line 6)
  20067. * addressing modes, D30V: D30V-Addressing. (line 6)
  20068. * addressing modes, H8/300: H8/300-Addressing. (line 6)
  20069. * addressing modes, M680x0: M68K-Syntax. (line 21)
  20070. * addressing modes, M68HC11: M68HC11-Syntax. (line 29)
  20071. * addressing modes, S12Z: S12Z-Syntax. (line 41)
  20072. * addressing modes, SH: SH-Addressing. (line 6)
  20073. * addressing modes, XGATE: XGATE-Syntax. (line 28)
  20074. * addressing modes, Z8000: Z8000-Addressing. (line 6)
  20075. * ADR reg,<label> pseudo op, ARM: ARM Opcodes. (line 25)
  20076. * ADRL reg,<label> pseudo op, ARM: ARM Opcodes. (line 43)
  20077. * ADRP, ADD, LDR/STR group relocations, AArch64: AArch64-Relocations.
  20078. (line 14)
  20079. * advancing location counter: Org. (line 6)
  20080. * align directive: Align. (line 6)
  20081. * align directive <1>: RISC-V-Directives. (line 8)
  20082. * align directive, Nios II: Nios II Directives. (line 6)
  20083. * align directive, OpenRISC: OpenRISC-Directives.
  20084. (line 9)
  20085. * align directive, PRU: PRU Directives. (line 6)
  20086. * align directive, SPARC: Sparc-Directives. (line 9)
  20087. * align directive, TIC54X: TIC54X-Directives. (line 6)
  20088. * aligned instruction bundle: Bundle directives. (line 9)
  20089. * alignment for NEON instructions: ARM-Neon-Alignment. (line 6)
  20090. * alignment of branch targets: Xtensa Automatic Alignment.
  20091. (line 6)
  20092. * alignment of LOOP instructions: Xtensa Automatic Alignment.
  20093. (line 6)
  20094. * Alpha floating point (IEEE): Alpha Floating Point.
  20095. (line 6)
  20096. * Alpha line comment character: Alpha-Chars. (line 6)
  20097. * Alpha line separator: Alpha-Chars. (line 11)
  20098. * Alpha notes: Alpha Notes. (line 6)
  20099. * Alpha options: Alpha Options. (line 6)
  20100. * Alpha registers: Alpha-Regs. (line 6)
  20101. * Alpha relocations: Alpha-Relocs. (line 6)
  20102. * Alpha support: Alpha-Dependent. (line 6)
  20103. * Alpha Syntax: Alpha Options. (line 60)
  20104. * Alpha-only directives: Alpha Directives. (line 9)
  20105. * Altera Nios II support: NiosII-Dependent. (line 6)
  20106. * altered difference tables: Word. (line 12)
  20107. * alternate syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  20108. * ARC Branch Target Address: ARC-Regs. (line 60)
  20109. * ARC BTA saved on exception entry: ARC-Regs. (line 79)
  20110. * ARC Build configuration for: BTA Registers: ARC-Regs. (line 89)
  20111. * ARC Build configuration for: Core Registers: ARC-Regs. (line 97)
  20112. * ARC Build configuration for: Interrupts: ARC-Regs. (line 93)
  20113. * ARC Build Configuration Registers Version: ARC-Regs. (line 85)
  20114. * ARC C preprocessor macro separator: ARC-Chars. (line 31)
  20115. * ARC core general registers: ARC-Regs. (line 10)
  20116. * ARC DCCM RAM Configuration Register: ARC-Regs. (line 101)
  20117. * ARC Exception Cause Register: ARC-Regs. (line 63)
  20118. * ARC Exception Return Address: ARC-Regs. (line 76)
  20119. * ARC extension core registers: ARC-Regs. (line 38)
  20120. * ARC frame pointer: ARC-Regs. (line 17)
  20121. * ARC global pointer: ARC-Regs. (line 14)
  20122. * ARC interrupt link register: ARC-Regs. (line 27)
  20123. * ARC Interrupt Vector Base address: ARC-Regs. (line 66)
  20124. * ARC level 1 interrupt link register: ARC-Regs. (line 23)
  20125. * ARC level 2 interrupt link register: ARC-Regs. (line 31)
  20126. * ARC line comment character: ARC-Chars. (line 11)
  20127. * ARC line separator: ARC-Chars. (line 27)
  20128. * ARC link register: ARC-Regs. (line 35)
  20129. * ARC loop counter: ARC-Regs. (line 41)
  20130. * ARC machine directives: ARC Directives. (line 6)
  20131. * ARC opcodes: ARC Opcodes. (line 6)
  20132. * ARC options: ARC Options. (line 6)
  20133. * ARC Processor Identification register: ARC-Regs. (line 51)
  20134. * ARC Program Counter: ARC-Regs. (line 54)
  20135. * ARC register name prefix character: ARC-Chars. (line 7)
  20136. * ARC register names: ARC-Regs. (line 6)
  20137. * ARC Saved User Stack Pointer: ARC-Regs. (line 73)
  20138. * ARC stack pointer: ARC-Regs. (line 20)
  20139. * ARC Status register: ARC-Regs. (line 57)
  20140. * ARC STATUS32 saved on exception: ARC-Regs. (line 82)
  20141. * ARC Stored STATUS32 register on entry to level P0 interrupts: ARC-Regs.
  20142. (line 69)
  20143. * ARC support: ARC-Dependent. (line 6)
  20144. * ARC symbol prefix character: ARC-Chars. (line 20)
  20145. * ARC word aligned program counter: ARC-Regs. (line 44)
  20146. * arch directive, i386: i386-Arch. (line 6)
  20147. * arch directive, M680x0: M68K-Directives. (line 22)
  20148. * arch directive, MSP 430: MSP430 Directives. (line 18)
  20149. * arch directive, x86-64: i386-Arch. (line 6)
  20150. * architecture options, IP2022: IP2K-Opts. (line 9)
  20151. * architecture options, IP2K: IP2K-Opts. (line 14)
  20152. * architecture options, M16C: M32C-Opts. (line 12)
  20153. * architecture options, M32C: M32C-Opts. (line 9)
  20154. * architecture options, M32R: M32R-Opts. (line 21)
  20155. * architecture options, M32R2: M32R-Opts. (line 17)
  20156. * architecture options, M32RX: M32R-Opts. (line 9)
  20157. * architecture options, M680x0: M68K-Opts. (line 99)
  20158. * Architecture variant option, CRIS: CRIS-Opts. (line 34)
  20159. * architectures, Meta: Meta Options. (line 6)
  20160. * architectures, PowerPC: PowerPC-Opts. (line 6)
  20161. * architectures, SCORE: SCORE-Opts. (line 6)
  20162. * architectures, SPARC: Sparc-Opts. (line 6)
  20163. * arguments for addition: Infix Ops. (line 45)
  20164. * arguments for subtraction: Infix Ops. (line 50)
  20165. * arguments in expressions: Arguments. (line 6)
  20166. * arithmetic functions: Operators. (line 6)
  20167. * arithmetic operands: Arguments. (line 6)
  20168. * ARM data relocations: ARM-Relocations. (line 6)
  20169. * ARM floating point (IEEE): ARM Floating Point. (line 6)
  20170. * ARM identifiers: ARM-Chars. (line 19)
  20171. * ARM immediate character: ARM-Chars. (line 17)
  20172. * ARM line comment character: ARM-Chars. (line 6)
  20173. * ARM line separator: ARM-Chars. (line 14)
  20174. * ARM machine directives: ARM Directives. (line 6)
  20175. * ARM opcodes: ARM Opcodes. (line 6)
  20176. * ARM options (none): ARM Options. (line 6)
  20177. * ARM register names: ARM-Regs. (line 6)
  20178. * ARM support: ARM-Dependent. (line 6)
  20179. * ascii directive: Ascii. (line 6)
  20180. * asciz directive: Asciz. (line 6)
  20181. * asg directive, TIC54X: TIC54X-Directives. (line 18)
  20182. * assembler bugs, reporting: Bug Reporting. (line 6)
  20183. * assembler crash: Bug Criteria. (line 9)
  20184. * assembler directive .3byte, RX: RX-Directives. (line 9)
  20185. * assembler directive .arch, CRIS: CRIS-Pseudos. (line 50)
  20186. * assembler directive .dword, CRIS: CRIS-Pseudos. (line 12)
  20187. * assembler directive .far, M68HC11: M68HC11-Directives. (line 20)
  20188. * assembler directive .fetchalign, RX: RX-Directives. (line 13)
  20189. * assembler directive .interrupt, M68HC11: M68HC11-Directives.
  20190. (line 26)
  20191. * assembler directive .mode, M68HC11: M68HC11-Directives. (line 16)
  20192. * assembler directive .relax, M68HC11: M68HC11-Directives. (line 10)
  20193. * assembler directive .syntax, CRIS: CRIS-Pseudos. (line 18)
  20194. * assembler directive .xrefb, M68HC11: M68HC11-Directives. (line 31)
  20195. * assembler directive BSPEC, MMIX: MMIX-Pseudos. (line 137)
  20196. * assembler directive BYTE, MMIX: MMIX-Pseudos. (line 101)
  20197. * assembler directive ESPEC, MMIX: MMIX-Pseudos. (line 137)
  20198. * assembler directive GREG, MMIX: MMIX-Pseudos. (line 53)
  20199. * assembler directive IS, MMIX: MMIX-Pseudos. (line 44)
  20200. * assembler directive LOC, MMIX: MMIX-Pseudos. (line 7)
  20201. * assembler directive LOCAL, MMIX: MMIX-Pseudos. (line 29)
  20202. * assembler directive OCTA, MMIX: MMIX-Pseudos. (line 113)
  20203. * assembler directive PREFIX, MMIX: MMIX-Pseudos. (line 125)
  20204. * assembler directive TETRA, MMIX: MMIX-Pseudos. (line 113)
  20205. * assembler directive WYDE, MMIX: MMIX-Pseudos. (line 113)
  20206. * assembler directives, CRIS: CRIS-Pseudos. (line 6)
  20207. * assembler directives, M68HC11: M68HC11-Directives. (line 6)
  20208. * assembler directives, M68HC12: M68HC11-Directives. (line 6)
  20209. * assembler directives, MMIX: MMIX-Pseudos. (line 6)
  20210. * assembler directives, RL78: RL78-Directives. (line 6)
  20211. * assembler directives, RX: RX-Directives. (line 6)
  20212. * assembler directives, S12Z: S12Z-Directives. (line 5)
  20213. * assembler directives, XGATE: XGATE-Directives. (line 6)
  20214. * assembler internal logic error: As Sections. (line 13)
  20215. * assembler version: v. (line 6)
  20216. * assembler, and linker: Secs Background. (line 10)
  20217. * assembly listings, enabling: a. (line 6)
  20218. * assigning values to symbols: Setting Symbols. (line 6)
  20219. * assigning values to symbols <1>: Equ. (line 6)
  20220. * at register, MIPS: MIPS Macros. (line 35)
  20221. * attributes, symbol: Symbol Attributes. (line 6)
  20222. * att_syntax pseudo op, i386: i386-Variations. (line 6)
  20223. * att_syntax pseudo op, x86-64: i386-Variations. (line 6)
  20224. * auxiliary attributes, COFF symbols: COFF Symbols. (line 19)
  20225. * auxiliary symbol information, COFF: Dim. (line 6)
  20226. * AVR line comment character: AVR-Chars. (line 6)
  20227. * AVR line separator: AVR-Chars. (line 14)
  20228. * AVR modifiers: AVR-Modifiers. (line 6)
  20229. * AVR opcode summary: AVR Opcodes. (line 6)
  20230. * AVR options (none): AVR Options. (line 6)
  20231. * AVR register names: AVR-Regs. (line 6)
  20232. * AVR support: AVR-Dependent. (line 6)
  20233. * A_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  20234. * backslash (\\): Strings. (line 40)
  20235. * backspace (\b): Strings. (line 15)
  20236. * balign directive: Balign. (line 6)
  20237. * balignl directive: Balign. (line 27)
  20238. * balignw directive: Balign. (line 27)
  20239. * bes directive, TIC54X: TIC54X-Directives. (line 194)
  20240. * big endian output, MIPS: Overview. (line 834)
  20241. * big endian output, PJ: Overview. (line 738)
  20242. * big-endian output, MIPS: MIPS Options. (line 13)
  20243. * big-endian output, TIC6X: TIC6X Options. (line 46)
  20244. * bignums: Bignums. (line 6)
  20245. * binary constants, TIC54X: TIC54X-Constants. (line 8)
  20246. * binary files, including: Incbin. (line 6)
  20247. * binary integers: Integers. (line 6)
  20248. * bit names, IA-64: IA-64-Bits. (line 6)
  20249. * bitfields, not supported on VAX: VAX-no. (line 6)
  20250. * Blackfin directives: Blackfin Directives.
  20251. (line 6)
  20252. * Blackfin options (none): Blackfin Options. (line 6)
  20253. * Blackfin support: Blackfin-Dependent. (line 6)
  20254. * Blackfin syntax: Blackfin Syntax. (line 6)
  20255. * block: Z8000 Directives. (line 55)
  20256. * BMI, i386: i386-BMI. (line 6)
  20257. * BMI, x86-64: i386-BMI. (line 6)
  20258. * branch improvement, M680x0: M68K-Branch. (line 6)
  20259. * branch improvement, M68HC11: M68HC11-Branch. (line 6)
  20260. * branch improvement, VAX: VAX-branch. (line 6)
  20261. * branch instructions, relaxation: Xtensa Branch Relaxation.
  20262. (line 6)
  20263. * Branch Target Address, ARC: ARC-Regs. (line 60)
  20264. * branch target alignment: Xtensa Automatic Alignment.
  20265. (line 6)
  20266. * break directive, TIC54X: TIC54X-Directives. (line 141)
  20267. * BSD syntax: PDP-11-Syntax. (line 6)
  20268. * BSS directive: RISC-V-Directives. (line 24)
  20269. * bss directive, TIC54X: TIC54X-Directives. (line 27)
  20270. * bss section: Ld Sections. (line 20)
  20271. * bss section <1>: bss. (line 6)
  20272. * BTA saved on exception entry, ARC: ARC-Regs. (line 79)
  20273. * bug criteria: Bug Criteria. (line 6)
  20274. * bug reports: Bug Reporting. (line 6)
  20275. * bugs in assembler: Reporting Bugs. (line 6)
  20276. * Build configuration for: BTA Registers, ARC: ARC-Regs. (line 89)
  20277. * Build configuration for: Core Registers, ARC: ARC-Regs. (line 97)
  20278. * Build configuration for: Interrupts, ARC: ARC-Regs. (line 93)
  20279. * Build Configuration Registers Version, ARC: ARC-Regs. (line 85)
  20280. * Built-in symbols, CRIS: CRIS-Symbols. (line 6)
  20281. * builtin math functions, TIC54X: TIC54X-Builtins. (line 6)
  20282. * builtin subsym functions, TIC54X: TIC54X-Macros. (line 16)
  20283. * bundle: Bundle directives. (line 9)
  20284. * bundle-locked: Bundle directives. (line 39)
  20285. * bundle_align_mode directive: Bundle directives. (line 9)
  20286. * bundle_lock directive: Bundle directives. (line 31)
  20287. * bundle_unlock directive: Bundle directives. (line 31)
  20288. * bus lock prefixes, i386: i386-Prefixes. (line 36)
  20289. * bval: Z8000 Directives. (line 30)
  20290. * byte directive: Byte. (line 6)
  20291. * byte directive, TIC54X: TIC54X-Directives. (line 34)
  20292. * C preprocessor macro separator, ARC: ARC-Chars. (line 31)
  20293. * C-SKY options: C-SKY Options. (line 6)
  20294. * C-SKY support: C-SKY-Dependent. (line 6)
  20295. * C54XDSP_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  20296. * call directive, Nios II: Nios II Relocations.
  20297. (line 38)
  20298. * call instructions, i386: i386-Mnemonics. (line 75)
  20299. * call instructions, relaxation: Xtensa Call Relaxation.
  20300. (line 6)
  20301. * call instructions, x86-64: i386-Mnemonics. (line 75)
  20302. * call_hiadj directive, Nios II: Nios II Relocations.
  20303. (line 38)
  20304. * call_lo directive, Nios II: Nios II Relocations.
  20305. (line 38)
  20306. * carriage return (backslash-r): Strings. (line 24)
  20307. * case sensitivity, Z80: Z80-Case. (line 6)
  20308. * cfi_endproc directive: CFI directives. (line 40)
  20309. * cfi_fde_data directive: CFI directives. (line 66)
  20310. * cfi_personality directive: CFI directives. (line 47)
  20311. * cfi_personality_id directive: CFI directives. (line 59)
  20312. * cfi_sections directive: CFI directives. (line 9)
  20313. * cfi_startproc directive: CFI directives. (line 30)
  20314. * char directive, TIC54X: TIC54X-Directives. (line 34)
  20315. * character constant, Z80: Z80-Chars. (line 20)
  20316. * character constants: Characters. (line 6)
  20317. * character escape codes: Strings. (line 15)
  20318. * character escapes, Z80: Z80-Chars. (line 18)
  20319. * character, single: Chars. (line 6)
  20320. * characters used in symbols: Symbol Intro. (line 6)
  20321. * clink directive, TIC54X: TIC54X-Directives. (line 43)
  20322. * code16 directive, i386: i386-16bit. (line 6)
  20323. * code16gcc directive, i386: i386-16bit. (line 6)
  20324. * code32 directive, i386: i386-16bit. (line 6)
  20325. * code64 directive, i386: i386-16bit. (line 6)
  20326. * code64 directive, x86-64: i386-16bit. (line 6)
  20327. * COFF auxiliary symbol information: Dim. (line 6)
  20328. * COFF structure debugging: Tag. (line 6)
  20329. * COFF symbol attributes: COFF Symbols. (line 6)
  20330. * COFF symbol descriptor: Desc. (line 6)
  20331. * COFF symbol storage class: Scl. (line 6)
  20332. * COFF symbol type: Type. (line 11)
  20333. * COFF symbols, debugging: Def. (line 6)
  20334. * COFF value attribute: Val. (line 6)
  20335. * COMDAT: Linkonce. (line 6)
  20336. * comm directive: Comm. (line 6)
  20337. * command line conventions: Command Line. (line 6)
  20338. * command-line options ignored, VAX: VAX-Opts. (line 6)
  20339. * command-line options, V850: V850 Options. (line 9)
  20340. * comment character, XStormy16: XStormy16-Chars. (line 11)
  20341. * comments: Comments. (line 6)
  20342. * comments, M680x0: M68K-Chars. (line 6)
  20343. * comments, removed by preprocessor: Preprocessing. (line 11)
  20344. * common directive, SPARC: Sparc-Directives. (line 12)
  20345. * common sections: Linkonce. (line 6)
  20346. * common variable storage: bss. (line 6)
  20347. * comparison expressions: Infix Ops. (line 56)
  20348. * conditional assembly: If. (line 6)
  20349. * constant, single character: Chars. (line 6)
  20350. * constants: Constants. (line 6)
  20351. * constants, bignum: Bignums. (line 6)
  20352. * constants, character: Characters. (line 6)
  20353. * constants, converted by preprocessor: Preprocessing. (line 14)
  20354. * constants, floating point: Flonums. (line 6)
  20355. * constants, integer: Integers. (line 6)
  20356. * constants, number: Numbers. (line 6)
  20357. * constants, Sparc: Sparc-Constants. (line 6)
  20358. * constants, string: Strings. (line 6)
  20359. * constants, TIC54X: TIC54X-Constants. (line 6)
  20360. * conversion instructions, i386: i386-Mnemonics. (line 56)
  20361. * conversion instructions, x86-64: i386-Mnemonics. (line 56)
  20362. * coprocessor wait, i386: i386-Prefixes. (line 40)
  20363. * copy directive, TIC54X: TIC54X-Directives. (line 52)
  20364. * core general registers, ARC: ARC-Regs. (line 10)
  20365. * cpu directive, ARC: ARC Directives. (line 27)
  20366. * cpu directive, M680x0: M68K-Directives. (line 30)
  20367. * cpu directive, MSP 430: MSP430 Directives. (line 22)
  20368. * CR16 line comment character: CR16-Chars. (line 6)
  20369. * CR16 line separator: CR16-Chars. (line 12)
  20370. * CR16 Operand Qualifiers: CR16 Operand Qualifiers.
  20371. (line 6)
  20372. * CR16 support: CR16-Dependent. (line 6)
  20373. * crash of assembler: Bug Criteria. (line 9)
  20374. * CRIS --emulation=crisaout command-line option: CRIS-Opts. (line 9)
  20375. * CRIS --emulation=criself command-line option: CRIS-Opts. (line 9)
  20376. * CRIS --march=ARCHITECTURE command-line option: CRIS-Opts. (line 34)
  20377. * CRIS --mul-bug-abort command-line option: CRIS-Opts. (line 63)
  20378. * CRIS --no-mul-bug-abort command-line option: CRIS-Opts. (line 63)
  20379. * CRIS --no-underscore command-line option: CRIS-Opts. (line 15)
  20380. * CRIS --pic command-line option: CRIS-Opts. (line 27)
  20381. * CRIS --underscore command-line option: CRIS-Opts. (line 15)
  20382. * CRIS -N command-line option: CRIS-Opts. (line 59)
  20383. * CRIS architecture variant option: CRIS-Opts. (line 34)
  20384. * CRIS assembler directive .arch: CRIS-Pseudos. (line 50)
  20385. * CRIS assembler directive .dword: CRIS-Pseudos. (line 12)
  20386. * CRIS assembler directive .syntax: CRIS-Pseudos. (line 18)
  20387. * CRIS assembler directives: CRIS-Pseudos. (line 6)
  20388. * CRIS built-in symbols: CRIS-Symbols. (line 6)
  20389. * CRIS instruction expansion: CRIS-Expand. (line 6)
  20390. * CRIS line comment characters: CRIS-Chars. (line 6)
  20391. * CRIS options: CRIS-Opts. (line 6)
  20392. * CRIS position-independent code: CRIS-Opts. (line 27)
  20393. * CRIS pseudo-op .arch: CRIS-Pseudos. (line 50)
  20394. * CRIS pseudo-op .dword: CRIS-Pseudos. (line 12)
  20395. * CRIS pseudo-op .syntax: CRIS-Pseudos. (line 18)
  20396. * CRIS pseudo-ops: CRIS-Pseudos. (line 6)
  20397. * CRIS register names: CRIS-Regs. (line 6)
  20398. * CRIS support: CRIS-Dependent. (line 6)
  20399. * CRIS symbols in position-independent code: CRIS-Pic. (line 6)
  20400. * ctbp register, V850: V850-Regs. (line 90)
  20401. * ctoff pseudo-op, V850: V850 Opcodes. (line 110)
  20402. * ctpc register, V850: V850-Regs. (line 82)
  20403. * ctpsw register, V850: V850-Regs. (line 84)
  20404. * current address: Dot. (line 6)
  20405. * current address, advancing: Org. (line 6)
  20406. * c_mode directive, TIC54X: TIC54X-Directives. (line 49)
  20407. * D10V @word modifier: D10V-Word. (line 6)
  20408. * D10V addressing modes: D10V-Addressing. (line 6)
  20409. * D10V floating point: D10V-Float. (line 6)
  20410. * D10V line comment character: D10V-Chars. (line 6)
  20411. * D10V opcode summary: D10V-Opcodes. (line 6)
  20412. * D10V optimization: Overview. (line 617)
  20413. * D10V options: D10V-Opts. (line 6)
  20414. * D10V registers: D10V-Regs. (line 6)
  20415. * D10V size modifiers: D10V-Size. (line 6)
  20416. * D10V sub-instruction ordering: D10V-Chars. (line 14)
  20417. * D10V sub-instructions: D10V-Subs. (line 6)
  20418. * D10V support: D10V-Dependent. (line 6)
  20419. * D10V syntax: D10V-Syntax. (line 6)
  20420. * D30V addressing modes: D30V-Addressing. (line 6)
  20421. * D30V floating point: D30V-Float. (line 6)
  20422. * D30V Guarded Execution: D30V-Guarded. (line 6)
  20423. * D30V line comment character: D30V-Chars. (line 6)
  20424. * D30V nops: Overview. (line 625)
  20425. * D30V nops after 32-bit multiply: Overview. (line 628)
  20426. * D30V opcode summary: D30V-Opcodes. (line 6)
  20427. * D30V optimization: Overview. (line 622)
  20428. * D30V options: D30V-Opts. (line 6)
  20429. * D30V registers: D30V-Regs. (line 6)
  20430. * D30V size modifiers: D30V-Size. (line 6)
  20431. * D30V sub-instruction ordering: D30V-Chars. (line 14)
  20432. * D30V sub-instructions: D30V-Subs. (line 6)
  20433. * D30V support: D30V-Dependent. (line 6)
  20434. * D30V syntax: D30V-Syntax. (line 6)
  20435. * data alignment on SPARC: Sparc-Aligned-Data. (line 6)
  20436. * data and text sections, joining: R. (line 6)
  20437. * data directive: Data. (line 6)
  20438. * data directive, TIC54X: TIC54X-Directives. (line 59)
  20439. * Data directives: RISC-V-Directives. (line 12)
  20440. * data relocations, ARM: ARM-Relocations. (line 6)
  20441. * data section: Ld Sections. (line 9)
  20442. * data1 directive, M680x0: M68K-Directives. (line 9)
  20443. * data2 directive, M680x0: M68K-Directives. (line 12)
  20444. * dbpc register, V850: V850-Regs. (line 86)
  20445. * dbpsw register, V850: V850-Regs. (line 88)
  20446. * dc directive: Dc. (line 6)
  20447. * dcb directive: Dcb. (line 6)
  20448. * DCCM RAM Configuration Register, ARC: ARC-Regs. (line 101)
  20449. * debuggers, and symbol order: Symbols. (line 10)
  20450. * debugging COFF symbols: Def. (line 6)
  20451. * DEC syntax: PDP-11-Syntax. (line 6)
  20452. * decimal integers: Integers. (line 12)
  20453. * def directive: Def. (line 6)
  20454. * def directive, TIC54X: TIC54X-Directives. (line 101)
  20455. * density instructions: Density Instructions.
  20456. (line 6)
  20457. * dependency tracking: MD. (line 6)
  20458. * deprecated directives: Deprecated. (line 6)
  20459. * desc directive: Desc. (line 6)
  20460. * descriptor, of a.out symbol: Symbol Desc. (line 6)
  20461. * dfloat directive, VAX: VAX-directives. (line 9)
  20462. * difference tables altered: Word. (line 12)
  20463. * difference tables, warning: K. (line 6)
  20464. * differences, mmixal: MMIX-mmixal. (line 6)
  20465. * dim directive: Dim. (line 6)
  20466. * directives and instructions: Statements. (line 20)
  20467. * directives for PowerPC: PowerPC-Pseudo. (line 6)
  20468. * directives for SCORE: SCORE-Pseudo. (line 6)
  20469. * directives, Blackfin: Blackfin Directives.
  20470. (line 6)
  20471. * directives, M32R: M32R-Directives. (line 6)
  20472. * directives, M680x0: M68K-Directives. (line 6)
  20473. * directives, machine independent: Pseudo Ops. (line 6)
  20474. * directives, Xtensa: Xtensa Directives. (line 6)
  20475. * directives, Z8000: Z8000 Directives. (line 6)
  20476. * Disable floating-point instructions: MIPS Floating-Point.
  20477. (line 6)
  20478. * Disable single-precision floating-point operations: MIPS Floating-Point.
  20479. (line 12)
  20480. * displacement sizing character, VAX: VAX-operands. (line 12)
  20481. * dollar local symbols: Symbol Names. (line 113)
  20482. * dot (symbol): Dot. (line 6)
  20483. * double directive: Double. (line 6)
  20484. * double directive, i386: i386-Float. (line 14)
  20485. * double directive, M680x0: M68K-Float. (line 14)
  20486. * double directive, M68HC11: M68HC11-Float. (line 14)
  20487. * double directive, RX: RX-Float. (line 11)
  20488. * double directive, TIC54X: TIC54X-Directives. (line 62)
  20489. * double directive, VAX: VAX-float. (line 15)
  20490. * double directive, x86-64: i386-Float. (line 14)
  20491. * double directive, XGATE: XGATE-Float. (line 13)
  20492. * doublequote (\"): Strings. (line 43)
  20493. * drlist directive, TIC54X: TIC54X-Directives. (line 71)
  20494. * drnolist directive, TIC54X: TIC54X-Directives. (line 71)
  20495. * ds directive: Ds. (line 6)
  20496. * DTP-relative data directives: RISC-V-Directives. (line 18)
  20497. * dword directive, Nios II: Nios II Directives. (line 16)
  20498. * dword directive, PRU: PRU Directives. (line 13)
  20499. * EB command-line option, C-SKY: C-SKY Options. (line 18)
  20500. * EB command-line option, Nios II: Nios II Options. (line 22)
  20501. * ecr register, V850: V850-Regs. (line 78)
  20502. * eight-byte integer: Quad. (line 9)
  20503. * eight-byte integer <1>: 8byte. (line 6)
  20504. * eipc register, V850: V850-Regs. (line 70)
  20505. * eipsw register, V850: V850-Regs. (line 72)
  20506. * eject directive: Eject. (line 6)
  20507. * EL command-line option, C-SKY: C-SKY Options. (line 14)
  20508. * EL command-line option, Nios II: Nios II Options. (line 25)
  20509. * ELF symbol type: Type. (line 22)
  20510. * else directive: Else. (line 6)
  20511. * elseif directive: Elseif. (line 6)
  20512. * empty expressions: Empty Exprs. (line 6)
  20513. * emsg directive, TIC54X: TIC54X-Directives. (line 75)
  20514. * emulation: Overview. (line 1088)
  20515. * encoding options, i386: i386-Mnemonics. (line 34)
  20516. * encoding options, x86-64: i386-Mnemonics. (line 34)
  20517. * end directive: End. (line 6)
  20518. * endef directive: Endef. (line 6)
  20519. * endfunc directive: Endfunc. (line 6)
  20520. * endianness, MIPS: Overview. (line 834)
  20521. * endianness, PJ: Overview. (line 738)
  20522. * endif directive: Endif. (line 6)
  20523. * endloop directive, TIC54X: TIC54X-Directives. (line 141)
  20524. * endm directive: Macro. (line 137)
  20525. * endm directive, TIC54X: TIC54X-Directives. (line 151)
  20526. * endproc directive, OpenRISC: OpenRISC-Directives.
  20527. (line 24)
  20528. * endstruct directive, TIC54X: TIC54X-Directives. (line 214)
  20529. * endunion directive, TIC54X: TIC54X-Directives. (line 248)
  20530. * environment settings, TIC54X: TIC54X-Env. (line 6)
  20531. * EOF, newline must precede: Statements. (line 14)
  20532. * ep register, V850: V850-Regs. (line 66)
  20533. * Epiphany line comment character: Epiphany-Chars. (line 6)
  20534. * Epiphany line separator: Epiphany-Chars. (line 14)
  20535. * Epiphany options: Epiphany Options. (line 6)
  20536. * Epiphany support: Epiphany-Dependent. (line 6)
  20537. * equ directive: Equ. (line 6)
  20538. * equ directive, TIC54X: TIC54X-Directives. (line 189)
  20539. * equiv directive: Equiv. (line 6)
  20540. * eqv directive: Eqv. (line 6)
  20541. * err directive: Err. (line 6)
  20542. * error directive: Error. (line 6)
  20543. * error messages: Errors. (line 6)
  20544. * error on valid input: Bug Criteria. (line 12)
  20545. * errors, caused by warnings: W. (line 16)
  20546. * errors, continuing after: Z. (line 6)
  20547. * escape codes, character: Strings. (line 15)
  20548. * eval directive, TIC54X: TIC54X-Directives. (line 22)
  20549. * even: Z8000 Directives. (line 58)
  20550. * even directive, M680x0: M68K-Directives. (line 15)
  20551. * even directive, TIC54X: TIC54X-Directives. (line 6)
  20552. * Exception Cause Register, ARC: ARC-Regs. (line 63)
  20553. * Exception Return Address, ARC: ARC-Regs. (line 76)
  20554. * exitm directive: Macro. (line 140)
  20555. * expr (internal section): As Sections. (line 17)
  20556. * expression arguments: Arguments. (line 6)
  20557. * expressions: Expressions. (line 6)
  20558. * expressions, comparison: Infix Ops. (line 56)
  20559. * expressions, empty: Empty Exprs. (line 6)
  20560. * expressions, integer: Integer Exprs. (line 6)
  20561. * extAuxRegister directive, ARC: ARC Directives. (line 105)
  20562. * extCondCode directive, ARC: ARC Directives. (line 126)
  20563. * extCoreRegister directive, ARC: ARC Directives. (line 137)
  20564. * extend directive M680x0: M68K-Float. (line 17)
  20565. * extend directive M68HC11: M68HC11-Float. (line 17)
  20566. * extend directive XGATE: XGATE-Float. (line 16)
  20567. * extension core registers, ARC: ARC-Regs. (line 38)
  20568. * extern directive: Extern. (line 6)
  20569. * extInstruction directive, ARC: ARC Directives. (line 164)
  20570. * fail directive: Fail. (line 6)
  20571. * far_mode directive, TIC54X: TIC54X-Directives. (line 80)
  20572. * faster processing (-f): f. (line 6)
  20573. * fatal signal: Bug Criteria. (line 9)
  20574. * fclist directive, TIC54X: TIC54X-Directives. (line 85)
  20575. * fcnolist directive, TIC54X: TIC54X-Directives. (line 85)
  20576. * fepc register, V850: V850-Regs. (line 74)
  20577. * fepsw register, V850: V850-Regs. (line 76)
  20578. * ffloat directive, VAX: VAX-directives. (line 13)
  20579. * field directive, TIC54X: TIC54X-Directives. (line 89)
  20580. * file directive: File. (line 6)
  20581. * file directive, MSP 430: MSP430 Directives. (line 6)
  20582. * file name, logical: File. (line 13)
  20583. * file names and line numbers, in warnings/errors: Errors. (line 16)
  20584. * files, including: Include. (line 6)
  20585. * files, input: Input Files. (line 6)
  20586. * fill directive: Fill. (line 6)
  20587. * filling memory: Skip. (line 6)
  20588. * filling memory <1>: Space. (line 6)
  20589. * filling memory with no-op instructions: Nops. (line 6)
  20590. * filling memory with zero bytes: Zero. (line 6)
  20591. * FLIX syntax: Xtensa Syntax. (line 6)
  20592. * float directive: Float. (line 6)
  20593. * float directive, i386: i386-Float. (line 14)
  20594. * float directive, M680x0: M68K-Float. (line 11)
  20595. * float directive, M68HC11: M68HC11-Float. (line 11)
  20596. * float directive, RX: RX-Float. (line 8)
  20597. * float directive, TIC54X: TIC54X-Directives. (line 62)
  20598. * float directive, VAX: VAX-float. (line 15)
  20599. * float directive, x86-64: i386-Float. (line 14)
  20600. * float directive, XGATE: XGATE-Float. (line 10)
  20601. * floating point numbers: Flonums. (line 6)
  20602. * floating point numbers (double): Double. (line 6)
  20603. * floating point numbers (single): Float. (line 6)
  20604. * floating point numbers (single) <1>: Single. (line 6)
  20605. * floating point, AArch64 (IEEE): AArch64 Floating Point.
  20606. (line 6)
  20607. * floating point, Alpha (IEEE): Alpha Floating Point.
  20608. (line 6)
  20609. * floating point, ARM (IEEE): ARM Floating Point. (line 6)
  20610. * floating point, D10V: D10V-Float. (line 6)
  20611. * floating point, D30V: D30V-Float. (line 6)
  20612. * floating point, H8/300 (IEEE): H8/300 Floating Point.
  20613. (line 6)
  20614. * floating point, HPPA (IEEE): HPPA Floating Point.
  20615. (line 6)
  20616. * floating point, i386: i386-Float. (line 6)
  20617. * floating point, M680x0: M68K-Float. (line 6)
  20618. * floating point, M68HC11: M68HC11-Float. (line 6)
  20619. * floating point, MSP 430 (IEEE): MSP430 Floating Point.
  20620. (line 6)
  20621. * floating point, OPENRISC (IEEE): OpenRISC-Float. (line 6)
  20622. * floating point, RX: RX-Float. (line 6)
  20623. * floating point, s390: s390 Floating Point.
  20624. (line 6)
  20625. * floating point, SH (IEEE): SH Floating Point. (line 6)
  20626. * floating point, SPARC (IEEE): Sparc-Float. (line 6)
  20627. * floating point, V850 (IEEE): V850 Floating Point.
  20628. (line 6)
  20629. * floating point, VAX: VAX-float. (line 6)
  20630. * floating point, WebAssembly (IEEE): WebAssembly-Floating-Point.
  20631. (line 6)
  20632. * floating point, x86-64: i386-Float. (line 6)
  20633. * floating point, XGATE: XGATE-Float. (line 6)
  20634. * floating point, Z80: Z80 Floating Point. (line 6)
  20635. * flonums: Flonums. (line 6)
  20636. * force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  20637. * format of error messages: Errors. (line 38)
  20638. * format of warning messages: Errors. (line 12)
  20639. * formfeed (\f): Strings. (line 18)
  20640. * four-byte integer: 4byte. (line 6)
  20641. * fpic command-line option, C-SKY: C-SKY Options. (line 22)
  20642. * frame pointer, ARC: ARC-Regs. (line 17)
  20643. * func directive: Func. (line 6)
  20644. * functions, in expressions: Operators. (line 6)
  20645. * gfloat directive, VAX: VAX-directives. (line 17)
  20646. * global: Z8000 Directives. (line 21)
  20647. * global directive: Global. (line 6)
  20648. * global directive, TIC54X: TIC54X-Directives. (line 101)
  20649. * global pointer, ARC: ARC-Regs. (line 14)
  20650. * got directive, Nios II: Nios II Relocations.
  20651. (line 38)
  20652. * gotoff directive, Nios II: Nios II Relocations.
  20653. (line 38)
  20654. * gotoff_hiadj directive, Nios II: Nios II Relocations.
  20655. (line 38)
  20656. * gotoff_lo directive, Nios II: Nios II Relocations.
  20657. (line 38)
  20658. * got_hiadj directive, Nios II: Nios II Relocations.
  20659. (line 38)
  20660. * got_lo directive, Nios II: Nios II Relocations.
  20661. (line 38)
  20662. * gp register, MIPS: MIPS Small Data. (line 6)
  20663. * gp register, V850: V850-Regs. (line 14)
  20664. * gprel directive, Nios II: Nios II Relocations.
  20665. (line 26)
  20666. * grouping data: Sub-Sections. (line 6)
  20667. * H8/300 addressing modes: H8/300-Addressing. (line 6)
  20668. * H8/300 floating point (IEEE): H8/300 Floating Point.
  20669. (line 6)
  20670. * H8/300 line comment character: H8/300-Chars. (line 6)
  20671. * H8/300 line separator: H8/300-Chars. (line 8)
  20672. * H8/300 machine directives (none): H8/300 Directives. (line 6)
  20673. * H8/300 opcode summary: H8/300 Opcodes. (line 6)
  20674. * H8/300 options: H8/300 Options. (line 6)
  20675. * H8/300 registers: H8/300-Regs. (line 6)
  20676. * H8/300 size suffixes: H8/300 Opcodes. (line 160)
  20677. * H8/300 support: H8/300-Dependent. (line 6)
  20678. * H8/300H, assembling for: H8/300 Directives. (line 8)
  20679. * half directive, Nios II: Nios II Directives. (line 10)
  20680. * half directive, SPARC: Sparc-Directives. (line 17)
  20681. * half directive, TIC54X: TIC54X-Directives. (line 109)
  20682. * hex character code (\XD...): Strings. (line 36)
  20683. * hexadecimal integers: Integers. (line 15)
  20684. * hexadecimal prefix, Z80: Z80-Chars. (line 15)
  20685. * hfloat directive, VAX: VAX-directives. (line 21)
  20686. * hi directive, Nios II: Nios II Relocations.
  20687. (line 20)
  20688. * hi pseudo-op, V850: V850 Opcodes. (line 33)
  20689. * hi0 pseudo-op, V850: V850 Opcodes. (line 10)
  20690. * hiadj directive, Nios II: Nios II Relocations.
  20691. (line 6)
  20692. * hidden directive: Hidden. (line 6)
  20693. * high directive, M32R: M32R-Directives. (line 18)
  20694. * hilo pseudo-op, V850: V850 Opcodes. (line 55)
  20695. * HPPA directives not supported: HPPA Directives. (line 11)
  20696. * HPPA floating point (IEEE): HPPA Floating Point.
  20697. (line 6)
  20698. * HPPA Syntax: HPPA Options. (line 7)
  20699. * HPPA-only directives: HPPA Directives. (line 24)
  20700. * hword directive: hword. (line 6)
  20701. * i386 16-bit code: i386-16bit. (line 6)
  20702. * i386 arch directive: i386-Arch. (line 6)
  20703. * i386 att_syntax pseudo op: i386-Variations. (line 6)
  20704. * i386 conversion instructions: i386-Mnemonics. (line 56)
  20705. * i386 floating point: i386-Float. (line 6)
  20706. * i386 immediate operands: i386-Variations. (line 15)
  20707. * i386 instruction naming: i386-Mnemonics. (line 9)
  20708. * i386 instruction prefixes: i386-Prefixes. (line 6)
  20709. * i386 intel_syntax pseudo op: i386-Variations. (line 6)
  20710. * i386 jump optimization: i386-Jumps. (line 6)
  20711. * i386 jump, call, return: i386-Variations. (line 40)
  20712. * i386 jump/call operands: i386-Variations. (line 15)
  20713. * i386 line comment character: i386-Chars. (line 6)
  20714. * i386 line separator: i386-Chars. (line 18)
  20715. * i386 memory references: i386-Memory. (line 6)
  20716. * i386 mnemonic compatibility: i386-Mnemonics. (line 81)
  20717. * i386 mul, imul instructions: i386-Notes. (line 6)
  20718. * i386 options: i386-Options. (line 6)
  20719. * i386 register operands: i386-Variations. (line 15)
  20720. * i386 registers: i386-Regs. (line 6)
  20721. * i386 sections: i386-Variations. (line 46)
  20722. * i386 size suffixes: i386-Variations. (line 28)
  20723. * i386 source, destination operands: i386-Variations. (line 21)
  20724. * i386 support: i386-Dependent. (line 6)
  20725. * i386 syntax compatibility: i386-Variations. (line 6)
  20726. * i80386 support: i386-Dependent. (line 6)
  20727. * IA-64 line comment character: IA-64-Chars. (line 6)
  20728. * IA-64 line separator: IA-64-Chars. (line 8)
  20729. * IA-64 options: IA-64 Options. (line 6)
  20730. * IA-64 Processor-status-Register bit names: IA-64-Bits. (line 6)
  20731. * IA-64 registers: IA-64-Regs. (line 6)
  20732. * IA-64 relocations: IA-64-Relocs. (line 6)
  20733. * IA-64 support: IA-64-Dependent. (line 6)
  20734. * IA-64 Syntax: IA-64 Options. (line 85)
  20735. * ident directive: Ident. (line 6)
  20736. * identifiers, ARM: ARM-Chars. (line 19)
  20737. * identifiers, MSP 430: MSP430-Chars. (line 17)
  20738. * if directive: If. (line 6)
  20739. * ifb directive: If. (line 21)
  20740. * ifc directive: If. (line 25)
  20741. * ifdef directive: If. (line 16)
  20742. * ifeq directive: If. (line 33)
  20743. * ifeqs directive: If. (line 36)
  20744. * ifge directive: If. (line 40)
  20745. * ifgt directive: If. (line 44)
  20746. * ifle directive: If. (line 48)
  20747. * iflt directive: If. (line 52)
  20748. * ifnb directive: If. (line 56)
  20749. * ifnc directive: If. (line 61)
  20750. * ifndef directive: If. (line 65)
  20751. * ifne directive: If. (line 72)
  20752. * ifnes directive: If. (line 76)
  20753. * ifnotdef directive: If. (line 65)
  20754. * immediate character, AArch64: AArch64-Chars. (line 13)
  20755. * immediate character, ARM: ARM-Chars. (line 17)
  20756. * immediate character, M680x0: M68K-Chars. (line 13)
  20757. * immediate character, VAX: VAX-operands. (line 6)
  20758. * immediate fields, relaxation: Xtensa Immediate Relaxation.
  20759. (line 6)
  20760. * immediate operands, i386: i386-Variations. (line 15)
  20761. * immediate operands, x86-64: i386-Variations. (line 15)
  20762. * imul instruction, i386: i386-Notes. (line 6)
  20763. * imul instruction, x86-64: i386-Notes. (line 6)
  20764. * incbin directive: Incbin. (line 6)
  20765. * include directive: Include. (line 6)
  20766. * include directive search path: I. (line 6)
  20767. * indirect character, VAX: VAX-operands. (line 9)
  20768. * infix operators: Infix Ops. (line 6)
  20769. * inhibiting interrupts, i386: i386-Prefixes. (line 36)
  20770. * input: Input Files. (line 6)
  20771. * input file linenumbers: Input Files. (line 35)
  20772. * INSN directives: RISC-V-Directives. (line 88)
  20773. * instruction aliases, s390: s390 Aliases. (line 6)
  20774. * instruction bundle: Bundle directives. (line 9)
  20775. * instruction expansion, CRIS: CRIS-Expand. (line 6)
  20776. * instruction expansion, MMIX: MMIX-Expand. (line 6)
  20777. * instruction formats, risc-v: RISC-V-Formats. (line 6)
  20778. * instruction formats, s390: s390 Formats. (line 6)
  20779. * instruction marker, s390: s390 Instruction Marker.
  20780. (line 6)
  20781. * instruction mnemonics, s390: s390 Mnemonics. (line 6)
  20782. * instruction naming, i386: i386-Mnemonics. (line 9)
  20783. * instruction naming, x86-64: i386-Mnemonics. (line 9)
  20784. * instruction operand modifier, s390: s390 Operand Modifier.
  20785. (line 6)
  20786. * instruction operands, s390: s390 Operands. (line 6)
  20787. * instruction prefixes, i386: i386-Prefixes. (line 6)
  20788. * instruction set, M680x0: M68K-opcodes. (line 6)
  20789. * instruction set, M68HC11: M68HC11-opcodes. (line 6)
  20790. * instruction set, S12Z: S12Z-opcodes. (line 6)
  20791. * instruction set, XGATE: XGATE-opcodes. (line 5)
  20792. * instruction summary, AVR: AVR Opcodes. (line 6)
  20793. * instruction summary, D10V: D10V-Opcodes. (line 6)
  20794. * instruction summary, D30V: D30V-Opcodes. (line 6)
  20795. * instruction summary, H8/300: H8/300 Opcodes. (line 6)
  20796. * instruction summary, LM32: LM32 Opcodes. (line 6)
  20797. * instruction summary, LM32 <1>: OpenRISC-Opcodes. (line 6)
  20798. * instruction summary, SH: SH Opcodes. (line 6)
  20799. * instruction summary, Z8000: Z8000 Opcodes. (line 6)
  20800. * instruction syntax, s390: s390 Syntax. (line 6)
  20801. * instructions and directives: Statements. (line 20)
  20802. * int directive: Int. (line 6)
  20803. * int directive, H8/300: H8/300 Directives. (line 6)
  20804. * int directive, i386: i386-Float. (line 21)
  20805. * int directive, TIC54X: TIC54X-Directives. (line 109)
  20806. * int directive, x86-64: i386-Float. (line 21)
  20807. * integer expressions: Integer Exprs. (line 6)
  20808. * integer, 16-byte: Octa. (line 6)
  20809. * integer, 2-byte: 2byte. (line 6)
  20810. * integer, 4-byte: 4byte. (line 6)
  20811. * integer, 8-byte: Quad. (line 9)
  20812. * integer, 8-byte <1>: 8byte. (line 6)
  20813. * integers: Integers. (line 6)
  20814. * integers, 16-bit: hword. (line 6)
  20815. * integers, 32-bit: Int. (line 6)
  20816. * integers, binary: Integers. (line 6)
  20817. * integers, decimal: Integers. (line 12)
  20818. * integers, hexadecimal: Integers. (line 15)
  20819. * integers, octal: Integers. (line 9)
  20820. * integers, one byte: Byte. (line 6)
  20821. * intel_syntax pseudo op, i386: i386-Variations. (line 6)
  20822. * intel_syntax pseudo op, x86-64: i386-Variations. (line 6)
  20823. * internal assembler sections: As Sections. (line 6)
  20824. * internal directive: Internal. (line 6)
  20825. * interrupt link register, ARC: ARC-Regs. (line 27)
  20826. * Interrupt Vector Base address, ARC: ARC-Regs. (line 66)
  20827. * invalid input: Bug Criteria. (line 14)
  20828. * invocation summary: Overview. (line 6)
  20829. * IP2K architecture options: IP2K-Opts. (line 9)
  20830. * IP2K architecture options <1>: IP2K-Opts. (line 14)
  20831. * IP2K line comment character: IP2K-Chars. (line 6)
  20832. * IP2K line separator: IP2K-Chars. (line 14)
  20833. * IP2K options: IP2K-Opts. (line 6)
  20834. * IP2K support: IP2K-Dependent. (line 6)
  20835. * irp directive: Irp. (line 6)
  20836. * irpc directive: Irpc. (line 6)
  20837. * joining text and data sections: R. (line 6)
  20838. * jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  20839. * jump instructions, i386: i386-Mnemonics. (line 75)
  20840. * jump instructions, relaxation: Xtensa Jump Relaxation.
  20841. (line 6)
  20842. * jump instructions, x86-64: i386-Mnemonics. (line 75)
  20843. * jump optimization, i386: i386-Jumps. (line 6)
  20844. * jump optimization, x86-64: i386-Jumps. (line 6)
  20845. * jump/call operands, i386: i386-Variations. (line 15)
  20846. * jump/call operands, x86-64: i386-Variations. (line 15)
  20847. * L16SI instructions, relaxation: Xtensa Immediate Relaxation.
  20848. (line 23)
  20849. * L16UI instructions, relaxation: Xtensa Immediate Relaxation.
  20850. (line 23)
  20851. * L32I instructions, relaxation: Xtensa Immediate Relaxation.
  20852. (line 23)
  20853. * L8UI instructions, relaxation: Xtensa Immediate Relaxation.
  20854. (line 23)
  20855. * label (:): Statements. (line 31)
  20856. * label directive, TIC54X: TIC54X-Directives. (line 121)
  20857. * labels: Labels. (line 6)
  20858. * largecomm directive, ELF: i386-Directives. (line 17)
  20859. * lcomm directive: Lcomm. (line 6)
  20860. * lcomm directive <1>: ARC Directives. (line 9)
  20861. * lcomm directive, COFF: i386-Directives. (line 6)
  20862. * lcommon directive, ARC: ARC Directives. (line 24)
  20863. * ld: Object. (line 15)
  20864. * ldouble directive M680x0: M68K-Float. (line 17)
  20865. * ldouble directive M68HC11: M68HC11-Float. (line 17)
  20866. * ldouble directive XGATE: XGATE-Float. (line 16)
  20867. * ldouble directive, TIC54X: TIC54X-Directives. (line 62)
  20868. * LDR reg,=<expr> pseudo op, AArch64: AArch64 Opcodes. (line 9)
  20869. * LDR reg,=<label> pseudo op, ARM: ARM Opcodes. (line 15)
  20870. * LEB128 directives: RISC-V-Directives. (line 27)
  20871. * length directive, TIC54X: TIC54X-Directives. (line 125)
  20872. * length of symbols: Symbol Intro. (line 19)
  20873. * level 1 interrupt link register, ARC: ARC-Regs. (line 23)
  20874. * level 2 interrupt link register, ARC: ARC-Regs. (line 31)
  20875. * lflags directive (ignored): Lflags. (line 6)
  20876. * line: ARC-Chars. (line 30)
  20877. * line comment character: Comments. (line 19)
  20878. * line comment character, AArch64: AArch64-Chars. (line 6)
  20879. * line comment character, Alpha: Alpha-Chars. (line 6)
  20880. * line comment character, ARC: ARC-Chars. (line 11)
  20881. * line comment character, ARM: ARM-Chars. (line 6)
  20882. * line comment character, AVR: AVR-Chars. (line 6)
  20883. * line comment character, CR16: CR16-Chars. (line 6)
  20884. * line comment character, D10V: D10V-Chars. (line 6)
  20885. * line comment character, D30V: D30V-Chars. (line 6)
  20886. * line comment character, Epiphany: Epiphany-Chars. (line 6)
  20887. * line comment character, H8/300: H8/300-Chars. (line 6)
  20888. * line comment character, i386: i386-Chars. (line 6)
  20889. * line comment character, IA-64: IA-64-Chars. (line 6)
  20890. * line comment character, IP2K: IP2K-Chars. (line 6)
  20891. * line comment character, LM32: LM32-Chars. (line 6)
  20892. * line comment character, M32C: M32C-Chars. (line 6)
  20893. * line comment character, M680x0: M68K-Chars. (line 6)
  20894. * line comment character, M68HC11: M68HC11-Syntax. (line 17)
  20895. * line comment character, Meta: Meta-Chars. (line 6)
  20896. * line comment character, MicroBlaze: MicroBlaze-Chars. (line 6)
  20897. * line comment character, MIPS: MIPS-Chars. (line 6)
  20898. * line comment character, MSP 430: MSP430-Chars. (line 6)
  20899. * line comment character, Nios II: Nios II Chars. (line 6)
  20900. * line comment character, NS32K: NS32K-Chars. (line 6)
  20901. * line comment character, OpenRISC: OpenRISC-Chars. (line 6)
  20902. * line comment character, PJ: PJ-Chars. (line 6)
  20903. * line comment character, PowerPC: PowerPC-Chars. (line 6)
  20904. * line comment character, PRU: PRU Chars. (line 6)
  20905. * line comment character, RL78: RL78-Chars. (line 6)
  20906. * line comment character, RX: RX-Chars. (line 6)
  20907. * line comment character, S12Z: S12Z-Syntax. (line 29)
  20908. * line comment character, s390: s390 Characters. (line 6)
  20909. * line comment character, SCORE: SCORE-Chars. (line 6)
  20910. * line comment character, SH: SH-Chars. (line 6)
  20911. * line comment character, Sparc: Sparc-Chars. (line 6)
  20912. * line comment character, TIC54X: TIC54X-Chars. (line 6)
  20913. * line comment character, TIC6X: TIC6X Syntax. (line 6)
  20914. * line comment character, V850: V850-Chars. (line 6)
  20915. * line comment character, VAX: VAX-Chars. (line 6)
  20916. * line comment character, Visium: Visium Characters. (line 6)
  20917. * line comment character, WebAssembly: WebAssembly-Chars. (line 6)
  20918. * line comment character, XGATE: XGATE-Syntax. (line 16)
  20919. * line comment character, XStormy16: XStormy16-Chars. (line 6)
  20920. * line comment character, Z80: Z80-Chars. (line 6)
  20921. * line comment character, Z8000: Z8000-Chars. (line 6)
  20922. * line comment characters, CRIS: CRIS-Chars. (line 6)
  20923. * line comment characters, MMIX: MMIX-Chars. (line 6)
  20924. * line directive: Line. (line 6)
  20925. * line directive, MSP 430: MSP430 Directives. (line 14)
  20926. * line numbers, in input files: Input Files. (line 35)
  20927. * line separator character: Statements. (line 6)
  20928. * line separator character, Nios II: Nios II Chars. (line 6)
  20929. * line separator, AArch64: AArch64-Chars. (line 10)
  20930. * line separator, Alpha: Alpha-Chars. (line 11)
  20931. * line separator, ARC: ARC-Chars. (line 27)
  20932. * line separator, ARM: ARM-Chars. (line 14)
  20933. * line separator, AVR: AVR-Chars. (line 14)
  20934. * line separator, CR16: CR16-Chars. (line 12)
  20935. * line separator, Epiphany: Epiphany-Chars. (line 14)
  20936. * line separator, H8/300: H8/300-Chars. (line 8)
  20937. * line separator, i386: i386-Chars. (line 18)
  20938. * line separator, IA-64: IA-64-Chars. (line 8)
  20939. * line separator, IP2K: IP2K-Chars. (line 14)
  20940. * line separator, LM32: LM32-Chars. (line 12)
  20941. * line separator, M32C: M32C-Chars. (line 14)
  20942. * line separator, M680x0: M68K-Chars. (line 20)
  20943. * line separator, M68HC11: M68HC11-Syntax. (line 26)
  20944. * line separator, Meta: Meta-Chars. (line 8)
  20945. * line separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  20946. * line separator, MIPS: MIPS-Chars. (line 14)
  20947. * line separator, MSP 430: MSP430-Chars. (line 14)
  20948. * line separator, NS32K: NS32K-Chars. (line 18)
  20949. * line separator, OpenRISC: OpenRISC-Chars. (line 9)
  20950. * line separator, PJ: PJ-Chars. (line 14)
  20951. * line separator, PowerPC: PowerPC-Chars. (line 18)
  20952. * line separator, RL78: RL78-Chars. (line 14)
  20953. * line separator, RX: RX-Chars. (line 14)
  20954. * line separator, S12Z: S12Z-Syntax. (line 38)
  20955. * line separator, s390: s390 Characters. (line 13)
  20956. * line separator, SCORE: SCORE-Chars. (line 14)
  20957. * line separator, SH: SH-Chars. (line 8)
  20958. * line separator, Sparc: Sparc-Chars. (line 14)
  20959. * line separator, TIC54X: TIC54X-Chars. (line 17)
  20960. * line separator, TIC6X: TIC6X Syntax. (line 13)
  20961. * line separator, V850: V850-Chars. (line 13)
  20962. * line separator, VAX: VAX-Chars. (line 14)
  20963. * line separator, Visium: Visium Characters. (line 14)
  20964. * line separator, XGATE: XGATE-Syntax. (line 25)
  20965. * line separator, XStormy16: XStormy16-Chars. (line 14)
  20966. * line separator, Z80: Z80-Chars. (line 13)
  20967. * line separator, Z8000: Z8000-Chars. (line 13)
  20968. * lines starting with #: Comments. (line 33)
  20969. * link register, ARC: ARC-Regs. (line 35)
  20970. * linker: Object. (line 15)
  20971. * linker, and assembler: Secs Background. (line 10)
  20972. * linkonce directive: Linkonce. (line 6)
  20973. * list directive: List. (line 6)
  20974. * list directive, TIC54X: TIC54X-Directives. (line 129)
  20975. * listing control, turning off: Nolist. (line 6)
  20976. * listing control, turning on: List. (line 6)
  20977. * listing control: new page: Eject. (line 6)
  20978. * listing control: paper size: Psize. (line 6)
  20979. * listing control: subtitle: Sbttl. (line 6)
  20980. * listing control: title line: Title. (line 6)
  20981. * listings, enabling: a. (line 6)
  20982. * literal directive: Literal Directive. (line 6)
  20983. * literal pool entries, s390: s390 Literal Pool Entries.
  20984. (line 6)
  20985. * literal_position directive: Literal Position Directive.
  20986. (line 6)
  20987. * literal_prefix directive: Literal Prefix Directive.
  20988. (line 6)
  20989. * little endian output, MIPS: Overview. (line 837)
  20990. * little endian output, PJ: Overview. (line 741)
  20991. * little-endian output, MIPS: MIPS Options. (line 13)
  20992. * little-endian output, TIC6X: TIC6X Options. (line 46)
  20993. * LM32 line comment character: LM32-Chars. (line 6)
  20994. * LM32 line separator: LM32-Chars. (line 12)
  20995. * LM32 modifiers: LM32-Modifiers. (line 6)
  20996. * LM32 opcode summary: LM32 Opcodes. (line 6)
  20997. * LM32 options (none): LM32 Options. (line 6)
  20998. * LM32 register names: LM32-Regs. (line 6)
  20999. * LM32 support: LM32-Dependent. (line 6)
  21000. * ln directive: Ln. (line 6)
  21001. * lo directive, Nios II: Nios II Relocations.
  21002. (line 23)
  21003. * lo pseudo-op, V850: V850 Opcodes. (line 22)
  21004. * loc directive: Loc. (line 6)
  21005. * local common symbols: Lcomm. (line 6)
  21006. * local directive: Local. (line 6)
  21007. * local labels: Symbol Names. (line 43)
  21008. * local symbol names: Symbol Names. (line 30)
  21009. * local symbols, retaining in output: L. (line 6)
  21010. * location counter: Dot. (line 6)
  21011. * location counter, advancing: Org. (line 6)
  21012. * location counter, Z80: Z80-Chars. (line 15)
  21013. * loc_mark_labels directive: Loc_mark_labels. (line 6)
  21014. * logical file name: File. (line 13)
  21015. * logical line number: Line. (line 6)
  21016. * logical line numbers: Comments. (line 33)
  21017. * long directive: Long. (line 6)
  21018. * long directive, i386: i386-Float. (line 21)
  21019. * long directive, TIC54X: TIC54X-Directives. (line 133)
  21020. * long directive, x86-64: i386-Float. (line 21)
  21021. * longcall pseudo-op, V850: V850 Opcodes. (line 122)
  21022. * longcalls directive: Longcalls Directive.
  21023. (line 6)
  21024. * longjump pseudo-op, V850: V850 Opcodes. (line 128)
  21025. * Loongson Content Address Memory (CAM) generation override: MIPS ASE Instruction Generation Overrides.
  21026. (line 81)
  21027. * Loongson EXTensions (EXT) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21028. (line 86)
  21029. * Loongson EXTensions R2 (EXT2) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21030. (line 91)
  21031. * Loongson MultiMedia extensions Instructions (MMI) generation override: MIPS ASE Instruction Generation Overrides.
  21032. (line 76)
  21033. * loop counter, ARC: ARC-Regs. (line 41)
  21034. * loop directive, TIC54X: TIC54X-Directives. (line 141)
  21035. * LOOP instructions, alignment: Xtensa Automatic Alignment.
  21036. (line 6)
  21037. * low directive, M32R: M32R-Directives. (line 9)
  21038. * lp register, V850: V850-Regs. (line 68)
  21039. * lval: Z8000 Directives. (line 27)
  21040. * LWP, i386: i386-LWP. (line 6)
  21041. * LWP, x86-64: i386-LWP. (line 6)
  21042. * M16C architecture option: M32C-Opts. (line 12)
  21043. * M32C architecture option: M32C-Opts. (line 9)
  21044. * M32C line comment character: M32C-Chars. (line 6)
  21045. * M32C line separator: M32C-Chars. (line 14)
  21046. * M32C modifiers: M32C-Modifiers. (line 6)
  21047. * M32C options: M32C-Opts. (line 6)
  21048. * M32C support: M32C-Dependent. (line 6)
  21049. * M32R architecture options: M32R-Opts. (line 9)
  21050. * M32R architecture options <1>: M32R-Opts. (line 17)
  21051. * M32R architecture options <2>: M32R-Opts. (line 21)
  21052. * M32R directives: M32R-Directives. (line 6)
  21053. * M32R options: M32R-Opts. (line 6)
  21054. * M32R support: M32R-Dependent. (line 6)
  21055. * M32R warnings: M32R-Warnings. (line 6)
  21056. * M680x0 addressing modes: M68K-Syntax. (line 21)
  21057. * M680x0 architecture options: M68K-Opts. (line 99)
  21058. * M680x0 branch improvement: M68K-Branch. (line 6)
  21059. * M680x0 directives: M68K-Directives. (line 6)
  21060. * M680x0 floating point: M68K-Float. (line 6)
  21061. * M680x0 immediate character: M68K-Chars. (line 13)
  21062. * M680x0 line comment character: M68K-Chars. (line 6)
  21063. * M680x0 line separator: M68K-Chars. (line 20)
  21064. * M680x0 opcodes: M68K-opcodes. (line 6)
  21065. * M680x0 options: M68K-Opts. (line 6)
  21066. * M680x0 pseudo-opcodes: M68K-Branch. (line 6)
  21067. * M680x0 size modifiers: M68K-Syntax. (line 8)
  21068. * M680x0 support: M68K-Dependent. (line 6)
  21069. * M680x0 syntax: M68K-Syntax. (line 8)
  21070. * M68HC11 addressing modes: M68HC11-Syntax. (line 29)
  21071. * M68HC11 and M68HC12 support: M68HC11-Dependent. (line 6)
  21072. * M68HC11 assembler directive .far: M68HC11-Directives. (line 20)
  21073. * M68HC11 assembler directive .interrupt: M68HC11-Directives.
  21074. (line 26)
  21075. * M68HC11 assembler directive .mode: M68HC11-Directives. (line 16)
  21076. * M68HC11 assembler directive .relax: M68HC11-Directives. (line 10)
  21077. * M68HC11 assembler directive .xrefb: M68HC11-Directives. (line 31)
  21078. * M68HC11 assembler directives: M68HC11-Directives. (line 6)
  21079. * M68HC11 branch improvement: M68HC11-Branch. (line 6)
  21080. * M68HC11 floating point: M68HC11-Float. (line 6)
  21081. * M68HC11 line comment character: M68HC11-Syntax. (line 17)
  21082. * M68HC11 line separator: M68HC11-Syntax. (line 26)
  21083. * M68HC11 modifiers: M68HC11-Modifiers. (line 6)
  21084. * M68HC11 opcodes: M68HC11-opcodes. (line 6)
  21085. * M68HC11 options: M68HC11-Opts. (line 6)
  21086. * M68HC11 pseudo-opcodes: M68HC11-Branch. (line 6)
  21087. * M68HC11 syntax: M68HC11-Syntax. (line 6)
  21088. * M68HC12 assembler directives: M68HC11-Directives. (line 6)
  21089. * mA6 command-line option, ARC: ARC Options. (line 14)
  21090. * mA7 command-line option, ARC: ARC Options. (line 39)
  21091. * machine dependencies: Machine Dependencies.
  21092. (line 6)
  21093. * machine directives, AArch64: AArch64 Directives. (line 6)
  21094. * machine directives, ARC: ARC Directives. (line 6)
  21095. * machine directives, ARM: ARM Directives. (line 6)
  21096. * machine directives, H8/300 (none): H8/300 Directives. (line 6)
  21097. * machine directives, MSP 430: MSP430 Directives. (line 6)
  21098. * machine directives, Nios II: Nios II Directives. (line 6)
  21099. * machine directives, OPENRISC: OpenRISC-Directives.
  21100. (line 6)
  21101. * machine directives, PRU: PRU Directives. (line 6)
  21102. * machine directives, RISC-V: RISC-V-Directives. (line 6)
  21103. * machine directives, SH: SH Directives. (line 6)
  21104. * machine directives, SPARC: Sparc-Directives. (line 6)
  21105. * machine directives, TIC54X: TIC54X-Directives. (line 6)
  21106. * machine directives, TIC6X: TIC6X Directives. (line 6)
  21107. * machine directives, TILE-Gx: TILE-Gx Directives. (line 6)
  21108. * machine directives, TILEPro: TILEPro Directives. (line 6)
  21109. * machine directives, V850: V850 Directives. (line 6)
  21110. * machine directives, VAX: VAX-directives. (line 6)
  21111. * machine directives, x86: i386-Directives. (line 6)
  21112. * machine directives, XStormy16: XStormy16 Directives.
  21113. (line 6)
  21114. * machine independent directives: Pseudo Ops. (line 6)
  21115. * machine instructions (not covered): Manual. (line 14)
  21116. * machine relocations, Nios II: Nios II Relocations.
  21117. (line 6)
  21118. * machine relocations, PRU: PRU Relocations. (line 6)
  21119. * machine-independent syntax: Syntax. (line 6)
  21120. * macro directive: Macro. (line 28)
  21121. * macro directive, TIC54X: TIC54X-Directives. (line 151)
  21122. * macros: Macro. (line 6)
  21123. * macros, count executed: Macro. (line 142)
  21124. * Macros, MSP 430: MSP430-Macros. (line 6)
  21125. * macros, TIC54X: TIC54X-Macros. (line 6)
  21126. * make rules: MD. (line 6)
  21127. * manual, structure and purpose: Manual. (line 6)
  21128. * marc600 command-line option, ARC: ARC Options. (line 14)
  21129. * mARC601 command-line option, ARC: ARC Options. (line 27)
  21130. * mARC700 command-line option, ARC: ARC Options. (line 39)
  21131. * march command-line option, C-SKY: C-SKY Options. (line 6)
  21132. * march command-line option, Nios II: Nios II Options. (line 28)
  21133. * math builtins, TIC54X: TIC54X-Builtins. (line 6)
  21134. * Maximum number of continuation lines: listing. (line 34)
  21135. * mbig-endian command-line option, C-SKY: C-SKY Options. (line 18)
  21136. * mbranch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21137. * mcache command-line option, C-SKY: C-SKY Options. (line 100)
  21138. * mcp command-line option, C-SKY: C-SKY Options. (line 97)
  21139. * mcpu command-line option, C-SKY: C-SKY Options. (line 10)
  21140. * mdsp command-line option, C-SKY: C-SKY Options. (line 109)
  21141. * medsp command-line option, C-SKY: C-SKY Options. (line 112)
  21142. * melrw command-line option, C-SKY: C-SKY Options. (line 64)
  21143. * mEM command-line option, ARC: ARC Options. (line 42)
  21144. * memory references, i386: i386-Memory. (line 6)
  21145. * memory references, x86-64: i386-Memory. (line 6)
  21146. * memory-mapped registers, TIC54X: TIC54X-MMRegs. (line 6)
  21147. * merging text and data sections: R. (line 6)
  21148. * messages from assembler: Errors. (line 6)
  21149. * Meta architectures: Meta Options. (line 6)
  21150. * Meta line comment character: Meta-Chars. (line 6)
  21151. * Meta line separator: Meta-Chars. (line 8)
  21152. * Meta options: Meta Options. (line 6)
  21153. * Meta registers: Meta-Regs. (line 6)
  21154. * Meta support: Meta-Dependent. (line 6)
  21155. * mforce2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21156. * mhard-float command-line option, C-SKY: C-SKY Options. (line 91)
  21157. * mHS command-line option, ARC: ARC Options. (line 64)
  21158. * MicroBlaze architectures: MicroBlaze-Dependent.
  21159. (line 6)
  21160. * MicroBlaze directives: MicroBlaze Directives.
  21161. (line 6)
  21162. * MicroBlaze line comment character: MicroBlaze-Chars. (line 6)
  21163. * MicroBlaze line separator: MicroBlaze-Chars. (line 14)
  21164. * MicroBlaze support: MicroBlaze-Dependent.
  21165. (line 12)
  21166. * minus, permitted arguments: Infix Ops. (line 50)
  21167. * MIPS 32-bit microMIPS instruction generation override: MIPS assembly options.
  21168. (line 18)
  21169. * MIPS architecture options: MIPS Options. (line 29)
  21170. * MIPS big-endian output: MIPS Options. (line 13)
  21171. * MIPS CPU override: MIPS ISA. (line 18)
  21172. * MIPS cyclic redundancy check (CRC) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21173. (line 68)
  21174. * MIPS directives to override command-line options: MIPS assembly options.
  21175. (line 6)
  21176. * MIPS DSP Release 1 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21177. (line 21)
  21178. * MIPS DSP Release 2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21179. (line 26)
  21180. * MIPS DSP Release 3 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21181. (line 31)
  21182. * MIPS endianness: Overview. (line 834)
  21183. * MIPS eXtended Physical Address (XPA) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21184. (line 57)
  21185. * MIPS Global INValidate (GINV) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21186. (line 72)
  21187. * MIPS IEEE 754 NaN data encoding selection: MIPS NaN Encodings.
  21188. (line 6)
  21189. * MIPS ISA: Overview. (line 840)
  21190. * MIPS ISA override: MIPS ISA. (line 6)
  21191. * MIPS line comment character: MIPS-Chars. (line 6)
  21192. * MIPS line separator: MIPS-Chars. (line 14)
  21193. * MIPS little-endian output: MIPS Options. (line 13)
  21194. * MIPS MCU instruction generation override: MIPS ASE Instruction Generation Overrides.
  21195. (line 42)
  21196. * MIPS MDMX instruction generation override: MIPS ASE Instruction Generation Overrides.
  21197. (line 16)
  21198. * MIPS MIPS-3D instruction generation override: MIPS ASE Instruction Generation Overrides.
  21199. (line 6)
  21200. * MIPS MT instruction generation override: MIPS ASE Instruction Generation Overrides.
  21201. (line 37)
  21202. * MIPS option stack: MIPS Option Stack. (line 6)
  21203. * MIPS processor: MIPS-Dependent. (line 6)
  21204. * MIPS SIMD Architecture instruction generation override: MIPS ASE Instruction Generation Overrides.
  21205. (line 47)
  21206. * MIPS16e2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21207. (line 61)
  21208. * mistack command-line option, C-SKY: C-SKY Options. (line 82)
  21209. * MIT: M68K-Syntax. (line 6)
  21210. * mjsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21211. * mlabr command-line option, C-SKY: C-SKY Options. (line 75)
  21212. * mlaf command-line option, C-SKY: C-SKY Options. (line 69)
  21213. * mlib directive, TIC54X: TIC54X-Directives. (line 157)
  21214. * mlink-relax command-line option, PRU: PRU Options. (line 6)
  21215. * mlist directive, TIC54X: TIC54X-Directives. (line 162)
  21216. * mliterals-after-br command-line option, C-SKY: C-SKY Options.
  21217. (line 75)
  21218. * mliterals-after-func command-line option, C-SKY: C-SKY Options.
  21219. (line 69)
  21220. * mlittle-endian command-line option, C-SKY: C-SKY Options. (line 14)
  21221. * mljump command-line option, C-SKY: C-SKY Options. (line 26)
  21222. * MMIX assembler directive BSPEC: MMIX-Pseudos. (line 137)
  21223. * MMIX assembler directive BYTE: MMIX-Pseudos. (line 101)
  21224. * MMIX assembler directive ESPEC: MMIX-Pseudos. (line 137)
  21225. * MMIX assembler directive GREG: MMIX-Pseudos. (line 53)
  21226. * MMIX assembler directive IS: MMIX-Pseudos. (line 44)
  21227. * MMIX assembler directive LOC: MMIX-Pseudos. (line 7)
  21228. * MMIX assembler directive LOCAL: MMIX-Pseudos. (line 29)
  21229. * MMIX assembler directive OCTA: MMIX-Pseudos. (line 113)
  21230. * MMIX assembler directive PREFIX: MMIX-Pseudos. (line 125)
  21231. * MMIX assembler directive TETRA: MMIX-Pseudos. (line 113)
  21232. * MMIX assembler directive WYDE: MMIX-Pseudos. (line 113)
  21233. * MMIX assembler directives: MMIX-Pseudos. (line 6)
  21234. * MMIX line comment characters: MMIX-Chars. (line 6)
  21235. * MMIX options: MMIX-Opts. (line 6)
  21236. * MMIX pseudo-op BSPEC: MMIX-Pseudos. (line 137)
  21237. * MMIX pseudo-op BYTE: MMIX-Pseudos. (line 101)
  21238. * MMIX pseudo-op ESPEC: MMIX-Pseudos. (line 137)
  21239. * MMIX pseudo-op GREG: MMIX-Pseudos. (line 53)
  21240. * MMIX pseudo-op IS: MMIX-Pseudos. (line 44)
  21241. * MMIX pseudo-op LOC: MMIX-Pseudos. (line 7)
  21242. * MMIX pseudo-op LOCAL: MMIX-Pseudos. (line 29)
  21243. * MMIX pseudo-op OCTA: MMIX-Pseudos. (line 113)
  21244. * MMIX pseudo-op PREFIX: MMIX-Pseudos. (line 125)
  21245. * MMIX pseudo-op TETRA: MMIX-Pseudos. (line 113)
  21246. * MMIX pseudo-op WYDE: MMIX-Pseudos. (line 113)
  21247. * MMIX pseudo-ops: MMIX-Pseudos. (line 6)
  21248. * MMIX register names: MMIX-Regs. (line 6)
  21249. * MMIX support: MMIX-Dependent. (line 6)
  21250. * mmixal differences: MMIX-mmixal. (line 6)
  21251. * mmp command-line option, C-SKY: C-SKY Options. (line 94)
  21252. * mmregs directive, TIC54X: TIC54X-Directives. (line 167)
  21253. * mmsg directive, TIC54X: TIC54X-Directives. (line 75)
  21254. * MMX, i386: i386-SIMD. (line 6)
  21255. * MMX, x86-64: i386-SIMD. (line 6)
  21256. * mnemonic compatibility, i386: i386-Mnemonics. (line 81)
  21257. * mnemonic suffixes, i386: i386-Variations. (line 28)
  21258. * mnemonic suffixes, x86-64: i386-Variations. (line 28)
  21259. * mnemonics for opcodes, VAX: VAX-opcodes. (line 6)
  21260. * mnemonics, AVR: AVR Opcodes. (line 6)
  21261. * mnemonics, D10V: D10V-Opcodes. (line 6)
  21262. * mnemonics, D30V: D30V-Opcodes. (line 6)
  21263. * mnemonics, H8/300: H8/300 Opcodes. (line 6)
  21264. * mnemonics, LM32: LM32 Opcodes. (line 6)
  21265. * mnemonics, OpenRISC: OpenRISC-Opcodes. (line 6)
  21266. * mnemonics, SH: SH Opcodes. (line 6)
  21267. * mnemonics, Z8000: Z8000 Opcodes. (line 6)
  21268. * mno-branch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21269. * mno-elrw command-line option, C-SKY: C-SKY Options. (line 64)
  21270. * mno-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21271. * mno-istack command-line option, C-SKY: C-SKY Options. (line 82)
  21272. * mno-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21273. * mno-labr command-line option, C-SKY: C-SKY Options. (line 75)
  21274. * mno-laf command-line option, C-SKY: C-SKY Options. (line 69)
  21275. * mno-link-relax command-line option, PRU: PRU Options. (line 12)
  21276. * mno-literals-after-func command-line option, C-SKY: C-SKY Options.
  21277. (line 69)
  21278. * mno-ljump command-line option, C-SKY: C-SKY Options. (line 26)
  21279. * mno-lrw command-line option, C-SKY: C-SKY Options. (line 59)
  21280. * mno-warn-regname-label command-line option, PRU: PRU Options.
  21281. (line 16)
  21282. * mnolist directive, TIC54X: TIC54X-Directives. (line 162)
  21283. * mnoliterals-after-br command-line option, C-SKY: C-SKY Options.
  21284. (line 75)
  21285. * mnolrw command-line option, C-SKY: C-SKY Options. (line 59)
  21286. * mnps400 command-line option, ARC: ARC Options. (line 79)
  21287. * modifiers, M32C: M32C-Modifiers. (line 6)
  21288. * module layout, WebAssembly: WebAssembly-module-layout.
  21289. (line 6)
  21290. * Motorola syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  21291. * MOVI instructions, relaxation: Xtensa Immediate Relaxation.
  21292. (line 12)
  21293. * MOVN, MOVZ and MOVK group relocations, AArch64: AArch64-Relocations.
  21294. (line 6)
  21295. * MOVW and MOVT relocations, ARM: ARM-Relocations. (line 21)
  21296. * MRI compatibility mode: M. (line 6)
  21297. * mri directive: MRI. (line 6)
  21298. * MRI mode, temporarily: MRI. (line 6)
  21299. * msecurity command-line option, C-SKY: C-SKY Options. (line 103)
  21300. * MSP 430 floating point (IEEE): MSP430 Floating Point.
  21301. (line 6)
  21302. * MSP 430 identifiers: MSP430-Chars. (line 17)
  21303. * MSP 430 line comment character: MSP430-Chars. (line 6)
  21304. * MSP 430 line separator: MSP430-Chars. (line 14)
  21305. * MSP 430 machine directives: MSP430 Directives. (line 6)
  21306. * MSP 430 macros: MSP430-Macros. (line 6)
  21307. * MSP 430 opcodes: MSP430 Opcodes. (line 6)
  21308. * MSP 430 options (none): MSP430 Options. (line 6)
  21309. * MSP 430 profiling capability: MSP430 Profiling Capability.
  21310. (line 6)
  21311. * MSP 430 register names: MSP430-Regs. (line 6)
  21312. * MSP 430 support: MSP430-Dependent. (line 6)
  21313. * MSP430 Assembler Extensions: MSP430-Ext. (line 6)
  21314. * mtrust command-line option, C-SKY: C-SKY Options. (line 106)
  21315. * mul instruction, i386: i386-Notes. (line 6)
  21316. * mul instruction, x86-64: i386-Notes. (line 6)
  21317. * mvdsp command-line option, C-SKY: C-SKY Options. (line 115)
  21318. * N32K support: NS32K-Dependent. (line 6)
  21319. * name: Z8000 Directives. (line 18)
  21320. * named section: Section. (line 6)
  21321. * named sections: Ld Sections. (line 8)
  21322. * names, symbol: Symbol Names. (line 6)
  21323. * naming object file: o. (line 6)
  21324. * NDS32 options: NDS32 Options. (line 6)
  21325. * NDS32 processor: NDS32-Dependent. (line 6)
  21326. * new page, in listings: Eject. (line 6)
  21327. * newblock directive, TIC54X: TIC54X-Directives. (line 173)
  21328. * newline (\n): Strings. (line 21)
  21329. * newline, required at file end: Statements. (line 14)
  21330. * Nios II line comment character: Nios II Chars. (line 6)
  21331. * Nios II line separator character: Nios II Chars. (line 6)
  21332. * Nios II machine directives: Nios II Directives. (line 6)
  21333. * Nios II machine relocations: Nios II Relocations.
  21334. (line 6)
  21335. * Nios II opcodes: Nios II Opcodes. (line 6)
  21336. * Nios II options: Nios II Options. (line 6)
  21337. * Nios II support: NiosII-Dependent. (line 6)
  21338. * Nios support: NiosII-Dependent. (line 6)
  21339. * no-absolute-literals directive: Absolute Literals Directive.
  21340. (line 6)
  21341. * no-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21342. * no-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21343. * no-longcalls directive: Longcalls Directive.
  21344. (line 6)
  21345. * no-relax command-line option, Nios II: Nios II Options. (line 19)
  21346. * no-schedule directive: Schedule Directive. (line 6)
  21347. * no-transform directive: Transform Directive.
  21348. (line 6)
  21349. * nodelay directive, OpenRISC: OpenRISC-Directives.
  21350. (line 15)
  21351. * nolist directive: Nolist. (line 6)
  21352. * nolist directive, TIC54X: TIC54X-Directives. (line 129)
  21353. * NOP pseudo op, ARM: ARM Opcodes. (line 9)
  21354. * nops directive: Nops. (line 6)
  21355. * notes for Alpha: Alpha Notes. (line 6)
  21356. * notes for WebAssembly: WebAssembly-Notes. (line 6)
  21357. * NS32K line comment character: NS32K-Chars. (line 6)
  21358. * NS32K line separator: NS32K-Chars. (line 18)
  21359. * null-terminated strings: Asciz. (line 6)
  21360. * number constants: Numbers. (line 6)
  21361. * number of macros executed: Macro. (line 142)
  21362. * numbered subsections: Sub-Sections. (line 6)
  21363. * numbers, 16-bit: hword. (line 6)
  21364. * numeric values: Expressions. (line 6)
  21365. * nword directive, SPARC: Sparc-Directives. (line 20)
  21366. * Object Attribute, RISC-V: RISC-V-ATTRIBUTE. (line 6)
  21367. * object attributes: Object Attributes. (line 6)
  21368. * object file: Object. (line 6)
  21369. * object file format: Object Formats. (line 6)
  21370. * object file name: o. (line 6)
  21371. * object file, after errors: Z. (line 6)
  21372. * obsolescent directives: Deprecated. (line 6)
  21373. * octa directive: Octa. (line 6)
  21374. * octal character code (\DDD): Strings. (line 30)
  21375. * octal integers: Integers. (line 9)
  21376. * offset directive: Offset. (line 6)
  21377. * offset directive, V850: V850 Directives. (line 6)
  21378. * opcode mnemonics, VAX: VAX-opcodes. (line 6)
  21379. * opcode names, TILE-Gx: TILE-Gx Opcodes. (line 6)
  21380. * opcode names, TILEPro: TILEPro Opcodes. (line 6)
  21381. * opcode names, Xtensa: Xtensa Opcodes. (line 6)
  21382. * opcode summary, AVR: AVR Opcodes. (line 6)
  21383. * opcode summary, D10V: D10V-Opcodes. (line 6)
  21384. * opcode summary, D30V: D30V-Opcodes. (line 6)
  21385. * opcode summary, H8/300: H8/300 Opcodes. (line 6)
  21386. * opcode summary, LM32: LM32 Opcodes. (line 6)
  21387. * opcode summary, OpenRISC: OpenRISC-Opcodes. (line 6)
  21388. * opcode summary, SH: SH Opcodes. (line 6)
  21389. * opcode summary, Z8000: Z8000 Opcodes. (line 6)
  21390. * opcodes for AArch64: AArch64 Opcodes. (line 6)
  21391. * opcodes for ARC: ARC Opcodes. (line 6)
  21392. * opcodes for ARM: ARM Opcodes. (line 6)
  21393. * opcodes for MSP 430: MSP430 Opcodes. (line 6)
  21394. * opcodes for Nios II: Nios II Opcodes. (line 6)
  21395. * opcodes for PRU: PRU Opcodes. (line 6)
  21396. * opcodes for V850: V850 Opcodes. (line 6)
  21397. * opcodes, M680x0: M68K-opcodes. (line 6)
  21398. * opcodes, M68HC11: M68HC11-opcodes. (line 6)
  21399. * opcodes, S12Z: S12Z-opcodes. (line 6)
  21400. * opcodes, WebAssembly: WebAssembly-Opcodes.
  21401. (line 6)
  21402. * OPENRISC floating point (IEEE): OpenRISC-Float. (line 6)
  21403. * OpenRISC line comment character: OpenRISC-Chars. (line 6)
  21404. * OpenRISC line separator: OpenRISC-Chars. (line 9)
  21405. * OPENRISC machine directives: OpenRISC-Directives.
  21406. (line 6)
  21407. * OpenRISC opcode summary: OpenRISC-Opcodes. (line 6)
  21408. * OpenRISC registers: OpenRISC-Regs. (line 6)
  21409. * OpenRISC relocations: OpenRISC-Relocs. (line 6)
  21410. * OPENRISC support: OpenRISC-Dependent. (line 6)
  21411. * OPENRISC syntax: OpenRISC-Dependent. (line 13)
  21412. * operand delimiters, i386: i386-Variations. (line 15)
  21413. * operand delimiters, x86-64: i386-Variations. (line 15)
  21414. * operand notation, VAX: VAX-operands. (line 6)
  21415. * operands in expressions: Arguments. (line 6)
  21416. * operator precedence: Infix Ops. (line 11)
  21417. * operators, in expressions: Operators. (line 6)
  21418. * operators, permitted arguments: Infix Ops. (line 6)
  21419. * optimization, D10V: Overview. (line 617)
  21420. * optimization, D30V: Overview. (line 622)
  21421. * optimizations: Xtensa Optimizations.
  21422. (line 6)
  21423. * Option directive: RISC-V-Directives. (line 34)
  21424. * option directive: RISC-V-Directives. (line 34)
  21425. * option directive, TIC54X: TIC54X-Directives. (line 177)
  21426. * option summary: Overview. (line 6)
  21427. * options for AArch64 (none): AArch64 Options. (line 6)
  21428. * options for Alpha: Alpha Options. (line 6)
  21429. * options for ARC: ARC Options. (line 6)
  21430. * options for ARM (none): ARM Options. (line 6)
  21431. * options for AVR (none): AVR Options. (line 6)
  21432. * options for Blackfin (none): Blackfin Options. (line 6)
  21433. * options for C-SKY: C-SKY Options. (line 6)
  21434. * options for i386: i386-Options. (line 6)
  21435. * options for IA-64: IA-64 Options. (line 6)
  21436. * options for LM32 (none): LM32 Options. (line 6)
  21437. * options for Meta: Meta Options. (line 6)
  21438. * options for MSP430 (none): MSP430 Options. (line 6)
  21439. * options for NDS32: NDS32 Options. (line 6)
  21440. * options for Nios II: Nios II Options. (line 6)
  21441. * options for PDP-11: PDP-11-Options. (line 6)
  21442. * options for PowerPC: PowerPC-Opts. (line 6)
  21443. * options for PRU: PRU Options. (line 6)
  21444. * options for s390: s390 Options. (line 6)
  21445. * options for SCORE: SCORE-Opts. (line 6)
  21446. * options for SPARC: Sparc-Opts. (line 6)
  21447. * options for TIC6X: TIC6X Options. (line 6)
  21448. * options for V850 (none): V850 Options. (line 6)
  21449. * options for VAX/VMS: VAX-Opts. (line 42)
  21450. * options for Visium: Visium Options. (line 6)
  21451. * options for x86-64: i386-Options. (line 6)
  21452. * options for Z80: Z80 Options. (line 6)
  21453. * options, all versions of assembler: Invoking. (line 6)
  21454. * options, command line: Command Line. (line 13)
  21455. * options, CRIS: CRIS-Opts. (line 6)
  21456. * options, D10V: D10V-Opts. (line 6)
  21457. * options, D30V: D30V-Opts. (line 6)
  21458. * options, Epiphany: Epiphany Options. (line 6)
  21459. * options, H8/300: H8/300 Options. (line 6)
  21460. * options, IP2K: IP2K-Opts. (line 6)
  21461. * options, M32C: M32C-Opts. (line 6)
  21462. * options, M32R: M32R-Opts. (line 6)
  21463. * options, M680x0: M68K-Opts. (line 6)
  21464. * options, M68HC11: M68HC11-Opts. (line 6)
  21465. * options, MMIX: MMIX-Opts. (line 6)
  21466. * options, PJ: PJ Options. (line 6)
  21467. * options, RL78: RL78-Opts. (line 6)
  21468. * options, RX: RX-Opts. (line 6)
  21469. * options, S12Z: S12Z-Opts. (line 6)
  21470. * options, SH: SH Options. (line 6)
  21471. * options, TIC54X: TIC54X-Opts. (line 6)
  21472. * options, XGATE: XGATE-Opts. (line 6)
  21473. * options, Z8000: Z8000 Options. (line 6)
  21474. * org directive: Org. (line 6)
  21475. * other attribute, of a.out symbol: Symbol Other. (line 6)
  21476. * output file: Object. (line 6)
  21477. * output section padding: no-pad-sections. (line 6)
  21478. * p2align directive: P2align. (line 6)
  21479. * p2alignl directive: P2align. (line 28)
  21480. * p2alignw directive: P2align. (line 28)
  21481. * padding the location counter: Align. (line 6)
  21482. * padding the location counter given a power of two: P2align.
  21483. (line 6)
  21484. * padding the location counter given number of bytes: Balign.
  21485. (line 6)
  21486. * page, in listings: Eject. (line 6)
  21487. * paper size, for listings: Psize. (line 6)
  21488. * paths for .include: I. (line 6)
  21489. * patterns, writing in memory: Fill. (line 6)
  21490. * PDP-11 comments: PDP-11-Syntax. (line 16)
  21491. * PDP-11 floating-point register syntax: PDP-11-Syntax. (line 13)
  21492. * PDP-11 general-purpose register syntax: PDP-11-Syntax. (line 10)
  21493. * PDP-11 instruction naming: PDP-11-Mnemonics. (line 6)
  21494. * PDP-11 line separator: PDP-11-Syntax. (line 19)
  21495. * PDP-11 support: PDP-11-Dependent. (line 6)
  21496. * PDP-11 syntax: PDP-11-Syntax. (line 6)
  21497. * PIC code generation for ARM: ARM Options. (line 196)
  21498. * PIC code generation for M32R: M32R-Opts. (line 42)
  21499. * pic command-line option, C-SKY: C-SKY Options. (line 22)
  21500. * PIC selection, MIPS: MIPS Options. (line 21)
  21501. * PJ endianness: Overview. (line 738)
  21502. * PJ line comment character: PJ-Chars. (line 6)
  21503. * PJ line separator: PJ-Chars. (line 14)
  21504. * PJ options: PJ Options. (line 6)
  21505. * PJ support: PJ-Dependent. (line 6)
  21506. * plus, permitted arguments: Infix Ops. (line 45)
  21507. * pmem directive, PRU: PRU Relocations. (line 6)
  21508. * popsection directive: PopSection. (line 6)
  21509. * Position-independent code, CRIS: CRIS-Opts. (line 27)
  21510. * Position-independent code, symbols in, CRIS: CRIS-Pic. (line 6)
  21511. * PowerPC architectures: PowerPC-Opts. (line 6)
  21512. * PowerPC directives: PowerPC-Pseudo. (line 6)
  21513. * PowerPC line comment character: PowerPC-Chars. (line 6)
  21514. * PowerPC line separator: PowerPC-Chars. (line 18)
  21515. * PowerPC options: PowerPC-Opts. (line 6)
  21516. * PowerPC support: PPC-Dependent. (line 6)
  21517. * precedence of operators: Infix Ops. (line 11)
  21518. * precision, floating point: Flonums. (line 6)
  21519. * prefix operators: Prefix Ops. (line 6)
  21520. * prefixes, i386: i386-Prefixes. (line 6)
  21521. * preprocessing: Preprocessing. (line 6)
  21522. * preprocessing, turning on and off: Preprocessing. (line 26)
  21523. * previous directive: Previous. (line 6)
  21524. * primary attributes, COFF symbols: COFF Symbols. (line 13)
  21525. * print directive: Print. (line 6)
  21526. * proc directive, OpenRISC: OpenRISC-Directives.
  21527. (line 20)
  21528. * proc directive, SPARC: Sparc-Directives. (line 25)
  21529. * Processor Identification register, ARC: ARC-Regs. (line 51)
  21530. * profiler directive, MSP 430: MSP430 Directives. (line 26)
  21531. * profiling capability for MSP 430: MSP430 Profiling Capability.
  21532. (line 6)
  21533. * Program Counter, ARC: ARC-Regs. (line 54)
  21534. * protected directive: Protected. (line 6)
  21535. * PRU line comment character: PRU Chars. (line 6)
  21536. * PRU machine directives: PRU Directives. (line 6)
  21537. * PRU machine relocations: PRU Relocations. (line 6)
  21538. * PRU opcodes: PRU Opcodes. (line 6)
  21539. * PRU options: PRU Options. (line 6)
  21540. * PRU support: PRU-Dependent. (line 6)
  21541. * pseudo-op .arch, CRIS: CRIS-Pseudos. (line 50)
  21542. * pseudo-op .dword, CRIS: CRIS-Pseudos. (line 12)
  21543. * pseudo-op .syntax, CRIS: CRIS-Pseudos. (line 18)
  21544. * pseudo-op BSPEC, MMIX: MMIX-Pseudos. (line 137)
  21545. * pseudo-op BYTE, MMIX: MMIX-Pseudos. (line 101)
  21546. * pseudo-op ESPEC, MMIX: MMIX-Pseudos. (line 137)
  21547. * pseudo-op GREG, MMIX: MMIX-Pseudos. (line 53)
  21548. * pseudo-op IS, MMIX: MMIX-Pseudos. (line 44)
  21549. * pseudo-op LOC, MMIX: MMIX-Pseudos. (line 7)
  21550. * pseudo-op LOCAL, MMIX: MMIX-Pseudos. (line 29)
  21551. * pseudo-op OCTA, MMIX: MMIX-Pseudos. (line 113)
  21552. * pseudo-op PREFIX, MMIX: MMIX-Pseudos. (line 125)
  21553. * pseudo-op TETRA, MMIX: MMIX-Pseudos. (line 113)
  21554. * pseudo-op WYDE, MMIX: MMIX-Pseudos. (line 113)
  21555. * pseudo-opcodes for XStormy16: XStormy16 Opcodes. (line 6)
  21556. * pseudo-opcodes, M680x0: M68K-Branch. (line 6)
  21557. * pseudo-opcodes, M68HC11: M68HC11-Branch. (line 6)
  21558. * pseudo-ops for branch, VAX: VAX-branch. (line 6)
  21559. * pseudo-ops, CRIS: CRIS-Pseudos. (line 6)
  21560. * pseudo-ops, machine independent: Pseudo Ops. (line 6)
  21561. * pseudo-ops, MMIX: MMIX-Pseudos. (line 6)
  21562. * psize directive: Psize. (line 6)
  21563. * PSR bits: IA-64-Bits. (line 6)
  21564. * pstring directive, TIC54X: TIC54X-Directives. (line 206)
  21565. * psw register, V850: V850-Regs. (line 80)
  21566. * purgem directive: Purgem. (line 6)
  21567. * purpose of GNU assembler: GNU Assembler. (line 12)
  21568. * pushsection directive: PushSection. (line 6)
  21569. * quad directive: Quad. (line 6)
  21570. * quad directive, i386: i386-Float. (line 21)
  21571. * quad directive, x86-64: i386-Float. (line 21)
  21572. * real-mode code, i386: i386-16bit. (line 6)
  21573. * ref directive, TIC54X: TIC54X-Directives. (line 101)
  21574. * refsym directive, MSP 430: MSP430 Directives. (line 30)
  21575. * register directive, SPARC: Sparc-Directives. (line 29)
  21576. * register name prefix character, ARC: ARC-Chars. (line 7)
  21577. * register names, AArch64: AArch64-Regs. (line 6)
  21578. * register names, Alpha: Alpha-Regs. (line 6)
  21579. * register names, ARC: ARC-Regs. (line 6)
  21580. * register names, ARM: ARM-Regs. (line 6)
  21581. * register names, AVR: AVR-Regs. (line 6)
  21582. * register names, CRIS: CRIS-Regs. (line 6)
  21583. * register names, H8/300: H8/300-Regs. (line 6)
  21584. * register names, IA-64: IA-64-Regs. (line 6)
  21585. * register names, LM32: LM32-Regs. (line 6)
  21586. * register names, MMIX: MMIX-Regs. (line 6)
  21587. * register names, MSP 430: MSP430-Regs. (line 6)
  21588. * register names, OpenRISC: OpenRISC-Regs. (line 6)
  21589. * register names, Sparc: Sparc-Regs. (line 6)
  21590. * register names, TILE-Gx: TILE-Gx Registers. (line 6)
  21591. * register names, TILEPro: TILEPro Registers. (line 6)
  21592. * register names, V850: V850-Regs. (line 6)
  21593. * register names, VAX: VAX-operands. (line 17)
  21594. * register names, Visium: Visium Registers. (line 6)
  21595. * register names, Xtensa: Xtensa Registers. (line 6)
  21596. * register names, Z80: Z80-Regs. (line 6)
  21597. * register naming, s390: s390 Register. (line 6)
  21598. * register operands, i386: i386-Variations. (line 15)
  21599. * register operands, x86-64: i386-Variations. (line 15)
  21600. * registers, D10V: D10V-Regs. (line 6)
  21601. * registers, D30V: D30V-Regs. (line 6)
  21602. * registers, i386: i386-Regs. (line 6)
  21603. * registers, Meta: Meta-Regs. (line 6)
  21604. * registers, SH: SH-Regs. (line 6)
  21605. * registers, TIC54X memory-mapped: TIC54X-MMRegs. (line 6)
  21606. * registers, x86-64: i386-Regs. (line 6)
  21607. * registers, Z8000: Z8000-Regs. (line 6)
  21608. * relax-all command-line option, Nios II: Nios II Options. (line 13)
  21609. * relax-section command-line option, Nios II: Nios II Options.
  21610. (line 6)
  21611. * relaxation: Xtensa Relaxation. (line 6)
  21612. * relaxation of ADDI instructions: Xtensa Immediate Relaxation.
  21613. (line 43)
  21614. * relaxation of branch instructions: Xtensa Branch Relaxation.
  21615. (line 6)
  21616. * relaxation of call instructions: Xtensa Call Relaxation.
  21617. (line 6)
  21618. * relaxation of immediate fields: Xtensa Immediate Relaxation.
  21619. (line 6)
  21620. * relaxation of jump instructions: Xtensa Jump Relaxation.
  21621. (line 6)
  21622. * relaxation of L16SI instructions: Xtensa Immediate Relaxation.
  21623. (line 23)
  21624. * relaxation of L16UI instructions: Xtensa Immediate Relaxation.
  21625. (line 23)
  21626. * relaxation of L32I instructions: Xtensa Immediate Relaxation.
  21627. (line 23)
  21628. * relaxation of L8UI instructions: Xtensa Immediate Relaxation.
  21629. (line 23)
  21630. * relaxation of MOVI instructions: Xtensa Immediate Relaxation.
  21631. (line 12)
  21632. * reloc directive: Reloc. (line 6)
  21633. * relocation: Sections. (line 6)
  21634. * relocation example: Ld Sections. (line 40)
  21635. * relocations, AArch64: AArch64-Relocations.
  21636. (line 6)
  21637. * relocations, Alpha: Alpha-Relocs. (line 6)
  21638. * relocations, OpenRISC: OpenRISC-Relocs. (line 6)
  21639. * relocations, Sparc: Sparc-Relocs. (line 6)
  21640. * relocations, WebAssembly: WebAssembly-Relocs. (line 6)
  21641. * repeat prefixes, i386: i386-Prefixes. (line 44)
  21642. * reporting bugs in assembler: Reporting Bugs. (line 6)
  21643. * rept directive: Rept. (line 6)
  21644. * reserve directive, SPARC: Sparc-Directives. (line 39)
  21645. * return instructions, i386: i386-Variations. (line 40)
  21646. * return instructions, x86-64: i386-Variations. (line 40)
  21647. * REX prefixes, i386: i386-Prefixes. (line 46)
  21648. * RISC-V instruction formats: RISC-V-Formats. (line 6)
  21649. * RISC-V machine directives: RISC-V-Directives. (line 6)
  21650. * RISC-V support: RISC-V-Dependent. (line 6)
  21651. * RL78 assembler directives: RL78-Directives. (line 6)
  21652. * RL78 line comment character: RL78-Chars. (line 6)
  21653. * RL78 line separator: RL78-Chars. (line 14)
  21654. * RL78 modifiers: RL78-Modifiers. (line 6)
  21655. * RL78 options: RL78-Opts. (line 6)
  21656. * RL78 support: RL78-Dependent. (line 6)
  21657. * rsect: Z8000 Directives. (line 52)
  21658. * RX assembler directive .3byte: RX-Directives. (line 9)
  21659. * RX assembler directive .fetchalign: RX-Directives. (line 13)
  21660. * RX assembler directives: RX-Directives. (line 6)
  21661. * RX floating point: RX-Float. (line 6)
  21662. * RX line comment character: RX-Chars. (line 6)
  21663. * RX line separator: RX-Chars. (line 14)
  21664. * RX modifiers: RX-Modifiers. (line 6)
  21665. * RX options: RX-Opts. (line 6)
  21666. * RX support: RX-Dependent. (line 6)
  21667. * S12Z addressing modes: S12Z-Syntax. (line 41)
  21668. * S12Z line comment character: S12Z-Syntax. (line 29)
  21669. * S12Z line separator: S12Z-Syntax. (line 38)
  21670. * S12Z opcodes: S12Z-opcodes. (line 6)
  21671. * S12Z options: S12Z-Opts. (line 5)
  21672. * S12Z support: S12Z-Dependent. (line 8)
  21673. * S12Z syntax: S12Z-Syntax. (line 6)
  21674. * s390 floating point: s390 Floating Point.
  21675. (line 6)
  21676. * s390 instruction aliases: s390 Aliases. (line 6)
  21677. * s390 instruction formats: s390 Formats. (line 6)
  21678. * s390 instruction marker: s390 Instruction Marker.
  21679. (line 6)
  21680. * s390 instruction mnemonics: s390 Mnemonics. (line 6)
  21681. * s390 instruction operand modifier: s390 Operand Modifier.
  21682. (line 6)
  21683. * s390 instruction operands: s390 Operands. (line 6)
  21684. * s390 instruction syntax: s390 Syntax. (line 6)
  21685. * s390 line comment character: s390 Characters. (line 6)
  21686. * s390 line separator: s390 Characters. (line 13)
  21687. * s390 literal pool entries: s390 Literal Pool Entries.
  21688. (line 6)
  21689. * s390 options: s390 Options. (line 6)
  21690. * s390 register naming: s390 Register. (line 6)
  21691. * s390 support: S/390-Dependent. (line 6)
  21692. * Saved User Stack Pointer, ARC: ARC-Regs. (line 73)
  21693. * sblock directive, TIC54X: TIC54X-Directives. (line 180)
  21694. * sbttl directive: Sbttl. (line 6)
  21695. * schedule directive: Schedule Directive. (line 6)
  21696. * scl directive: Scl. (line 6)
  21697. * SCORE architectures: SCORE-Opts. (line 6)
  21698. * SCORE directives: SCORE-Pseudo. (line 6)
  21699. * SCORE line comment character: SCORE-Chars. (line 6)
  21700. * SCORE line separator: SCORE-Chars. (line 14)
  21701. * SCORE options: SCORE-Opts. (line 6)
  21702. * SCORE processor: SCORE-Dependent. (line 6)
  21703. * sdaoff pseudo-op, V850: V850 Opcodes. (line 65)
  21704. * search path for .include: I. (line 6)
  21705. * sect directive, TIC54X: TIC54X-Directives. (line 186)
  21706. * section directive (COFF version): Section. (line 16)
  21707. * section directive (ELF version): Section. (line 67)
  21708. * section directive, V850: V850 Directives. (line 9)
  21709. * section name substitution: Section. (line 71)
  21710. * section override prefixes, i386: i386-Prefixes. (line 23)
  21711. * Section Stack: PopSection. (line 6)
  21712. * Section Stack <1>: Previous. (line 6)
  21713. * Section Stack <2>: PushSection. (line 6)
  21714. * Section Stack <3>: Section. (line 62)
  21715. * Section Stack <4>: SubSection. (line 6)
  21716. * section-relative addressing: Secs Background. (line 65)
  21717. * sections: Sections. (line 6)
  21718. * sections in messages, internal: As Sections. (line 6)
  21719. * sections, i386: i386-Variations. (line 46)
  21720. * sections, named: Ld Sections. (line 8)
  21721. * sections, x86-64: i386-Variations. (line 46)
  21722. * seg directive, SPARC: Sparc-Directives. (line 44)
  21723. * segm: Z8000 Directives. (line 10)
  21724. * set at directive, Nios II: Nios II Directives. (line 35)
  21725. * set break directive, Nios II: Nios II Directives. (line 43)
  21726. * set directive: Set. (line 6)
  21727. * set directive, Nios II: Nios II Directives. (line 57)
  21728. * set directive, TIC54X: TIC54X-Directives. (line 189)
  21729. * set noat directive, Nios II: Nios II Directives. (line 31)
  21730. * set nobreak directive, Nios II: Nios II Directives. (line 39)
  21731. * set norelax directive, Nios II: Nios II Directives. (line 46)
  21732. * set no_warn_regname_label directive, PRU: PRU Directives. (line 28)
  21733. * set relaxall directive, Nios II: Nios II Directives. (line 53)
  21734. * set relaxsection directive, Nios II: Nios II Directives. (line 49)
  21735. * SH addressing modes: SH-Addressing. (line 6)
  21736. * SH floating point (IEEE): SH Floating Point. (line 6)
  21737. * SH line comment character: SH-Chars. (line 6)
  21738. * SH line separator: SH-Chars. (line 8)
  21739. * SH machine directives: SH Directives. (line 6)
  21740. * SH opcode summary: SH Opcodes. (line 6)
  21741. * SH options: SH Options. (line 6)
  21742. * SH registers: SH-Regs. (line 6)
  21743. * SH support: SH-Dependent. (line 6)
  21744. * shigh directive, M32R: M32R-Directives. (line 26)
  21745. * short directive: Short. (line 6)
  21746. * short directive, TIC54X: TIC54X-Directives. (line 109)
  21747. * signatures, WebAssembly: WebAssembly-Signatures.
  21748. (line 6)
  21749. * SIMD, i386: i386-SIMD. (line 6)
  21750. * SIMD, x86-64: i386-SIMD. (line 6)
  21751. * single character constant: Chars. (line 6)
  21752. * single directive: Single. (line 6)
  21753. * single directive, i386: i386-Float. (line 14)
  21754. * single directive, x86-64: i386-Float. (line 14)
  21755. * single quote, Z80: Z80-Chars. (line 20)
  21756. * sixteen bit integers: hword. (line 6)
  21757. * sixteen byte integer: Octa. (line 6)
  21758. * size directive (COFF version): Size. (line 11)
  21759. * size directive (ELF version): Size. (line 19)
  21760. * size modifiers, D10V: D10V-Size. (line 6)
  21761. * size modifiers, D30V: D30V-Size. (line 6)
  21762. * size modifiers, M680x0: M68K-Syntax. (line 8)
  21763. * size prefixes, i386: i386-Prefixes. (line 27)
  21764. * size suffixes, H8/300: H8/300 Opcodes. (line 160)
  21765. * size, translations, Sparc: Sparc-Size-Translations.
  21766. (line 6)
  21767. * sizes operands, i386: i386-Variations. (line 28)
  21768. * sizes operands, x86-64: i386-Variations. (line 28)
  21769. * skip directive: Skip. (line 6)
  21770. * skip directive, M680x0: M68K-Directives. (line 19)
  21771. * skip directive, SPARC: Sparc-Directives. (line 48)
  21772. * sleb128 directive: Sleb128. (line 6)
  21773. * small data, MIPS: MIPS Small Data. (line 6)
  21774. * SmartMIPS instruction generation override: MIPS ASE Instruction Generation Overrides.
  21775. (line 11)
  21776. * SOM symbol attributes: SOM Symbols. (line 6)
  21777. * source program: Input Files. (line 6)
  21778. * source, destination operands; i386: i386-Variations. (line 21)
  21779. * source, destination operands; x86-64: i386-Variations. (line 21)
  21780. * sp register: Xtensa Registers. (line 6)
  21781. * sp register, V850: V850-Regs. (line 12)
  21782. * space directive: Space. (line 6)
  21783. * space directive, TIC54X: TIC54X-Directives. (line 194)
  21784. * space used, maximum for assembly: statistics. (line 6)
  21785. * SPARC architectures: Sparc-Opts. (line 6)
  21786. * Sparc constants: Sparc-Constants. (line 6)
  21787. * SPARC data alignment: Sparc-Aligned-Data. (line 6)
  21788. * SPARC floating point (IEEE): Sparc-Float. (line 6)
  21789. * Sparc line comment character: Sparc-Chars. (line 6)
  21790. * Sparc line separator: Sparc-Chars. (line 14)
  21791. * SPARC machine directives: Sparc-Directives. (line 6)
  21792. * SPARC options: Sparc-Opts. (line 6)
  21793. * Sparc registers: Sparc-Regs. (line 6)
  21794. * Sparc relocations: Sparc-Relocs. (line 6)
  21795. * Sparc size translations: Sparc-Size-Translations.
  21796. (line 6)
  21797. * SPARC support: Sparc-Dependent. (line 6)
  21798. * SPARC syntax: Sparc-Aligned-Data. (line 21)
  21799. * special characters, M680x0: M68K-Chars. (line 6)
  21800. * special purpose registers, MSP 430: MSP430-Regs. (line 11)
  21801. * sslist directive, TIC54X: TIC54X-Directives. (line 201)
  21802. * ssnolist directive, TIC54X: TIC54X-Directives. (line 201)
  21803. * stabd directive: Stab. (line 38)
  21804. * stabn directive: Stab. (line 49)
  21805. * stabs directive: Stab. (line 52)
  21806. * stabX directives: Stab. (line 6)
  21807. * stack pointer, ARC: ARC-Regs. (line 20)
  21808. * standard assembler sections: Secs Background. (line 27)
  21809. * standard input, as input file: Command Line. (line 10)
  21810. * statement separator character: Statements. (line 6)
  21811. * statement separator, AArch64: AArch64-Chars. (line 10)
  21812. * statement separator, Alpha: Alpha-Chars. (line 11)
  21813. * statement separator, ARC: ARC-Chars. (line 27)
  21814. * statement separator, ARM: ARM-Chars. (line 14)
  21815. * statement separator, AVR: AVR-Chars. (line 14)
  21816. * statement separator, CR16: CR16-Chars. (line 12)
  21817. * statement separator, Epiphany: Epiphany-Chars. (line 14)
  21818. * statement separator, H8/300: H8/300-Chars. (line 8)
  21819. * statement separator, i386: i386-Chars. (line 18)
  21820. * statement separator, IA-64: IA-64-Chars. (line 8)
  21821. * statement separator, IP2K: IP2K-Chars. (line 14)
  21822. * statement separator, LM32: LM32-Chars. (line 12)
  21823. * statement separator, M32C: M32C-Chars. (line 14)
  21824. * statement separator, M68HC11: M68HC11-Syntax. (line 26)
  21825. * statement separator, Meta: Meta-Chars. (line 8)
  21826. * statement separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  21827. * statement separator, MIPS: MIPS-Chars. (line 14)
  21828. * statement separator, MSP 430: MSP430-Chars. (line 14)
  21829. * statement separator, NS32K: NS32K-Chars. (line 18)
  21830. * statement separator, OpenRISC: OpenRISC-Chars. (line 9)
  21831. * statement separator, PJ: PJ-Chars. (line 14)
  21832. * statement separator, PowerPC: PowerPC-Chars. (line 18)
  21833. * statement separator, RL78: RL78-Chars. (line 14)
  21834. * statement separator, RX: RX-Chars. (line 14)
  21835. * statement separator, S12Z: S12Z-Syntax. (line 38)
  21836. * statement separator, s390: s390 Characters. (line 13)
  21837. * statement separator, SCORE: SCORE-Chars. (line 14)
  21838. * statement separator, SH: SH-Chars. (line 8)
  21839. * statement separator, Sparc: Sparc-Chars. (line 14)
  21840. * statement separator, TIC54X: TIC54X-Chars. (line 17)
  21841. * statement separator, TIC6X: TIC6X Syntax. (line 13)
  21842. * statement separator, V850: V850-Chars. (line 13)
  21843. * statement separator, VAX: VAX-Chars. (line 14)
  21844. * statement separator, Visium: Visium Characters. (line 14)
  21845. * statement separator, XGATE: XGATE-Syntax. (line 25)
  21846. * statement separator, XStormy16: XStormy16-Chars. (line 14)
  21847. * statement separator, Z80: Z80-Chars. (line 13)
  21848. * statement separator, Z8000: Z8000-Chars. (line 13)
  21849. * statements, structure of: Statements. (line 6)
  21850. * statistics, about assembly: statistics. (line 6)
  21851. * Status register, ARC: ARC-Regs. (line 57)
  21852. * STATUS32 saved on exception, ARC: ARC-Regs. (line 82)
  21853. * stopping the assembly: Abort. (line 6)
  21854. * Stored STATUS32 register on entry to level P0 interrupts, ARC: ARC-Regs.
  21855. (line 69)
  21856. * string constants: Strings. (line 6)
  21857. * string directive: String. (line 8)
  21858. * string directive on HPPA: HPPA Directives. (line 137)
  21859. * string directive, TIC54X: TIC54X-Directives. (line 206)
  21860. * string literals: Ascii. (line 6)
  21861. * string, copying to object file: String. (line 8)
  21862. * string16 directive: String. (line 8)
  21863. * string16, copying to object file: String. (line 8)
  21864. * string32 directive: String. (line 8)
  21865. * string32, copying to object file: String. (line 8)
  21866. * string64 directive: String. (line 8)
  21867. * string64, copying to object file: String. (line 8)
  21868. * string8 directive: String. (line 8)
  21869. * string8, copying to object file: String. (line 8)
  21870. * struct directive: Struct. (line 6)
  21871. * struct directive, TIC54X: TIC54X-Directives. (line 214)
  21872. * structure debugging, COFF: Tag. (line 6)
  21873. * sub-instruction ordering, D10V: D10V-Chars. (line 14)
  21874. * sub-instruction ordering, D30V: D30V-Chars. (line 14)
  21875. * sub-instructions, D10V: D10V-Subs. (line 6)
  21876. * sub-instructions, D30V: D30V-Subs. (line 6)
  21877. * subexpressions: Arguments. (line 24)
  21878. * subsection directive: SubSection. (line 6)
  21879. * subsym builtins, TIC54X: TIC54X-Macros. (line 16)
  21880. * subtitles for listings: Sbttl. (line 6)
  21881. * subtraction, permitted arguments: Infix Ops. (line 50)
  21882. * summary of options: Overview. (line 6)
  21883. * support: HPPA-Dependent. (line 6)
  21884. * supporting files, including: Include. (line 6)
  21885. * suppressing warnings: W. (line 11)
  21886. * sval: Z8000 Directives. (line 33)
  21887. * symbol attributes: Symbol Attributes. (line 6)
  21888. * symbol attributes, a.out: a.out Symbols. (line 6)
  21889. * symbol attributes, COFF: COFF Symbols. (line 6)
  21890. * symbol attributes, SOM: SOM Symbols. (line 6)
  21891. * symbol descriptor, COFF: Desc. (line 6)
  21892. * symbol modifiers: AVR-Modifiers. (line 12)
  21893. * symbol modifiers <1>: LM32-Modifiers. (line 12)
  21894. * symbol modifiers <2>: M32C-Modifiers. (line 11)
  21895. * symbol modifiers <3>: M68HC11-Modifiers. (line 12)
  21896. * symbol modifiers, TILE-Gx: TILE-Gx Modifiers. (line 6)
  21897. * symbol modifiers, TILEPro: TILEPro Modifiers. (line 6)
  21898. * symbol names: Symbol Names. (line 6)
  21899. * symbol names, $ in: D10V-Chars. (line 46)
  21900. * symbol names, $ in <1>: D30V-Chars. (line 70)
  21901. * symbol names, $ in <2>: Meta-Chars. (line 10)
  21902. * symbol names, $ in <3>: SH-Chars. (line 15)
  21903. * symbol names, local: Symbol Names. (line 30)
  21904. * symbol names, temporary: Symbol Names. (line 43)
  21905. * symbol prefix character, ARC: ARC-Chars. (line 20)
  21906. * symbol storage class (COFF): Scl. (line 6)
  21907. * symbol type: Symbol Type. (line 6)
  21908. * symbol type, COFF: Type. (line 11)
  21909. * symbol type, ELF: Type. (line 22)
  21910. * symbol value: Symbol Value. (line 6)
  21911. * symbol value, setting: Set. (line 6)
  21912. * symbol values, assigning: Setting Symbols. (line 6)
  21913. * symbol versioning: Symver. (line 6)
  21914. * symbol, common: Comm. (line 6)
  21915. * symbol, making visible to linker: Global. (line 6)
  21916. * symbolic debuggers, information for: Stab. (line 6)
  21917. * symbols: Symbols. (line 6)
  21918. * Symbols in position-independent code, CRIS: CRIS-Pic. (line 6)
  21919. * symbols with uppercase, VAX/VMS: VAX-Opts. (line 42)
  21920. * symbols, assigning values to: Equ. (line 6)
  21921. * Symbols, built-in, CRIS: CRIS-Symbols. (line 6)
  21922. * Symbols, CRIS, built-in: CRIS-Symbols. (line 6)
  21923. * symbols, local common: Lcomm. (line 6)
  21924. * symver directive: Symver. (line 6)
  21925. * syntax compatibility, i386: i386-Variations. (line 6)
  21926. * syntax compatibility, x86-64: i386-Variations. (line 6)
  21927. * syntax, AVR: AVR-Modifiers. (line 6)
  21928. * syntax, Blackfin: Blackfin Syntax. (line 6)
  21929. * syntax, D10V: D10V-Syntax. (line 6)
  21930. * syntax, D30V: D30V-Syntax. (line 6)
  21931. * syntax, LM32: LM32-Modifiers. (line 6)
  21932. * syntax, M680x0: M68K-Syntax. (line 8)
  21933. * syntax, M68HC11: M68HC11-Syntax. (line 6)
  21934. * syntax, M68HC11 <1>: M68HC11-Modifiers. (line 6)
  21935. * syntax, machine-independent: Syntax. (line 6)
  21936. * syntax, OPENRISC: OpenRISC-Dependent. (line 12)
  21937. * syntax, RL78: RL78-Modifiers. (line 6)
  21938. * syntax, RX: RX-Modifiers. (line 6)
  21939. * syntax, S12Z: S12Z-Syntax. (line 6)
  21940. * syntax, SPARC: Sparc-Aligned-Data. (line 20)
  21941. * syntax, TILE-Gx: TILE-Gx Syntax. (line 6)
  21942. * syntax, TILEPro: TILEPro Syntax. (line 6)
  21943. * syntax, XGATE: XGATE-Syntax. (line 6)
  21944. * syntax, Xtensa assembler: Xtensa Syntax. (line 6)
  21945. * tab (\t): Strings. (line 27)
  21946. * tab directive, TIC54X: TIC54X-Directives. (line 245)
  21947. * tag directive: Tag. (line 6)
  21948. * tag directive, TIC54X: TIC54X-Directives. (line 214)
  21949. * tag directive, TIC54X <1>: TIC54X-Directives. (line 248)
  21950. * TBM, i386: i386-TBM. (line 6)
  21951. * TBM, x86-64: i386-TBM. (line 6)
  21952. * tdaoff pseudo-op, V850: V850 Opcodes. (line 81)
  21953. * temporary symbol names: Symbol Names. (line 43)
  21954. * text and data sections, joining: R. (line 6)
  21955. * text directive: Text. (line 6)
  21956. * text section: Ld Sections. (line 9)
  21957. * tfloat directive, i386: i386-Float. (line 14)
  21958. * tfloat directive, x86-64: i386-Float. (line 14)
  21959. * Thumb support: ARM-Dependent. (line 6)
  21960. * TIC54X builtin math functions: TIC54X-Builtins. (line 6)
  21961. * TIC54X line comment character: TIC54X-Chars. (line 6)
  21962. * TIC54X line separator: TIC54X-Chars. (line 17)
  21963. * TIC54X machine directives: TIC54X-Directives. (line 6)
  21964. * TIC54X memory-mapped registers: TIC54X-MMRegs. (line 6)
  21965. * TIC54X options: TIC54X-Opts. (line 6)
  21966. * TIC54X subsym builtins: TIC54X-Macros. (line 16)
  21967. * TIC54X support: TIC54X-Dependent. (line 6)
  21968. * TIC54X-specific macros: TIC54X-Macros. (line 6)
  21969. * TIC6X big-endian output: TIC6X Options. (line 46)
  21970. * TIC6X line comment character: TIC6X Syntax. (line 6)
  21971. * TIC6X line separator: TIC6X Syntax. (line 13)
  21972. * TIC6X little-endian output: TIC6X Options. (line 46)
  21973. * TIC6X machine directives: TIC6X Directives. (line 6)
  21974. * TIC6X options: TIC6X Options. (line 6)
  21975. * TIC6X support: TIC6X-Dependent. (line 6)
  21976. * TILE-Gx machine directives: TILE-Gx Directives. (line 6)
  21977. * TILE-Gx modifiers: TILE-Gx Modifiers. (line 6)
  21978. * TILE-Gx opcode names: TILE-Gx Opcodes. (line 6)
  21979. * TILE-Gx register names: TILE-Gx Registers. (line 6)
  21980. * TILE-Gx support: TILE-Gx-Dependent. (line 6)
  21981. * TILE-Gx syntax: TILE-Gx Syntax. (line 6)
  21982. * TILEPro machine directives: TILEPro Directives. (line 6)
  21983. * TILEPro modifiers: TILEPro Modifiers. (line 6)
  21984. * TILEPro opcode names: TILEPro Opcodes. (line 6)
  21985. * TILEPro register names: TILEPro Registers. (line 6)
  21986. * TILEPro support: TILEPro-Dependent. (line 6)
  21987. * TILEPro syntax: TILEPro Syntax. (line 6)
  21988. * time, total for assembly: statistics. (line 6)
  21989. * title directive: Title. (line 6)
  21990. * tls_gd directive, Nios II: Nios II Relocations.
  21991. (line 38)
  21992. * tls_ie directive, Nios II: Nios II Relocations.
  21993. (line 38)
  21994. * tls_ldm directive, Nios II: Nios II Relocations.
  21995. (line 38)
  21996. * tls_ldo directive, Nios II: Nios II Relocations.
  21997. (line 38)
  21998. * tls_le directive, Nios II: Nios II Relocations.
  21999. (line 38)
  22000. * TMS320C6X support: TIC6X-Dependent. (line 6)
  22001. * tp register, V850: V850-Regs. (line 16)
  22002. * transform directive: Transform Directive.
  22003. (line 6)
  22004. * trusted compiler: f. (line 6)
  22005. * turning preprocessing on and off: Preprocessing. (line 26)
  22006. * two-byte integer: 2byte. (line 6)
  22007. * type directive (COFF version): Type. (line 11)
  22008. * type directive (ELF version): Type. (line 22)
  22009. * type of a symbol: Symbol Type. (line 6)
  22010. * ualong directive, SH: SH Directives. (line 6)
  22011. * uaquad directive, SH: SH Directives. (line 6)
  22012. * uaword directive, SH: SH Directives. (line 6)
  22013. * ubyte directive, TIC54X: TIC54X-Directives. (line 34)
  22014. * uchar directive, TIC54X: TIC54X-Directives. (line 34)
  22015. * uhalf directive, TIC54X: TIC54X-Directives. (line 109)
  22016. * uint directive, TIC54X: TIC54X-Directives. (line 109)
  22017. * uleb128 directive: Uleb128. (line 6)
  22018. * ulong directive, TIC54X: TIC54X-Directives. (line 133)
  22019. * undefined section: Ld Sections. (line 36)
  22020. * union directive, TIC54X: TIC54X-Directives. (line 248)
  22021. * unsegm: Z8000 Directives. (line 14)
  22022. * usect directive, TIC54X: TIC54X-Directives. (line 260)
  22023. * ushort directive, TIC54X: TIC54X-Directives. (line 109)
  22024. * uword directive, TIC54X: TIC54X-Directives. (line 109)
  22025. * V850 command-line options: V850 Options. (line 9)
  22026. * V850 floating point (IEEE): V850 Floating Point.
  22027. (line 6)
  22028. * V850 line comment character: V850-Chars. (line 6)
  22029. * V850 line separator: V850-Chars. (line 13)
  22030. * V850 machine directives: V850 Directives. (line 6)
  22031. * V850 opcodes: V850 Opcodes. (line 6)
  22032. * V850 options (none): V850 Options. (line 6)
  22033. * V850 register names: V850-Regs. (line 6)
  22034. * V850 support: V850-Dependent. (line 6)
  22035. * val directive: Val. (line 6)
  22036. * value attribute, COFF: Val. (line 6)
  22037. * value of a symbol: Symbol Value. (line 6)
  22038. * var directive, TIC54X: TIC54X-Directives. (line 270)
  22039. * VAX bitfields not supported: VAX-no. (line 6)
  22040. * VAX branch improvement: VAX-branch. (line 6)
  22041. * VAX command-line options ignored: VAX-Opts. (line 6)
  22042. * VAX displacement sizing character: VAX-operands. (line 12)
  22043. * VAX floating point: VAX-float. (line 6)
  22044. * VAX immediate character: VAX-operands. (line 6)
  22045. * VAX indirect character: VAX-operands. (line 9)
  22046. * VAX line comment character: VAX-Chars. (line 6)
  22047. * VAX line separator: VAX-Chars. (line 14)
  22048. * VAX machine directives: VAX-directives. (line 6)
  22049. * VAX opcode mnemonics: VAX-opcodes. (line 6)
  22050. * VAX operand notation: VAX-operands. (line 6)
  22051. * VAX register names: VAX-operands. (line 17)
  22052. * VAX support: Vax-Dependent. (line 6)
  22053. * Vax-11 C compatibility: VAX-Opts. (line 42)
  22054. * VAX/VMS options: VAX-Opts. (line 42)
  22055. * version directive: Version. (line 6)
  22056. * version directive, TIC54X: TIC54X-Directives. (line 274)
  22057. * version of assembler: v. (line 6)
  22058. * versions of symbols: Symver. (line 6)
  22059. * Virtualization instruction generation override: MIPS ASE Instruction Generation Overrides.
  22060. (line 52)
  22061. * visibility: Hidden. (line 6)
  22062. * visibility <1>: Internal. (line 6)
  22063. * visibility <2>: Protected. (line 6)
  22064. * Visium line comment character: Visium Characters. (line 6)
  22065. * Visium line separator: Visium Characters. (line 14)
  22066. * Visium options: Visium Options. (line 6)
  22067. * Visium registers: Visium Registers. (line 6)
  22068. * Visium support: Visium-Dependent. (line 6)
  22069. * VMS (VAX) options: VAX-Opts. (line 42)
  22070. * vtable_entry directive: VTableEntry. (line 6)
  22071. * vtable_inherit directive: VTableInherit. (line 6)
  22072. * warning directive: Warning. (line 6)
  22073. * warning for altered difference tables: K. (line 6)
  22074. * warning messages: Errors. (line 6)
  22075. * warnings, causing error: W. (line 16)
  22076. * warnings, M32R: M32R-Warnings. (line 6)
  22077. * warnings, suppressing: W. (line 11)
  22078. * warnings, switching on: W. (line 19)
  22079. * weak directive: Weak. (line 6)
  22080. * weakref directive: Weakref. (line 6)
  22081. * WebAssembly floating point (IEEE): WebAssembly-Floating-Point.
  22082. (line 6)
  22083. * WebAssembly line comment character: WebAssembly-Chars. (line 6)
  22084. * WebAssembly module layout: WebAssembly-module-layout.
  22085. (line 6)
  22086. * WebAssembly notes: WebAssembly-Notes. (line 6)
  22087. * WebAssembly opcodes: WebAssembly-Opcodes.
  22088. (line 6)
  22089. * WebAssembly relocations: WebAssembly-Relocs. (line 6)
  22090. * WebAssembly signatures: WebAssembly-Signatures.
  22091. (line 6)
  22092. * WebAssembly support: WebAssembly-Dependent.
  22093. (line 6)
  22094. * WebAssembly Syntax: WebAssembly-Syntax. (line 6)
  22095. * whitespace: Whitespace. (line 6)
  22096. * whitespace, removed by preprocessor: Preprocessing. (line 7)
  22097. * wide floating point directives, VAX: VAX-directives. (line 9)
  22098. * width directive, TIC54X: TIC54X-Directives. (line 125)
  22099. * Width of continuation lines of disassembly output: listing.
  22100. (line 21)
  22101. * Width of first line disassembly output: listing. (line 16)
  22102. * Width of source line output: listing. (line 28)
  22103. * wmsg directive, TIC54X: TIC54X-Directives. (line 75)
  22104. * word aligned program counter, ARC: ARC-Regs. (line 44)
  22105. * word directive: Word. (line 6)
  22106. * word directive, H8/300: H8/300 Directives. (line 6)
  22107. * word directive, i386: i386-Float. (line 21)
  22108. * word directive, Nios II: Nios II Directives. (line 13)
  22109. * word directive, OpenRISC: OpenRISC-Directives.
  22110. (line 12)
  22111. * word directive, PRU: PRU Directives. (line 10)
  22112. * word directive, SPARC: Sparc-Directives. (line 51)
  22113. * word directive, TIC54X: TIC54X-Directives. (line 109)
  22114. * word directive, x86-64: i386-Float. (line 21)
  22115. * writing patterns in memory: Fill. (line 6)
  22116. * wval: Z8000 Directives. (line 24)
  22117. * x86 machine directives: i386-Directives. (line 6)
  22118. * x86-64 arch directive: i386-Arch. (line 6)
  22119. * x86-64 att_syntax pseudo op: i386-Variations. (line 6)
  22120. * x86-64 conversion instructions: i386-Mnemonics. (line 56)
  22121. * x86-64 floating point: i386-Float. (line 6)
  22122. * x86-64 immediate operands: i386-Variations. (line 15)
  22123. * x86-64 instruction naming: i386-Mnemonics. (line 9)
  22124. * x86-64 intel_syntax pseudo op: i386-Variations. (line 6)
  22125. * x86-64 jump optimization: i386-Jumps. (line 6)
  22126. * x86-64 jump, call, return: i386-Variations. (line 40)
  22127. * x86-64 jump/call operands: i386-Variations. (line 15)
  22128. * x86-64 memory references: i386-Memory. (line 6)
  22129. * x86-64 options: i386-Options. (line 6)
  22130. * x86-64 register operands: i386-Variations. (line 15)
  22131. * x86-64 registers: i386-Regs. (line 6)
  22132. * x86-64 sections: i386-Variations. (line 46)
  22133. * x86-64 size suffixes: i386-Variations. (line 28)
  22134. * x86-64 source, destination operands: i386-Variations. (line 21)
  22135. * x86-64 support: i386-Dependent. (line 6)
  22136. * x86-64 syntax compatibility: i386-Variations. (line 6)
  22137. * xfloat directive, TIC54X: TIC54X-Directives. (line 62)
  22138. * XGATE addressing modes: XGATE-Syntax. (line 28)
  22139. * XGATE assembler directives: XGATE-Directives. (line 6)
  22140. * XGATE floating point: XGATE-Float. (line 6)
  22141. * XGATE line comment character: XGATE-Syntax. (line 16)
  22142. * XGATE line separator: XGATE-Syntax. (line 25)
  22143. * XGATE opcodes: XGATE-opcodes. (line 6)
  22144. * XGATE options: XGATE-Opts. (line 6)
  22145. * XGATE support: XGATE-Dependent. (line 6)
  22146. * XGATE syntax: XGATE-Syntax. (line 6)
  22147. * xlong directive, TIC54X: TIC54X-Directives. (line 133)
  22148. * XStormy16 comment character: XStormy16-Chars. (line 11)
  22149. * XStormy16 line comment character: XStormy16-Chars. (line 6)
  22150. * XStormy16 line separator: XStormy16-Chars. (line 14)
  22151. * XStormy16 machine directives: XStormy16 Directives.
  22152. (line 6)
  22153. * XStormy16 pseudo-opcodes: XStormy16 Opcodes. (line 6)
  22154. * XStormy16 support: XSTORMY16-Dependent.
  22155. (line 6)
  22156. * Xtensa architecture: Xtensa-Dependent. (line 6)
  22157. * Xtensa assembler syntax: Xtensa Syntax. (line 6)
  22158. * Xtensa directives: Xtensa Directives. (line 6)
  22159. * Xtensa opcode names: Xtensa Opcodes. (line 6)
  22160. * Xtensa register names: Xtensa Registers. (line 6)
  22161. * xword directive, SPARC: Sparc-Directives. (line 55)
  22162. * Z80 $: Z80-Chars. (line 15)
  22163. * Z80 ': Z80-Chars. (line 20)
  22164. * Z80 floating point: Z80 Floating Point. (line 6)
  22165. * Z80 line comment character: Z80-Chars. (line 6)
  22166. * Z80 line separator: Z80-Chars. (line 13)
  22167. * Z80 options: Z80 Options. (line 6)
  22168. * Z80 registers: Z80-Regs. (line 6)
  22169. * Z80 support: Z80-Dependent. (line 6)
  22170. * Z80 Syntax: Z80 Options. (line 40)
  22171. * Z80, case sensitivity: Z80-Case. (line 6)
  22172. * Z80, \: Z80-Chars. (line 18)
  22173. * Z80-only directives: Z80 Directives. (line 9)
  22174. * Z800 addressing modes: Z8000-Addressing. (line 6)
  22175. * Z8000 directives: Z8000 Directives. (line 6)
  22176. * Z8000 line comment character: Z8000-Chars. (line 6)
  22177. * Z8000 line separator: Z8000-Chars. (line 13)
  22178. * Z8000 opcode summary: Z8000 Opcodes. (line 6)
  22179. * Z8000 options: Z8000 Options. (line 6)
  22180. * Z8000 registers: Z8000-Regs. (line 6)
  22181. * Z8000 support: Z8000-Dependent. (line 6)
  22182. * zdaoff pseudo-op, V850: V850 Opcodes. (line 98)
  22183. * zero directive: Zero. (line 6)
  22184. * zero register, V850: V850-Regs. (line 7)
  22185. * zero-terminated strings: Asciz. (line 6)
  22186. 
  22187. Tag Table:
  22188. Node: Top733
  22189. Node: Overview1746
  22190. Node: Manual43379
  22191. Node: GNU Assembler44323
  22192. Node: Object Formats45494
  22193. Node: Command Line45946
  22194. Node: Input Files47032
  22195. Node: Object49013
  22196. Node: Errors49909
  22197. Node: Invoking51471
  22198. Node: a53477
  22199. Node: alternate55388
  22200. Node: D55560
  22201. Node: f55793
  22202. Node: I56302
  22203. Node: K56846
  22204. Node: L57150
  22205. Node: listing57889
  22206. Node: M59548
  22207. Node: MD63385
  22208. Node: no-pad-sections63825
  22209. Node: o64200
  22210. Node: R64627
  22211. Node: statistics65657
  22212. Node: traditional-format66064
  22213. Node: v66537
  22214. Node: W66812
  22215. Node: Z67719
  22216. Node: Syntax68241
  22217. Node: Preprocessing68833
  22218. Node: Whitespace70397
  22219. Node: Comments70793
  22220. Node: Symbol Intro72804
  22221. Node: Statements73789
  22222. Node: Constants75777
  22223. Node: Characters76408
  22224. Node: Strings76910
  22225. Node: Chars79083
  22226. Node: Numbers79935
  22227. Node: Integers80475
  22228. Node: Bignums81131
  22229. Node: Flonums81487
  22230. Node: Sections83104
  22231. Node: Secs Background83482
  22232. Node: Ld Sections88515
  22233. Node: As Sections90899
  22234. Node: Sub-Sections91809
  22235. Node: bss94957
  22236. Node: Symbols95907
  22237. Node: Labels96555
  22238. Node: Setting Symbols97286
  22239. Node: Symbol Names97840
  22240. Node: Dot103307
  22241. Node: Symbol Attributes103754
  22242. Node: Symbol Value104487
  22243. Node: Symbol Type105532
  22244. Node: a.out Symbols105920
  22245. Node: Symbol Desc106182
  22246. Node: Symbol Other106478
  22247. Node: COFF Symbols106647
  22248. Node: SOM Symbols107320
  22249. Node: Expressions107762
  22250. Node: Empty Exprs108511
  22251. Node: Integer Exprs108858
  22252. Node: Arguments109253
  22253. Node: Operators110359
  22254. Node: Prefix Ops110694
  22255. Node: Infix Ops111021
  22256. Node: Pseudo Ops113415
  22257. Node: Abort119449
  22258. Node: ABORT (COFF)119862
  22259. Node: Align120070
  22260. Node: Altmacro122346
  22261. Node: Ascii123677
  22262. Node: Asciz123986
  22263. Node: Balign124231
  22264. Node: Bundle directives126107
  22265. Node: Byte129088
  22266. Node: CFI directives129347
  22267. Node: Comm138659
  22268. Ref: Comm-Footnote-1140259
  22269. Node: Data140621
  22270. Node: Dc140937
  22271. Node: Dcb141914
  22272. Node: Ds142707
  22273. Node: Def143537
  22274. Node: Desc143767
  22275. Node: Dim144267
  22276. Node: Double144524
  22277. Node: Eject144862
  22278. Node: Else145037
  22279. Node: Elseif145337
  22280. Node: End145631
  22281. Node: Endef145846
  22282. Node: Endfunc146023
  22283. Node: Endif146198
  22284. Node: Equ146459
  22285. Node: Equiv146974
  22286. Node: Eqv147530
  22287. Node: Err147894
  22288. Node: Error148205
  22289. Node: Exitm148650
  22290. Node: Extern148819
  22291. Node: Fail149080
  22292. Node: File149525
  22293. Node: Fill150854
  22294. Node: Float151818
  22295. Node: Func152160
  22296. Node: Global152750
  22297. Node: Gnu_attribute153507
  22298. Node: Hidden153732
  22299. Node: hword154318
  22300. Node: Ident154646
  22301. Node: If155220
  22302. Node: Incbin158281
  22303. Node: Include158975
  22304. Node: Int159526
  22305. Node: Internal159907
  22306. Node: Irp160554
  22307. Node: Irpc161433
  22308. Node: Lcomm162349
  22309. Node: Lflags163096
  22310. Node: Line163290
  22311. Node: Linkonce164206
  22312. Node: List165435
  22313. Node: Ln166042
  22314. Node: Loc166192
  22315. Node: Loc_mark_labels168384
  22316. Node: Local168868
  22317. Node: Long169480
  22318. Node: Macro169658
  22319. Node: MRI175589
  22320. Node: Noaltmacro175927
  22321. Node: Nolist176096
  22322. Node: Nops176525
  22323. Node: Octa177326
  22324. Node: Offset177661
  22325. Node: Org177988
  22326. Node: P2align179273
  22327. Node: PopSection181201
  22328. Node: Previous181709
  22329. Node: Print183121
  22330. Node: Protected183350
  22331. Node: Psize183997
  22332. Node: Purgem184681
  22333. Node: PushSection184902
  22334. Node: Quad185646
  22335. Node: Reloc186100
  22336. Node: Rept186861
  22337. Node: Sbttl187423
  22338. Node: Scl187788
  22339. Node: Section188129
  22340. Ref: Section Name Substitutions190187
  22341. Node: Set196296
  22342. Node: Short197378
  22343. Node: Single197699
  22344. Node: Size198044
  22345. Node: Skip198710
  22346. Node: Sleb128199034
  22347. Node: Space199356
  22348. Node: Stab199997
  22349. Node: String202000
  22350. Node: Struct202992
  22351. Node: SubSection203715
  22352. Node: Symver204276
  22353. Node: Tag206670
  22354. Node: Text207050
  22355. Node: Title207370
  22356. Node: Type207749
  22357. Node: Uleb128210054
  22358. Node: Val210376
  22359. Node: Version210626
  22360. Node: VTableEntry210900
  22361. Node: VTableInherit211190
  22362. Node: Warning211640
  22363. Node: Weak211874
  22364. Node: Weakref212543
  22365. Node: Word213508
  22366. Node: Zero215348
  22367. Node: 2byte215755
  22368. Node: 4byte216759
  22369. Node: 8byte217023
  22370. Node: Deprecated217300
  22371. Node: Object Attributes217535
  22372. Node: GNU Object Attributes219255
  22373. Node: Defining New Object Attributes222780
  22374. Node: Machine Dependencies223572
  22375. Node: AArch64-Dependent227563
  22376. Node: AArch64 Options228045
  22377. Node: AArch64 Extensions230771
  22378. Node: AArch64 Syntax235362
  22379. Node: AArch64-Chars235662
  22380. Node: AArch64-Regs236148
  22381. Node: AArch64-Relocations236442
  22382. Node: AArch64 Floating Point237516
  22383. Node: AArch64 Directives237741
  22384. Node: AArch64 Opcodes241159
  22385. Node: AArch64 Mapping Symbols241836
  22386. Node: Alpha-Dependent242217
  22387. Node: Alpha Notes242657
  22388. Node: Alpha Options242938
  22389. Node: Alpha Syntax245413
  22390. Node: Alpha-Chars245882
  22391. Node: Alpha-Regs246294
  22392. Node: Alpha-Relocs246681
  22393. Node: Alpha Floating Point252927
  22394. Node: Alpha Directives253149
  22395. Node: Alpha Opcodes258676
  22396. Node: ARC-Dependent258971
  22397. Node: ARC Options259416
  22398. Node: ARC Syntax262542
  22399. Node: ARC-Chars262770
  22400. Node: ARC-Regs263892
  22401. Node: ARC Directives266660
  22402. Node: ARC Modifiers275315
  22403. Node: ARC Symbols276325
  22404. Node: ARC Opcodes276879
  22405. Node: ARM-Dependent277125
  22406. Node: ARM Options277590
  22407. Node: ARM Syntax288369
  22408. Node: ARM-Instruction-Set288737
  22409. Node: ARM-Chars289952
  22410. Node: ARM-Regs290663
  22411. Node: ARM-Relocations290872
  22412. Node: ARM-Neon-Alignment292558
  22413. Node: ARM Floating Point293023
  22414. Node: ARM Directives293222
  22415. Ref: arm_fnend297588
  22416. Ref: arm_fnstart297907
  22417. Ref: arm_pad300315
  22418. Ref: arm_save300917
  22419. Ref: arm_setfp301618
  22420. Node: ARM Opcodes304904
  22421. Node: ARM Mapping Symbols307506
  22422. Node: ARM Unwinding Tutorial308315
  22423. Node: AVR-Dependent314515
  22424. Node: AVR Options314854
  22425. Node: AVR Syntax321172
  22426. Node: AVR-Chars321459
  22427. Node: AVR-Regs322018
  22428. Node: AVR-Modifiers322599
  22429. Node: AVR Opcodes324663
  22430. Node: AVR Pseudo Instructions329941
  22431. Node: Blackfin-Dependent331600
  22432. Node: Blackfin Options331912
  22433. Node: Blackfin Syntax332886
  22434. Node: Blackfin Directives339095
  22435. Node: CR16-Dependent339836
  22436. Node: CR16 Operand Qualifiers340136
  22437. Node: CR16 Syntax342845
  22438. Node: CR16-Chars343031
  22439. Node: CRIS-Dependent343568
  22440. Node: CRIS-Opts343915
  22441. Ref: march-option345600
  22442. Node: CRIS-Expand347419
  22443. Node: CRIS-Symbols348602
  22444. Node: CRIS-Syntax349773
  22445. Node: CRIS-Chars350109
  22446. Node: CRIS-Pic350660
  22447. Ref: crispic350855
  22448. Node: CRIS-Regs354404
  22449. Node: CRIS-Pseudos354821
  22450. Ref: crisnous355598
  22451. Node: C-SKY-Dependent356886
  22452. Node: C-SKY Options357146
  22453. Node: C-SKY Syntax360129
  22454. Node: D10V-Dependent360372
  22455. Node: D10V-Opts360726
  22456. Node: D10V-Syntax361697
  22457. Node: D10V-Size362228
  22458. Node: D10V-Subs363201
  22459. Node: D10V-Chars364238
  22460. Node: D10V-Regs366051
  22461. Node: D10V-Addressing367080
  22462. Node: D10V-Word367760
  22463. Node: D10V-Float368277
  22464. Node: D10V-Opcodes368590
  22465. Node: D30V-Dependent368985
  22466. Node: D30V-Opts369342
  22467. Node: D30V-Syntax370020
  22468. Node: D30V-Size370554
  22469. Node: D30V-Subs371527
  22470. Node: D30V-Chars372564
  22471. Node: D30V-Guarded375174
  22472. Node: D30V-Regs375851
  22473. Node: D30V-Addressing376970
  22474. Node: D30V-Float377632
  22475. Node: D30V-Opcodes377945
  22476. Node: Epiphany-Dependent378340
  22477. Node: Epiphany Options378628
  22478. Node: Epiphany Syntax379027
  22479. Node: Epiphany-Chars379228
  22480. Node: H8/300-Dependent379782
  22481. Node: H8/300 Options380198
  22482. Node: H8/300 Syntax380638
  22483. Node: H8/300-Chars380939
  22484. Node: H8/300-Regs381238
  22485. Node: H8/300-Addressing382157
  22486. Node: H8/300 Floating Point383181
  22487. Node: H8/300 Directives383508
  22488. Node: H8/300 Opcodes384636
  22489. Node: HPPA-Dependent392955
  22490. Node: HPPA Notes393387
  22491. Node: HPPA Options394146
  22492. Node: HPPA Syntax394341
  22493. Node: HPPA Floating Point395611
  22494. Node: HPPA Directives395817
  22495. Node: HPPA Opcodes404499
  22496. Node: i386-Dependent404758
  22497. Node: i386-Options406083
  22498. Node: i386-Directives416351
  22499. Node: i386-Syntax417462
  22500. Node: i386-Variations417767
  22501. Node: i386-Chars420304
  22502. Node: i386-Mnemonics421033
  22503. Node: i386-Regs424832
  22504. Node: i386-Prefixes427662
  22505. Node: i386-Memory430422
  22506. Node: i386-Jumps433361
  22507. Node: i386-Float434484
  22508. Node: i386-SIMD436314
  22509. Node: i386-LWP437423
  22510. Node: i386-BMI438257
  22511. Node: i386-TBM438635
  22512. Node: i386-16bit439165
  22513. Node: i386-Arch441236
  22514. Node: i386-Bugs444631
  22515. Node: i386-Notes445382
  22516. Node: IA-64-Dependent446241
  22517. Node: IA-64 Options446542
  22518. Node: IA-64 Syntax449693
  22519. Node: IA-64-Chars450099
  22520. Node: IA-64-Regs450329
  22521. Node: IA-64-Bits451255
  22522. Node: IA-64-Relocs451785
  22523. Node: IA-64 Opcodes452256
  22524. Node: IP2K-Dependent452528
  22525. Node: IP2K-Opts452800
  22526. Node: IP2K-Syntax453299
  22527. Node: IP2K-Chars453473
  22528. Node: LM32-Dependent454016
  22529. Node: LM32 Options454311
  22530. Node: LM32 Syntax454944
  22531. Node: LM32-Regs455240
  22532. Node: LM32-Modifiers456181
  22533. Node: LM32-Chars457561
  22534. Node: LM32 Opcodes458069
  22535. Node: M32C-Dependent458373
  22536. Node: M32C-Opts458879
  22537. Node: M32C-Syntax459298
  22538. Node: M32C-Modifiers459533
  22539. Node: M32C-Chars461325
  22540. Node: M32R-Dependent461891
  22541. Node: M32R-Opts462212
  22542. Node: M32R-Directives466374
  22543. Node: M32R-Warnings470348
  22544. Node: M68K-Dependent473353
  22545. Node: M68K-Opts473820
  22546. Node: M68K-Syntax481242
  22547. Node: M68K-Moto-Syntax483082
  22548. Node: M68K-Float485666
  22549. Node: M68K-Directives486186
  22550. Node: M68K-opcodes487513
  22551. Node: M68K-Branch487739
  22552. Node: M68K-Chars491934
  22553. Node: M68HC11-Dependent492797
  22554. Node: M68HC11-Opts493328
  22555. Node: M68HC11-Syntax497640
  22556. Node: M68HC11-Modifiers500434
  22557. Node: M68HC11-Directives502261
  22558. Node: M68HC11-Float503635
  22559. Node: M68HC11-opcodes504163
  22560. Node: M68HC11-Branch504345
  22561. Node: S12Z-Dependent506795
  22562. Node: S12Z-Opts507231
  22563. Node: S12Z-Syntax507348
  22564. Node: S12Z-Directives512330
  22565. Node: S12Z-opcodes512490
  22566. Node: Meta-Dependent512604
  22567. Node: Meta Options512886
  22568. Node: Meta Syntax513548
  22569. Node: Meta-Chars513760
  22570. Node: Meta-Regs514060
  22571. Node: MicroBlaze-Dependent514336
  22572. Node: MicroBlaze Directives515023
  22573. Node: MicroBlaze Syntax516414
  22574. Node: MicroBlaze-Chars516646
  22575. Node: MIPS-Dependent517198
  22576. Node: MIPS Options518632
  22577. Node: MIPS Macros537416
  22578. Ref: MIPS Macros-Footnote-1540130
  22579. Node: MIPS Symbol Sizes540273
  22580. Node: MIPS Small Data541945
  22581. Node: MIPS ISA544109
  22582. Node: MIPS assembly options545893
  22583. Node: MIPS autoextend547026
  22584. Node: MIPS insn547760
  22585. Node: MIPS FP ABIs549041
  22586. Node: MIPS FP ABI History549493
  22587. Node: MIPS FP ABI Variants550253
  22588. Node: MIPS FP ABI Selection552806
  22589. Node: MIPS FP ABI Compatibility553869
  22590. Node: MIPS NaN Encodings554679
  22591. Node: MIPS Option Stack556642
  22592. Node: MIPS ASE Instruction Generation Overrides557427
  22593. Node: MIPS Floating-Point562188
  22594. Node: MIPS Syntax563094
  22595. Node: MIPS-Chars563356
  22596. Node: MMIX-Dependent563898
  22597. Node: MMIX-Opts564278
  22598. Node: MMIX-Expand567884
  22599. Node: MMIX-Syntax569196
  22600. Ref: mmixsite569552
  22601. Node: MMIX-Chars570394
  22602. Node: MMIX-Symbols571267
  22603. Node: MMIX-Regs573338
  22604. Node: MMIX-Pseudos574363
  22605. Ref: MMIX-loc574505
  22606. Ref: MMIX-local575586
  22607. Ref: MMIX-is576119
  22608. Ref: MMIX-greg576391
  22609. Ref: GREG-base577309
  22610. Ref: MMIX-byte578628
  22611. Ref: MMIX-constants579100
  22612. Ref: MMIX-prefix579742
  22613. Ref: MMIX-spec580117
  22614. Node: MMIX-mmixal580451
  22615. Node: MSP430-Dependent583946
  22616. Node: MSP430 Options584415
  22617. Node: MSP430 Syntax587983
  22618. Node: MSP430-Macros588299
  22619. Node: MSP430-Chars589029
  22620. Node: MSP430-Regs589744
  22621. Node: MSP430-Ext590305
  22622. Node: MSP430 Floating Point592124
  22623. Node: MSP430 Directives592348
  22624. Node: MSP430 Opcodes593663
  22625. Node: MSP430 Profiling Capability594058
  22626. Node: NDS32-Dependent596386
  22627. Node: NDS32 Options596995
  22628. Node: NDS32 Syntax598878
  22629. Node: NDS32-Chars599146
  22630. Node: NDS32-Regs599613
  22631. Node: NDS32-Ops600467
  22632. Node: NiosII-Dependent604064
  22633. Node: Nios II Options604483
  22634. Node: Nios II Syntax605715
  22635. Node: Nios II Chars605921
  22636. Node: Nios II Relocations606112
  22637. Node: Nios II Directives607683
  22638. Node: Nios II Opcodes609245
  22639. Node: NS32K-Dependent609520
  22640. Node: NS32K Syntax609749
  22641. Node: NS32K-Chars609898
  22642. Node: OpenRISC-Dependent610638
  22643. Node: OpenRISC-Syntax610981
  22644. Node: OpenRISC-Chars611302
  22645. Node: OpenRISC-Regs611625
  22646. Node: OpenRISC-Relocs612638
  22647. Node: OpenRISC-Float617418
  22648. Node: OpenRISC-Directives617624
  22649. Node: OpenRISC-Opcodes618422
  22650. Node: PDP-11-Dependent618714
  22651. Node: PDP-11-Options619107
  22652. Node: PDP-11-Pseudos624166
  22653. Node: PDP-11-Syntax624511
  22654. Node: PDP-11-Mnemonics625343
  22655. Node: PDP-11-Synthetic625645
  22656. Node: PJ-Dependent625863
  22657. Node: PJ Options626126
  22658. Node: PJ Syntax626421
  22659. Node: PJ-Chars626586
  22660. Node: PPC-Dependent627135
  22661. Node: PowerPC-Opts627467
  22662. Node: PowerPC-Pseudo631191
  22663. Node: PowerPC-Syntax631812
  22664. Node: PowerPC-Chars632002
  22665. Node: PRU-Dependent632753
  22666. Node: PRU Options633136
  22667. Node: PRU Syntax633875
  22668. Node: PRU Chars634062
  22669. Node: PRU Relocations634217
  22670. Node: PRU Directives634768
  22671. Node: PRU Opcodes635671
  22672. Node: RISC-V-Dependent636088
  22673. Node: RISC-V-Options636463
  22674. Node: RISC-V-Directives637470
  22675. Node: RISC-V-Formats641195
  22676. Node: RISC-V-ATTRIBUTE648913
  22677. Node: RL78-Dependent650875
  22678. Node: RL78-Opts651276
  22679. Node: RL78-Modifiers652110
  22680. Node: RL78-Directives652889
  22681. Node: RL78-Syntax653493
  22682. Node: RL78-Chars653689
  22683. Node: RX-Dependent654245
  22684. Node: RX-Opts654676
  22685. Node: RX-Modifiers658940
  22686. Node: RX-Directives660043
  22687. Node: RX-Float660782
  22688. Node: RX-Syntax661417
  22689. Node: RX-Chars661596
  22690. Node: S/390-Dependent662148
  22691. Node: s390 Options662984
  22692. Node: s390 Characters665134
  22693. Node: s390 Syntax665655
  22694. Node: s390 Register666557
  22695. Node: s390 Mnemonics667373
  22696. Node: s390 Operands670393
  22697. Node: s390 Formats673024
  22698. Node: s390 Aliases680871
  22699. Node: s390 Operand Modifier684836
  22700. Node: s390 Instruction Marker688639
  22701. Node: s390 Literal Pool Entries689653
  22702. Node: s390 Directives691586
  22703. Node: s390 Floating Point697039
  22704. Node: SCORE-Dependent697487
  22705. Node: SCORE-Opts697789
  22706. Node: SCORE-Pseudo699076
  22707. Node: SCORE-Syntax701158
  22708. Node: SCORE-Chars701340
  22709. Node: SH-Dependent701898
  22710. Node: SH Options702310
  22711. Node: SH Syntax703361
  22712. Node: SH-Chars703634
  22713. Node: SH-Regs704177
  22714. Node: SH-Addressing704791
  22715. Node: SH Floating Point705699
  22716. Node: SH Directives706796
  22717. Node: SH Opcodes707197
  22718. Node: Sparc-Dependent711518
  22719. Node: Sparc-Opts711927
  22720. Node: Sparc-Aligned-Data717640
  22721. Node: Sparc-Syntax718472
  22722. Node: Sparc-Chars719046
  22723. Node: Sparc-Regs719609
  22724. Node: Sparc-Constants725457
  22725. Node: Sparc-Relocs730217
  22726. Node: Sparc-Size-Translations735335
  22727. Node: Sparc-Float736985
  22728. Node: Sparc-Directives737180
  22729. Node: TIC54X-Dependent739142
  22730. Node: TIC54X-Opts739905
  22731. Node: TIC54X-Block740946
  22732. Node: TIC54X-Env741306
  22733. Node: TIC54X-Constants741654
  22734. Node: TIC54X-Subsyms742051
  22735. Node: TIC54X-Locals743955
  22736. Node: TIC54X-Builtins744695
  22737. Node: TIC54X-Ext747109
  22738. Node: TIC54X-Directives747680
  22739. Node: TIC54X-Macros758588
  22740. Node: TIC54X-MMRegs760675
  22741. Node: TIC54X-Syntax760912
  22742. Node: TIC54X-Chars761102
  22743. Node: TIC6X-Dependent761793
  22744. Node: TIC6X Options762096
  22745. Node: TIC6X Syntax764095
  22746. Node: TIC6X Directives765198
  22747. Node: TILE-Gx-Dependent767482
  22748. Node: TILE-Gx Options767792
  22749. Node: TILE-Gx Syntax768141
  22750. Node: TILE-Gx Opcodes770377
  22751. Node: TILE-Gx Registers770665
  22752. Node: TILE-Gx Modifiers771436
  22753. Node: TILE-Gx Directives776435
  22754. Node: TILEPro-Dependent777338
  22755. Node: TILEPro Options777647
  22756. Node: TILEPro Syntax777831
  22757. Node: TILEPro Opcodes780067
  22758. Node: TILEPro Registers780358
  22759. Node: TILEPro Modifiers781128
  22760. Node: TILEPro Directives785917
  22761. Node: V850-Dependent786820
  22762. Node: V850 Options787216
  22763. Node: V850 Syntax791494
  22764. Node: V850-Chars791734
  22765. Node: V850-Regs792278
  22766. Node: V850 Floating Point793788
  22767. Node: V850 Directives793994
  22768. Node: V850 Opcodes796060
  22769. Node: Vax-Dependent801939
  22770. Node: VAX-Opts802523
  22771. Node: VAX-float806244
  22772. Node: VAX-directives806877
  22773. Node: VAX-opcodes807737
  22774. Node: VAX-branch808126
  22775. Node: VAX-operands810630
  22776. Node: VAX-no811393
  22777. Node: VAX-Syntax811649
  22778. Node: VAX-Chars811815
  22779. Node: Visium-Dependent812369
  22780. Node: Visium Options812682
  22781. Node: Visium Syntax813148
  22782. Node: Visium Characters813393
  22783. Node: Visium Registers813974
  22784. Node: Visium Opcodes814246
  22785. Node: WebAssembly-Dependent814672
  22786. Node: WebAssembly-Notes815113
  22787. Node: WebAssembly-Syntax815399
  22788. Node: WebAssembly-Chars815965
  22789. Node: WebAssembly-Relocs816344
  22790. Node: WebAssembly-Signatures817070
  22791. Node: WebAssembly-Floating-Point817571
  22792. Node: WebAssembly-Opcodes817812
  22793. Node: WebAssembly-module-layout818445
  22794. Node: XGATE-Dependent818925
  22795. Node: XGATE-Opts819352
  22796. Node: XGATE-Syntax820341
  22797. Node: XGATE-Directives822420
  22798. Node: XGATE-Float822659
  22799. Node: XGATE-opcodes823156
  22800. Node: XSTORMY16-Dependent823268
  22801. Node: XStormy16 Syntax823614
  22802. Node: XStormy16-Chars823804
  22803. Node: XStormy16 Directives824417
  22804. Node: XStormy16 Opcodes825071
  22805. Node: Xtensa-Dependent826126
  22806. Node: Xtensa Options826857
  22807. Node: Xtensa Syntax831124
  22808. Node: Xtensa Opcodes833268
  22809. Node: Xtensa Registers835061
  22810. Node: Xtensa Optimizations835694
  22811. Node: Density Instructions836146
  22812. Node: Xtensa Automatic Alignment837248
  22813. Node: Xtensa Relaxation839695
  22814. Node: Xtensa Branch Relaxation840660
  22815. Node: Xtensa Call Relaxation842032
  22816. Node: Xtensa Jump Relaxation843813
  22817. Node: Xtensa Immediate Relaxation845913
  22818. Node: Xtensa Directives848488
  22819. Node: Schedule Directive850196
  22820. Node: Longcalls Directive850536
  22821. Node: Transform Directive851080
  22822. Node: Literal Directive851822
  22823. Ref: Literal Directive-Footnote-1855361
  22824. Node: Literal Position Directive855503
  22825. Node: Literal Prefix Directive857202
  22826. Node: Absolute Literals Directive858100
  22827. Node: Z80-Dependent859407
  22828. Node: Z80 Options859795
  22829. Node: Z80 Syntax861214
  22830. Node: Z80-Chars861886
  22831. Node: Z80-Regs862737
  22832. Node: Z80-Case863089
  22833. Node: Z80 Floating Point863534
  22834. Node: Z80 Directives863728
  22835. Node: Z80 Opcodes865353
  22836. Node: Z8000-Dependent866699
  22837. Node: Z8000 Options867635
  22838. Node: Z8000 Syntax867852
  22839. Node: Z8000-Chars868142
  22840. Node: Z8000-Regs868624
  22841. Node: Z8000-Addressing869414
  22842. Node: Z8000 Directives870524
  22843. Node: Z8000 Opcodes872133
  22844. Node: Reporting Bugs882075
  22845. Node: Bug Criteria882801
  22846. Node: Bug Reporting883568
  22847. Node: Acknowledgements890223
  22848. Ref: Acknowledgements-Footnote-1895189
  22849. Node: GNU Free Documentation License895215
  22850. Node: AS Index920365
  22851. 
  22852. End Tag Table
  22853. 
  22854. Local Variables:
  22855. coding: utf-8
  22856. End: