Machine-Constraints.html 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2017 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 the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>Using the GNU Compiler Collection (GCC): Machine Constraints</title>
  20. <meta name="description" content="Using the GNU Compiler Collection (GCC): Machine Constraints">
  21. <meta name="keywords" content="Using the GNU Compiler Collection (GCC): Machine Constraints">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Constraints.html#Constraints" rel="up" title="Constraints">
  30. <link href="Asm-Labels.html#Asm-Labels" rel="next" title="Asm Labels">
  31. <link href="Modifiers.html#Modifiers" rel="prev" title="Modifiers">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style:oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="Machine-Constraints"></a>
  63. <div class="header">
  64. <p>
  65. Previous: <a href="Modifiers.html#Modifiers" accesskey="p" rel="prev">Modifiers</a>, Up: <a href="Constraints.html#Constraints" accesskey="u" rel="up">Constraints</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="Constraints-for-Particular-Machines"></a>
  69. <h4 class="subsubsection">6.45.3.4 Constraints for Particular Machines</h4>
  70. <a name="index-machine-specific-constraints"></a>
  71. <a name="index-constraints_002c-machine-specific"></a>
  72. <p>Whenever possible, you should use the general-purpose constraint letters
  73. in <code>asm</code> arguments, since they will convey meaning more readily to
  74. people reading your code. Failing that, use the constraint letters
  75. that usually have very similar meanings across architectures. The most
  76. commonly used constraints are &lsquo;<samp>m</samp>&rsquo; and &lsquo;<samp>r</samp>&rsquo; (for memory and
  77. general-purpose registers respectively; see <a href="Simple-Constraints.html#Simple-Constraints">Simple Constraints</a>), and
  78. &lsquo;<samp>I</samp>&rsquo;, usually the letter indicating the most common
  79. immediate-constant format.
  80. </p>
  81. <p>Each architecture defines additional constraints. These constraints
  82. are used by the compiler itself for instruction generation, as well as
  83. for <code>asm</code> statements; therefore, some of the constraints are not
  84. particularly useful for <code>asm</code>. Here is a summary of some of the
  85. machine-dependent constraints available on some particular machines;
  86. it includes both constraints that are useful for <code>asm</code> and
  87. constraints that aren&rsquo;t. The compiler source file mentioned in the
  88. table heading for each architecture is the definitive reference for
  89. the meanings of that architecture&rsquo;s constraints.
  90. </p>
  91. <dl compact="compact">
  92. <dt><em>AArch64 family&mdash;<samp>config/aarch64/constraints.md</samp></em></dt>
  93. <dd><dl compact="compact">
  94. <dt><code>k</code></dt>
  95. <dd><p>The stack pointer register (<code>SP</code>)
  96. </p>
  97. </dd>
  98. <dt><code>w</code></dt>
  99. <dd><p>Floating point or SIMD vector register
  100. </p>
  101. </dd>
  102. <dt><code>I</code></dt>
  103. <dd><p>Integer constant that is valid as an immediate operand in an <code>ADD</code>
  104. instruction
  105. </p>
  106. </dd>
  107. <dt><code>J</code></dt>
  108. <dd><p>Integer constant that is valid as an immediate operand in a <code>SUB</code>
  109. instruction (once negated)
  110. </p>
  111. </dd>
  112. <dt><code>K</code></dt>
  113. <dd><p>Integer constant that can be used with a 32-bit logical instruction
  114. </p>
  115. </dd>
  116. <dt><code>L</code></dt>
  117. <dd><p>Integer constant that can be used with a 64-bit logical instruction
  118. </p>
  119. </dd>
  120. <dt><code>M</code></dt>
  121. <dd><p>Integer constant that is valid as an immediate operand in a 32-bit <code>MOV</code>
  122. pseudo instruction. The <code>MOV</code> may be assembled to one of several different
  123. machine instructions depending on the value
  124. </p>
  125. </dd>
  126. <dt><code>N</code></dt>
  127. <dd><p>Integer constant that is valid as an immediate operand in a 64-bit <code>MOV</code>
  128. pseudo instruction
  129. </p>
  130. </dd>
  131. <dt><code>S</code></dt>
  132. <dd><p>An absolute symbolic address or a label reference
  133. </p>
  134. </dd>
  135. <dt><code>Y</code></dt>
  136. <dd><p>Floating point constant zero
  137. </p>
  138. </dd>
  139. <dt><code>Z</code></dt>
  140. <dd><p>Integer constant zero
  141. </p>
  142. </dd>
  143. <dt><code>Ush</code></dt>
  144. <dd><p>The high part (bits 12 and upwards) of the pc-relative address of a symbol
  145. within 4GB of the instruction
  146. </p>
  147. </dd>
  148. <dt><code>Q</code></dt>
  149. <dd><p>A memory address which uses a single base register with no offset
  150. </p>
  151. </dd>
  152. <dt><code>Ump</code></dt>
  153. <dd><p>A memory address suitable for a load/store pair instruction in SI, DI, SF and
  154. DF modes
  155. </p>
  156. </dd>
  157. </dl>
  158. </dd>
  159. <dt><em>ARC &mdash;<samp>config/arc/constraints.md</samp></em></dt>
  160. <dd><dl compact="compact">
  161. <dt><code>q</code></dt>
  162. <dd><p>Registers usable in ARCompact 16-bit instructions: <code>r0</code>-<code>r3</code>,
  163. <code>r12</code>-<code>r15</code>. This constraint can only match when the <samp>-mq</samp>
  164. option is in effect.
  165. </p>
  166. </dd>
  167. <dt><code>e</code></dt>
  168. <dd><p>Registers usable as base-regs of memory addresses in ARCompact 16-bit memory
  169. instructions: <code>r0</code>-<code>r3</code>, <code>r12</code>-<code>r15</code>, <code>sp</code>.
  170. This constraint can only match when the <samp>-mq</samp>
  171. option is in effect.
  172. </p></dd>
  173. <dt><code>D</code></dt>
  174. <dd><p>ARC FPX (dpfp) 64-bit registers. <code>D0</code>, <code>D1</code>.
  175. </p>
  176. </dd>
  177. <dt><code>I</code></dt>
  178. <dd><p>A signed 12-bit integer constant.
  179. </p>
  180. </dd>
  181. <dt><code>Cal</code></dt>
  182. <dd><p>constant for arithmetic/logical operations. This might be any constant
  183. that can be put into a long immediate by the assmbler or linker without
  184. involving a PIC relocation.
  185. </p>
  186. </dd>
  187. <dt><code>K</code></dt>
  188. <dd><p>A 3-bit unsigned integer constant.
  189. </p>
  190. </dd>
  191. <dt><code>L</code></dt>
  192. <dd><p>A 6-bit unsigned integer constant.
  193. </p>
  194. </dd>
  195. <dt><code>CnL</code></dt>
  196. <dd><p>One&rsquo;s complement of a 6-bit unsigned integer constant.
  197. </p>
  198. </dd>
  199. <dt><code>CmL</code></dt>
  200. <dd><p>Two&rsquo;s complement of a 6-bit unsigned integer constant.
  201. </p>
  202. </dd>
  203. <dt><code>M</code></dt>
  204. <dd><p>A 5-bit unsigned integer constant.
  205. </p>
  206. </dd>
  207. <dt><code>O</code></dt>
  208. <dd><p>A 7-bit unsigned integer constant.
  209. </p>
  210. </dd>
  211. <dt><code>P</code></dt>
  212. <dd><p>A 8-bit unsigned integer constant.
  213. </p>
  214. </dd>
  215. <dt><code>H</code></dt>
  216. <dd><p>Any const_double value.
  217. </p></dd>
  218. </dl>
  219. </dd>
  220. <dt><em>ARM family&mdash;<samp>config/arm/constraints.md</samp></em></dt>
  221. <dd><dl compact="compact">
  222. <dt><code>h</code></dt>
  223. <dd><p>In Thumb state, the core registers <code>r8</code>-<code>r15</code>.
  224. </p>
  225. </dd>
  226. <dt><code>k</code></dt>
  227. <dd><p>The stack pointer register.
  228. </p>
  229. </dd>
  230. <dt><code>l</code></dt>
  231. <dd><p>In Thumb State the core registers <code>r0</code>-<code>r7</code>. In ARM state this
  232. is an alias for the <code>r</code> constraint.
  233. </p>
  234. </dd>
  235. <dt><code>t</code></dt>
  236. <dd><p>VFP floating-point registers <code>s0</code>-<code>s31</code>. Used for 32 bit values.
  237. </p>
  238. </dd>
  239. <dt><code>w</code></dt>
  240. <dd><p>VFP floating-point registers <code>d0</code>-<code>d31</code> and the appropriate
  241. subset <code>d0</code>-<code>d15</code> based on command line options.
  242. Used for 64 bit values only. Not valid for Thumb1.
  243. </p>
  244. </dd>
  245. <dt><code>y</code></dt>
  246. <dd><p>The iWMMX co-processor registers.
  247. </p>
  248. </dd>
  249. <dt><code>z</code></dt>
  250. <dd><p>The iWMMX GR registers.
  251. </p>
  252. </dd>
  253. <dt><code>G</code></dt>
  254. <dd><p>The floating-point constant 0.0
  255. </p>
  256. </dd>
  257. <dt><code>I</code></dt>
  258. <dd><p>Integer that is valid as an immediate operand in a data processing
  259. instruction. That is, an integer in the range 0 to 255 rotated by a
  260. multiple of 2
  261. </p>
  262. </dd>
  263. <dt><code>J</code></dt>
  264. <dd><p>Integer in the range -4095 to 4095
  265. </p>
  266. </dd>
  267. <dt><code>K</code></dt>
  268. <dd><p>Integer that satisfies constraint &lsquo;<samp>I</samp>&rsquo; when inverted (ones complement)
  269. </p>
  270. </dd>
  271. <dt><code>L</code></dt>
  272. <dd><p>Integer that satisfies constraint &lsquo;<samp>I</samp>&rsquo; when negated (twos complement)
  273. </p>
  274. </dd>
  275. <dt><code>M</code></dt>
  276. <dd><p>Integer in the range 0 to 32
  277. </p>
  278. </dd>
  279. <dt><code>Q</code></dt>
  280. <dd><p>A memory reference where the exact address is in a single register
  281. (&lsquo;&lsquo;<samp>m</samp>&rsquo;&rsquo; is preferable for <code>asm</code> statements)
  282. </p>
  283. </dd>
  284. <dt><code>R</code></dt>
  285. <dd><p>An item in the constant pool
  286. </p>
  287. </dd>
  288. <dt><code>S</code></dt>
  289. <dd><p>A symbol in the text segment of the current file
  290. </p>
  291. </dd>
  292. <dt><code>Uv</code></dt>
  293. <dd><p>A memory reference suitable for VFP load/store insns (reg+constant offset)
  294. </p>
  295. </dd>
  296. <dt><code>Uy</code></dt>
  297. <dd><p>A memory reference suitable for iWMMXt load/store instructions.
  298. </p>
  299. </dd>
  300. <dt><code>Uq</code></dt>
  301. <dd><p>A memory reference suitable for the ARMv4 ldrsb instruction.
  302. </p></dd>
  303. </dl>
  304. </dd>
  305. <dt><em>AVR family&mdash;<samp>config/avr/constraints.md</samp></em></dt>
  306. <dd><dl compact="compact">
  307. <dt><code>l</code></dt>
  308. <dd><p>Registers from r0 to r15
  309. </p>
  310. </dd>
  311. <dt><code>a</code></dt>
  312. <dd><p>Registers from r16 to r23
  313. </p>
  314. </dd>
  315. <dt><code>d</code></dt>
  316. <dd><p>Registers from r16 to r31
  317. </p>
  318. </dd>
  319. <dt><code>w</code></dt>
  320. <dd><p>Registers from r24 to r31. These registers can be used in &lsquo;<samp>adiw</samp>&rsquo; command
  321. </p>
  322. </dd>
  323. <dt><code>e</code></dt>
  324. <dd><p>Pointer register (r26&ndash;r31)
  325. </p>
  326. </dd>
  327. <dt><code>b</code></dt>
  328. <dd><p>Base pointer register (r28&ndash;r31)
  329. </p>
  330. </dd>
  331. <dt><code>q</code></dt>
  332. <dd><p>Stack pointer register (SPH:SPL)
  333. </p>
  334. </dd>
  335. <dt><code>t</code></dt>
  336. <dd><p>Temporary register r0
  337. </p>
  338. </dd>
  339. <dt><code>x</code></dt>
  340. <dd><p>Register pair X (r27:r26)
  341. </p>
  342. </dd>
  343. <dt><code>y</code></dt>
  344. <dd><p>Register pair Y (r29:r28)
  345. </p>
  346. </dd>
  347. <dt><code>z</code></dt>
  348. <dd><p>Register pair Z (r31:r30)
  349. </p>
  350. </dd>
  351. <dt><code>I</code></dt>
  352. <dd><p>Constant greater than -1, less than 64
  353. </p>
  354. </dd>
  355. <dt><code>J</code></dt>
  356. <dd><p>Constant greater than -64, less than 1
  357. </p>
  358. </dd>
  359. <dt><code>K</code></dt>
  360. <dd><p>Constant integer 2
  361. </p>
  362. </dd>
  363. <dt><code>L</code></dt>
  364. <dd><p>Constant integer 0
  365. </p>
  366. </dd>
  367. <dt><code>M</code></dt>
  368. <dd><p>Constant that fits in 8 bits
  369. </p>
  370. </dd>
  371. <dt><code>N</code></dt>
  372. <dd><p>Constant integer -1
  373. </p>
  374. </dd>
  375. <dt><code>O</code></dt>
  376. <dd><p>Constant integer 8, 16, or 24
  377. </p>
  378. </dd>
  379. <dt><code>P</code></dt>
  380. <dd><p>Constant integer 1
  381. </p>
  382. </dd>
  383. <dt><code>G</code></dt>
  384. <dd><p>A floating point constant 0.0
  385. </p>
  386. </dd>
  387. <dt><code>Q</code></dt>
  388. <dd><p>A memory address based on Y or Z pointer with displacement.
  389. </p></dd>
  390. </dl>
  391. </dd>
  392. <dt><em>Blackfin family&mdash;<samp>config/bfin/constraints.md</samp></em></dt>
  393. <dd><dl compact="compact">
  394. <dt><code>a</code></dt>
  395. <dd><p>P register
  396. </p>
  397. </dd>
  398. <dt><code>d</code></dt>
  399. <dd><p>D register
  400. </p>
  401. </dd>
  402. <dt><code>z</code></dt>
  403. <dd><p>A call clobbered P register.
  404. </p>
  405. </dd>
  406. <dt><code>q<var>n</var></code></dt>
  407. <dd><p>A single register. If <var>n</var> is in the range 0 to 7, the corresponding D
  408. register. If it is <code>A</code>, then the register P0.
  409. </p>
  410. </dd>
  411. <dt><code>D</code></dt>
  412. <dd><p>Even-numbered D register
  413. </p>
  414. </dd>
  415. <dt><code>W</code></dt>
  416. <dd><p>Odd-numbered D register
  417. </p>
  418. </dd>
  419. <dt><code>e</code></dt>
  420. <dd><p>Accumulator register.
  421. </p>
  422. </dd>
  423. <dt><code>A</code></dt>
  424. <dd><p>Even-numbered accumulator register.
  425. </p>
  426. </dd>
  427. <dt><code>B</code></dt>
  428. <dd><p>Odd-numbered accumulator register.
  429. </p>
  430. </dd>
  431. <dt><code>b</code></dt>
  432. <dd><p>I register
  433. </p>
  434. </dd>
  435. <dt><code>v</code></dt>
  436. <dd><p>B register
  437. </p>
  438. </dd>
  439. <dt><code>f</code></dt>
  440. <dd><p>M register
  441. </p>
  442. </dd>
  443. <dt><code>c</code></dt>
  444. <dd><p>Registers used for circular buffering, i.e. I, B, or L registers.
  445. </p>
  446. </dd>
  447. <dt><code>C</code></dt>
  448. <dd><p>The CC register.
  449. </p>
  450. </dd>
  451. <dt><code>t</code></dt>
  452. <dd><p>LT0 or LT1.
  453. </p>
  454. </dd>
  455. <dt><code>k</code></dt>
  456. <dd><p>LC0 or LC1.
  457. </p>
  458. </dd>
  459. <dt><code>u</code></dt>
  460. <dd><p>LB0 or LB1.
  461. </p>
  462. </dd>
  463. <dt><code>x</code></dt>
  464. <dd><p>Any D, P, B, M, I or L register.
  465. </p>
  466. </dd>
  467. <dt><code>y</code></dt>
  468. <dd><p>Additional registers typically used only in prologues and epilogues: RETS,
  469. RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and USP.
  470. </p>
  471. </dd>
  472. <dt><code>w</code></dt>
  473. <dd><p>Any register except accumulators or CC.
  474. </p>
  475. </dd>
  476. <dt><code>Ksh</code></dt>
  477. <dd><p>Signed 16 bit integer (in the range -32768 to 32767)
  478. </p>
  479. </dd>
  480. <dt><code>Kuh</code></dt>
  481. <dd><p>Unsigned 16 bit integer (in the range 0 to 65535)
  482. </p>
  483. </dd>
  484. <dt><code>Ks7</code></dt>
  485. <dd><p>Signed 7 bit integer (in the range -64 to 63)
  486. </p>
  487. </dd>
  488. <dt><code>Ku7</code></dt>
  489. <dd><p>Unsigned 7 bit integer (in the range 0 to 127)
  490. </p>
  491. </dd>
  492. <dt><code>Ku5</code></dt>
  493. <dd><p>Unsigned 5 bit integer (in the range 0 to 31)
  494. </p>
  495. </dd>
  496. <dt><code>Ks4</code></dt>
  497. <dd><p>Signed 4 bit integer (in the range -8 to 7)
  498. </p>
  499. </dd>
  500. <dt><code>Ks3</code></dt>
  501. <dd><p>Signed 3 bit integer (in the range -3 to 4)
  502. </p>
  503. </dd>
  504. <dt><code>Ku3</code></dt>
  505. <dd><p>Unsigned 3 bit integer (in the range 0 to 7)
  506. </p>
  507. </dd>
  508. <dt><code>P<var>n</var></code></dt>
  509. <dd><p>Constant <var>n</var>, where <var>n</var> is a single-digit constant in the range 0 to 4.
  510. </p>
  511. </dd>
  512. <dt><code>PA</code></dt>
  513. <dd><p>An integer equal to one of the MACFLAG_XXX constants that is suitable for
  514. use with either accumulator.
  515. </p>
  516. </dd>
  517. <dt><code>PB</code></dt>
  518. <dd><p>An integer equal to one of the MACFLAG_XXX constants that is suitable for
  519. use only with accumulator A1.
  520. </p>
  521. </dd>
  522. <dt><code>M1</code></dt>
  523. <dd><p>Constant 255.
  524. </p>
  525. </dd>
  526. <dt><code>M2</code></dt>
  527. <dd><p>Constant 65535.
  528. </p>
  529. </dd>
  530. <dt><code>J</code></dt>
  531. <dd><p>An integer constant with exactly a single bit set.
  532. </p>
  533. </dd>
  534. <dt><code>L</code></dt>
  535. <dd><p>An integer constant with all bits set except exactly one.
  536. </p>
  537. </dd>
  538. <dt><code>H</code></dt>
  539. <dt><code>Q</code></dt>
  540. <dd><p>Any SYMBOL_REF.
  541. </p></dd>
  542. </dl>
  543. </dd>
  544. <dt><em>CR16 Architecture&mdash;<samp>config/cr16/cr16.h</samp></em></dt>
  545. <dd><dl compact="compact">
  546. <dt><code>b</code></dt>
  547. <dd><p>Registers from r0 to r14 (registers without stack pointer)
  548. </p>
  549. </dd>
  550. <dt><code>t</code></dt>
  551. <dd><p>Register from r0 to r11 (all 16-bit registers)
  552. </p>
  553. </dd>
  554. <dt><code>p</code></dt>
  555. <dd><p>Register from r12 to r15 (all 32-bit registers)
  556. </p>
  557. </dd>
  558. <dt><code>I</code></dt>
  559. <dd><p>Signed constant that fits in 4 bits
  560. </p>
  561. </dd>
  562. <dt><code>J</code></dt>
  563. <dd><p>Signed constant that fits in 5 bits
  564. </p>
  565. </dd>
  566. <dt><code>K</code></dt>
  567. <dd><p>Signed constant that fits in 6 bits
  568. </p>
  569. </dd>
  570. <dt><code>L</code></dt>
  571. <dd><p>Unsigned constant that fits in 4 bits
  572. </p>
  573. </dd>
  574. <dt><code>M</code></dt>
  575. <dd><p>Signed constant that fits in 32 bits
  576. </p>
  577. </dd>
  578. <dt><code>N</code></dt>
  579. <dd><p>Check for 64 bits wide constants for add/sub instructions
  580. </p>
  581. </dd>
  582. <dt><code>G</code></dt>
  583. <dd><p>Floating point constant that is legal for store immediate
  584. </p></dd>
  585. </dl>
  586. </dd>
  587. <dt><em>Epiphany&mdash;<samp>config/epiphany/constraints.md</samp></em></dt>
  588. <dd><dl compact="compact">
  589. <dt><code>U16</code></dt>
  590. <dd><p>An unsigned 16-bit constant.
  591. </p>
  592. </dd>
  593. <dt><code>K</code></dt>
  594. <dd><p>An unsigned 5-bit constant.
  595. </p>
  596. </dd>
  597. <dt><code>L</code></dt>
  598. <dd><p>A signed 11-bit constant.
  599. </p>
  600. </dd>
  601. <dt><code>Cm1</code></dt>
  602. <dd><p>A signed 11-bit constant added to -1.
  603. Can only match when the <samp>-m1reg-<var>reg</var></samp> option is active.
  604. </p>
  605. </dd>
  606. <dt><code>Cl1</code></dt>
  607. <dd><p>Left-shift of -1, i.e., a bit mask with a block of leading ones, the rest
  608. being a block of trailing zeroes.
  609. Can only match when the <samp>-m1reg-<var>reg</var></samp> option is active.
  610. </p>
  611. </dd>
  612. <dt><code>Cr1</code></dt>
  613. <dd><p>Right-shift of -1, i.e., a bit mask with a trailing block of ones, the
  614. rest being zeroes. Or to put it another way, one less than a power of two.
  615. Can only match when the <samp>-m1reg-<var>reg</var></samp> option is active.
  616. </p>
  617. </dd>
  618. <dt><code>Cal</code></dt>
  619. <dd><p>Constant for arithmetic/logical operations.
  620. This is like <code>i</code>, except that for position independent code,
  621. no symbols / expressions needing relocations are allowed.
  622. </p>
  623. </dd>
  624. <dt><code>Csy</code></dt>
  625. <dd><p>Symbolic constant for call/jump instruction.
  626. </p>
  627. </dd>
  628. <dt><code>Rcs</code></dt>
  629. <dd><p>The register class usable in short insns. This is a register class
  630. constraint, and can thus drive register allocation.
  631. This constraint won&rsquo;t match unless <samp>-mprefer-short-insn-regs</samp> is
  632. in effect.
  633. </p>
  634. </dd>
  635. <dt><code>Rsc</code></dt>
  636. <dd><p>The the register class of registers that can be used to hold a
  637. sibcall call address. I.e., a caller-saved register.
  638. </p>
  639. </dd>
  640. <dt><code>Rct</code></dt>
  641. <dd><p>Core control register class.
  642. </p>
  643. </dd>
  644. <dt><code>Rgs</code></dt>
  645. <dd><p>The register group usable in short insns.
  646. This constraint does not use a register class, so that it only
  647. passively matches suitable registers, and doesn&rsquo;t drive register allocation.
  648. </p>
  649. </dd>
  650. <dt><code>Rra</code></dt>
  651. <dd><p>Matches the return address if it can be replaced with the link register.
  652. </p>
  653. </dd>
  654. <dt><code>Rcc</code></dt>
  655. <dd><p>Matches the integer condition code register.
  656. </p>
  657. </dd>
  658. <dt><code>Sra</code></dt>
  659. <dd><p>Matches the return address if it is in a stack slot.
  660. </p>
  661. </dd>
  662. <dt><code>Cfm</code></dt>
  663. <dd><p>Matches control register values to switch fp mode, which are encapsulated in
  664. <code>UNSPEC_FP_MODE</code>.
  665. </p></dd>
  666. </dl>
  667. </dd>
  668. <dt><em>FRV&mdash;<samp>config/frv/frv.h</samp></em></dt>
  669. <dd><dl compact="compact">
  670. <dt><code>a</code></dt>
  671. <dd><p>Register in the class <code>ACC_REGS</code> (<code>acc0</code> to <code>acc7</code>).
  672. </p>
  673. </dd>
  674. <dt><code>b</code></dt>
  675. <dd><p>Register in the class <code>EVEN_ACC_REGS</code> (<code>acc0</code> to <code>acc7</code>).
  676. </p>
  677. </dd>
  678. <dt><code>c</code></dt>
  679. <dd><p>Register in the class <code>CC_REGS</code> (<code>fcc0</code> to <code>fcc3</code> and
  680. <code>icc0</code> to <code>icc3</code>).
  681. </p>
  682. </dd>
  683. <dt><code>d</code></dt>
  684. <dd><p>Register in the class <code>GPR_REGS</code> (<code>gr0</code> to <code>gr63</code>).
  685. </p>
  686. </dd>
  687. <dt><code>e</code></dt>
  688. <dd><p>Register in the class <code>EVEN_REGS</code> (<code>gr0</code> to <code>gr63</code>).
  689. Odd registers are excluded not in the class but through the use of a machine
  690. mode larger than 4 bytes.
  691. </p>
  692. </dd>
  693. <dt><code>f</code></dt>
  694. <dd><p>Register in the class <code>FPR_REGS</code> (<code>fr0</code> to <code>fr63</code>).
  695. </p>
  696. </dd>
  697. <dt><code>h</code></dt>
  698. <dd><p>Register in the class <code>FEVEN_REGS</code> (<code>fr0</code> to <code>fr63</code>).
  699. Odd registers are excluded not in the class but through the use of a machine
  700. mode larger than 4 bytes.
  701. </p>
  702. </dd>
  703. <dt><code>l</code></dt>
  704. <dd><p>Register in the class <code>LR_REG</code> (the <code>lr</code> register).
  705. </p>
  706. </dd>
  707. <dt><code>q</code></dt>
  708. <dd><p>Register in the class <code>QUAD_REGS</code> (<code>gr2</code> to <code>gr63</code>).
  709. Register numbers not divisible by 4 are excluded not in the class but through
  710. the use of a machine mode larger than 8 bytes.
  711. </p>
  712. </dd>
  713. <dt><code>t</code></dt>
  714. <dd><p>Register in the class <code>ICC_REGS</code> (<code>icc0</code> to <code>icc3</code>).
  715. </p>
  716. </dd>
  717. <dt><code>u</code></dt>
  718. <dd><p>Register in the class <code>FCC_REGS</code> (<code>fcc0</code> to <code>fcc3</code>).
  719. </p>
  720. </dd>
  721. <dt><code>v</code></dt>
  722. <dd><p>Register in the class <code>ICR_REGS</code> (<code>cc4</code> to <code>cc7</code>).
  723. </p>
  724. </dd>
  725. <dt><code>w</code></dt>
  726. <dd><p>Register in the class <code>FCR_REGS</code> (<code>cc0</code> to <code>cc3</code>).
  727. </p>
  728. </dd>
  729. <dt><code>x</code></dt>
  730. <dd><p>Register in the class <code>QUAD_FPR_REGS</code> (<code>fr0</code> to <code>fr63</code>).
  731. Register numbers not divisible by 4 are excluded not in the class but through
  732. the use of a machine mode larger than 8 bytes.
  733. </p>
  734. </dd>
  735. <dt><code>z</code></dt>
  736. <dd><p>Register in the class <code>SPR_REGS</code> (<code>lcr</code> and <code>lr</code>).
  737. </p>
  738. </dd>
  739. <dt><code>A</code></dt>
  740. <dd><p>Register in the class <code>QUAD_ACC_REGS</code> (<code>acc0</code> to <code>acc7</code>).
  741. </p>
  742. </dd>
  743. <dt><code>B</code></dt>
  744. <dd><p>Register in the class <code>ACCG_REGS</code> (<code>accg0</code> to <code>accg7</code>).
  745. </p>
  746. </dd>
  747. <dt><code>C</code></dt>
  748. <dd><p>Register in the class <code>CR_REGS</code> (<code>cc0</code> to <code>cc7</code>).
  749. </p>
  750. </dd>
  751. <dt><code>G</code></dt>
  752. <dd><p>Floating point constant zero
  753. </p>
  754. </dd>
  755. <dt><code>I</code></dt>
  756. <dd><p>6-bit signed integer constant
  757. </p>
  758. </dd>
  759. <dt><code>J</code></dt>
  760. <dd><p>10-bit signed integer constant
  761. </p>
  762. </dd>
  763. <dt><code>L</code></dt>
  764. <dd><p>16-bit signed integer constant
  765. </p>
  766. </dd>
  767. <dt><code>M</code></dt>
  768. <dd><p>16-bit unsigned integer constant
  769. </p>
  770. </dd>
  771. <dt><code>N</code></dt>
  772. <dd><p>12-bit signed integer constant that is negative&mdash;i.e. in the
  773. range of -2048 to -1
  774. </p>
  775. </dd>
  776. <dt><code>O</code></dt>
  777. <dd><p>Constant zero
  778. </p>
  779. </dd>
  780. <dt><code>P</code></dt>
  781. <dd><p>12-bit signed integer constant that is greater than zero&mdash;i.e. in the
  782. range of 1 to 2047.
  783. </p>
  784. </dd>
  785. </dl>
  786. </dd>
  787. <dt><em>FT32&mdash;<samp>config/ft32/constraints.md</samp></em></dt>
  788. <dd><dl compact="compact">
  789. <dt><code>A</code></dt>
  790. <dd><p>An absolute address
  791. </p>
  792. </dd>
  793. <dt><code>B</code></dt>
  794. <dd><p>An offset address
  795. </p>
  796. </dd>
  797. <dt><code>W</code></dt>
  798. <dd><p>A register indirect memory operand
  799. </p>
  800. </dd>
  801. <dt><code>e</code></dt>
  802. <dd><p>An offset address.
  803. </p>
  804. </dd>
  805. <dt><code>f</code></dt>
  806. <dd><p>An offset address.
  807. </p>
  808. </dd>
  809. <dt><code>O</code></dt>
  810. <dd><p>The constant zero or one
  811. </p>
  812. </dd>
  813. <dt><code>I</code></dt>
  814. <dd><p>A 16-bit signed constant (-32768 &hellip; 32767)
  815. </p>
  816. </dd>
  817. <dt><code>w</code></dt>
  818. <dd><p>A bitfield mask suitable for bext or bins
  819. </p>
  820. </dd>
  821. <dt><code>x</code></dt>
  822. <dd><p>An inverted bitfield mask suitable for bext or bins
  823. </p>
  824. </dd>
  825. <dt><code>L</code></dt>
  826. <dd><p>A 16-bit unsigned constant, multiple of 4 (0 &hellip; 65532)
  827. </p>
  828. </dd>
  829. <dt><code>S</code></dt>
  830. <dd><p>A 20-bit signed constant (-524288 &hellip; 524287)
  831. </p>
  832. </dd>
  833. <dt><code>b</code></dt>
  834. <dd><p>A constant for a bitfield width (1 &hellip; 16)
  835. </p>
  836. </dd>
  837. <dt><code>KA</code></dt>
  838. <dd><p>A 10-bit signed constant (-512 &hellip; 511)
  839. </p>
  840. </dd>
  841. </dl>
  842. </dd>
  843. <dt><em>Hewlett-Packard PA-RISC&mdash;<samp>config/pa/pa.h</samp></em></dt>
  844. <dd><dl compact="compact">
  845. <dt><code>a</code></dt>
  846. <dd><p>General register 1
  847. </p>
  848. </dd>
  849. <dt><code>f</code></dt>
  850. <dd><p>Floating point register
  851. </p>
  852. </dd>
  853. <dt><code>q</code></dt>
  854. <dd><p>Shift amount register
  855. </p>
  856. </dd>
  857. <dt><code>x</code></dt>
  858. <dd><p>Floating point register (deprecated)
  859. </p>
  860. </dd>
  861. <dt><code>y</code></dt>
  862. <dd><p>Upper floating point register (32-bit), floating point register (64-bit)
  863. </p>
  864. </dd>
  865. <dt><code>Z</code></dt>
  866. <dd><p>Any register
  867. </p>
  868. </dd>
  869. <dt><code>I</code></dt>
  870. <dd><p>Signed 11-bit integer constant
  871. </p>
  872. </dd>
  873. <dt><code>J</code></dt>
  874. <dd><p>Signed 14-bit integer constant
  875. </p>
  876. </dd>
  877. <dt><code>K</code></dt>
  878. <dd><p>Integer constant that can be deposited with a <code>zdepi</code> instruction
  879. </p>
  880. </dd>
  881. <dt><code>L</code></dt>
  882. <dd><p>Signed 5-bit integer constant
  883. </p>
  884. </dd>
  885. <dt><code>M</code></dt>
  886. <dd><p>Integer constant 0
  887. </p>
  888. </dd>
  889. <dt><code>N</code></dt>
  890. <dd><p>Integer constant that can be loaded with a <code>ldil</code> instruction
  891. </p>
  892. </dd>
  893. <dt><code>O</code></dt>
  894. <dd><p>Integer constant whose value plus one is a power of 2
  895. </p>
  896. </dd>
  897. <dt><code>P</code></dt>
  898. <dd><p>Integer constant that can be used for <code>and</code> operations in <code>depi</code>
  899. and <code>extru</code> instructions
  900. </p>
  901. </dd>
  902. <dt><code>S</code></dt>
  903. <dd><p>Integer constant 31
  904. </p>
  905. </dd>
  906. <dt><code>U</code></dt>
  907. <dd><p>Integer constant 63
  908. </p>
  909. </dd>
  910. <dt><code>G</code></dt>
  911. <dd><p>Floating-point constant 0.0
  912. </p>
  913. </dd>
  914. <dt><code>A</code></dt>
  915. <dd><p>A <code>lo_sum</code> data-linkage-table memory operand
  916. </p>
  917. </dd>
  918. <dt><code>Q</code></dt>
  919. <dd><p>A memory operand that can be used as the destination operand of an
  920. integer store instruction
  921. </p>
  922. </dd>
  923. <dt><code>R</code></dt>
  924. <dd><p>A scaled or unscaled indexed memory operand
  925. </p>
  926. </dd>
  927. <dt><code>T</code></dt>
  928. <dd><p>A memory operand for floating-point loads and stores
  929. </p>
  930. </dd>
  931. <dt><code>W</code></dt>
  932. <dd><p>A register indirect memory operand
  933. </p></dd>
  934. </dl>
  935. </dd>
  936. <dt><em>Intel IA-64&mdash;<samp>config/ia64/ia64.h</samp></em></dt>
  937. <dd><dl compact="compact">
  938. <dt><code>a</code></dt>
  939. <dd><p>General register <code>r0</code> to <code>r3</code> for <code>addl</code> instruction
  940. </p>
  941. </dd>
  942. <dt><code>b</code></dt>
  943. <dd><p>Branch register
  944. </p>
  945. </dd>
  946. <dt><code>c</code></dt>
  947. <dd><p>Predicate register (&lsquo;<samp>c</samp>&rsquo; as in &ldquo;conditional&rdquo;)
  948. </p>
  949. </dd>
  950. <dt><code>d</code></dt>
  951. <dd><p>Application register residing in M-unit
  952. </p>
  953. </dd>
  954. <dt><code>e</code></dt>
  955. <dd><p>Application register residing in I-unit
  956. </p>
  957. </dd>
  958. <dt><code>f</code></dt>
  959. <dd><p>Floating-point register
  960. </p>
  961. </dd>
  962. <dt><code>m</code></dt>
  963. <dd><p>Memory operand. If used together with &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo;,
  964. the operand can have postincrement and postdecrement which
  965. require printing with &lsquo;<samp>%Pn</samp>&rsquo; on IA-64.
  966. </p>
  967. </dd>
  968. <dt><code>G</code></dt>
  969. <dd><p>Floating-point constant 0.0 or 1.0
  970. </p>
  971. </dd>
  972. <dt><code>I</code></dt>
  973. <dd><p>14-bit signed integer constant
  974. </p>
  975. </dd>
  976. <dt><code>J</code></dt>
  977. <dd><p>22-bit signed integer constant
  978. </p>
  979. </dd>
  980. <dt><code>K</code></dt>
  981. <dd><p>8-bit signed integer constant for logical instructions
  982. </p>
  983. </dd>
  984. <dt><code>L</code></dt>
  985. <dd><p>8-bit adjusted signed integer constant for compare pseudo-ops
  986. </p>
  987. </dd>
  988. <dt><code>M</code></dt>
  989. <dd><p>6-bit unsigned integer constant for shift counts
  990. </p>
  991. </dd>
  992. <dt><code>N</code></dt>
  993. <dd><p>9-bit signed integer constant for load and store postincrements
  994. </p>
  995. </dd>
  996. <dt><code>O</code></dt>
  997. <dd><p>The constant zero
  998. </p>
  999. </dd>
  1000. <dt><code>P</code></dt>
  1001. <dd><p>0 or -1 for <code>dep</code> instruction
  1002. </p>
  1003. </dd>
  1004. <dt><code>Q</code></dt>
  1005. <dd><p>Non-volatile memory for floating-point loads and stores
  1006. </p>
  1007. </dd>
  1008. <dt><code>R</code></dt>
  1009. <dd><p>Integer constant in the range 1 to 4 for <code>shladd</code> instruction
  1010. </p>
  1011. </dd>
  1012. <dt><code>S</code></dt>
  1013. <dd><p>Memory operand except postincrement and postdecrement. This is
  1014. now roughly the same as &lsquo;<samp>m</samp>&rsquo; when not used together with &lsquo;<samp>&lt;</samp>&rsquo;
  1015. or &lsquo;<samp>&gt;</samp>&rsquo;.
  1016. </p></dd>
  1017. </dl>
  1018. </dd>
  1019. <dt><em>M32C&mdash;<samp>config/m32c/m32c.c</samp></em></dt>
  1020. <dd><dl compact="compact">
  1021. <dt><code>Rsp</code></dt>
  1022. <dt><code>Rfb</code></dt>
  1023. <dt><code>Rsb</code></dt>
  1024. <dd><p>&lsquo;<samp>$sp</samp>&rsquo;, &lsquo;<samp>$fb</samp>&rsquo;, &lsquo;<samp>$sb</samp>&rsquo;.
  1025. </p>
  1026. </dd>
  1027. <dt><code>Rcr</code></dt>
  1028. <dd><p>Any control register, when they&rsquo;re 16 bits wide (nothing if control
  1029. registers are 24 bits wide)
  1030. </p>
  1031. </dd>
  1032. <dt><code>Rcl</code></dt>
  1033. <dd><p>Any control register, when they&rsquo;re 24 bits wide.
  1034. </p>
  1035. </dd>
  1036. <dt><code>R0w</code></dt>
  1037. <dt><code>R1w</code></dt>
  1038. <dt><code>R2w</code></dt>
  1039. <dt><code>R3w</code></dt>
  1040. <dd><p>$r0, $r1, $r2, $r3.
  1041. </p>
  1042. </dd>
  1043. <dt><code>R02</code></dt>
  1044. <dd><p>$r0 or $r2, or $r2r0 for 32 bit values.
  1045. </p>
  1046. </dd>
  1047. <dt><code>R13</code></dt>
  1048. <dd><p>$r1 or $r3, or $r3r1 for 32 bit values.
  1049. </p>
  1050. </dd>
  1051. <dt><code>Rdi</code></dt>
  1052. <dd><p>A register that can hold a 64 bit value.
  1053. </p>
  1054. </dd>
  1055. <dt><code>Rhl</code></dt>
  1056. <dd><p>$r0 or $r1 (registers with addressable high/low bytes)
  1057. </p>
  1058. </dd>
  1059. <dt><code>R23</code></dt>
  1060. <dd><p>$r2 or $r3
  1061. </p>
  1062. </dd>
  1063. <dt><code>Raa</code></dt>
  1064. <dd><p>Address registers
  1065. </p>
  1066. </dd>
  1067. <dt><code>Raw</code></dt>
  1068. <dd><p>Address registers when they&rsquo;re 16 bits wide.
  1069. </p>
  1070. </dd>
  1071. <dt><code>Ral</code></dt>
  1072. <dd><p>Address registers when they&rsquo;re 24 bits wide.
  1073. </p>
  1074. </dd>
  1075. <dt><code>Rqi</code></dt>
  1076. <dd><p>Registers that can hold QI values.
  1077. </p>
  1078. </dd>
  1079. <dt><code>Rad</code></dt>
  1080. <dd><p>Registers that can be used with displacements ($a0, $a1, $sb).
  1081. </p>
  1082. </dd>
  1083. <dt><code>Rsi</code></dt>
  1084. <dd><p>Registers that can hold 32 bit values.
  1085. </p>
  1086. </dd>
  1087. <dt><code>Rhi</code></dt>
  1088. <dd><p>Registers that can hold 16 bit values.
  1089. </p>
  1090. </dd>
  1091. <dt><code>Rhc</code></dt>
  1092. <dd><p>Registers chat can hold 16 bit values, including all control
  1093. registers.
  1094. </p>
  1095. </dd>
  1096. <dt><code>Rra</code></dt>
  1097. <dd><p>$r0 through R1, plus $a0 and $a1.
  1098. </p>
  1099. </dd>
  1100. <dt><code>Rfl</code></dt>
  1101. <dd><p>The flags register.
  1102. </p>
  1103. </dd>
  1104. <dt><code>Rmm</code></dt>
  1105. <dd><p>The memory-based pseudo-registers $mem0 through $mem15.
  1106. </p>
  1107. </dd>
  1108. <dt><code>Rpi</code></dt>
  1109. <dd><p>Registers that can hold pointers (16 bit registers for r8c, m16c; 24
  1110. bit registers for m32cm, m32c).
  1111. </p>
  1112. </dd>
  1113. <dt><code>Rpa</code></dt>
  1114. <dd><p>Matches multiple registers in a PARALLEL to form a larger register.
  1115. Used to match function return values.
  1116. </p>
  1117. </dd>
  1118. <dt><code>Is3</code></dt>
  1119. <dd><p>-8 &hellip; 7
  1120. </p>
  1121. </dd>
  1122. <dt><code>IS1</code></dt>
  1123. <dd><p>-128 &hellip; 127
  1124. </p>
  1125. </dd>
  1126. <dt><code>IS2</code></dt>
  1127. <dd><p>-32768 &hellip; 32767
  1128. </p>
  1129. </dd>
  1130. <dt><code>IU2</code></dt>
  1131. <dd><p>0 &hellip; 65535
  1132. </p>
  1133. </dd>
  1134. <dt><code>In4</code></dt>
  1135. <dd><p>-8 &hellip; -1 or 1 &hellip; 8
  1136. </p>
  1137. </dd>
  1138. <dt><code>In5</code></dt>
  1139. <dd><p>-16 &hellip; -1 or 1 &hellip; 16
  1140. </p>
  1141. </dd>
  1142. <dt><code>In6</code></dt>
  1143. <dd><p>-32 &hellip; -1 or 1 &hellip; 32
  1144. </p>
  1145. </dd>
  1146. <dt><code>IM2</code></dt>
  1147. <dd><p>-65536 &hellip; -1
  1148. </p>
  1149. </dd>
  1150. <dt><code>Ilb</code></dt>
  1151. <dd><p>An 8 bit value with exactly one bit set.
  1152. </p>
  1153. </dd>
  1154. <dt><code>Ilw</code></dt>
  1155. <dd><p>A 16 bit value with exactly one bit set.
  1156. </p>
  1157. </dd>
  1158. <dt><code>Sd</code></dt>
  1159. <dd><p>The common src/dest memory addressing modes.
  1160. </p>
  1161. </dd>
  1162. <dt><code>Sa</code></dt>
  1163. <dd><p>Memory addressed using $a0 or $a1.
  1164. </p>
  1165. </dd>
  1166. <dt><code>Si</code></dt>
  1167. <dd><p>Memory addressed with immediate addresses.
  1168. </p>
  1169. </dd>
  1170. <dt><code>Ss</code></dt>
  1171. <dd><p>Memory addressed using the stack pointer ($sp).
  1172. </p>
  1173. </dd>
  1174. <dt><code>Sf</code></dt>
  1175. <dd><p>Memory addressed using the frame base register ($fb).
  1176. </p>
  1177. </dd>
  1178. <dt><code>Ss</code></dt>
  1179. <dd><p>Memory addressed using the small base register ($sb).
  1180. </p>
  1181. </dd>
  1182. <dt><code>S1</code></dt>
  1183. <dd><p>$r1h
  1184. </p></dd>
  1185. </dl>
  1186. </dd>
  1187. <dt><em>MicroBlaze&mdash;<samp>config/microblaze/constraints.md</samp></em></dt>
  1188. <dd><dl compact="compact">
  1189. <dt><code>d</code></dt>
  1190. <dd><p>A general register (<code>r0</code> to <code>r31</code>).
  1191. </p>
  1192. </dd>
  1193. <dt><code>z</code></dt>
  1194. <dd><p>A status register (<code>rmsr</code>, <code>$fcc1</code> to <code>$fcc7</code>).
  1195. </p>
  1196. </dd>
  1197. </dl>
  1198. </dd>
  1199. <dt><em>MIPS&mdash;<samp>config/mips/constraints.md</samp></em></dt>
  1200. <dd><dl compact="compact">
  1201. <dt><code>d</code></dt>
  1202. <dd><p>A general-purpose register. This is equivalent to <code>r</code> unless
  1203. generating MIPS16 code, in which case the MIPS16 register set is used.
  1204. </p>
  1205. </dd>
  1206. <dt><code>f</code></dt>
  1207. <dd><p>A floating-point register (if available).
  1208. </p>
  1209. </dd>
  1210. <dt><code>h</code></dt>
  1211. <dd><p>Formerly the <code>hi</code> register. This constraint is no longer supported.
  1212. </p>
  1213. </dd>
  1214. <dt><code>l</code></dt>
  1215. <dd><p>The <code>lo</code> register. Use this register to store values that are
  1216. no bigger than a word.
  1217. </p>
  1218. </dd>
  1219. <dt><code>x</code></dt>
  1220. <dd><p>The concatenated <code>hi</code> and <code>lo</code> registers. Use this register
  1221. to store doubleword values.
  1222. </p>
  1223. </dd>
  1224. <dt><code>c</code></dt>
  1225. <dd><p>A register suitable for use in an indirect jump. This will always be
  1226. <code>$25</code> for <samp>-mabicalls</samp>.
  1227. </p>
  1228. </dd>
  1229. <dt><code>v</code></dt>
  1230. <dd><p>Register <code>$3</code>. Do not use this constraint in new code;
  1231. it is retained only for compatibility with glibc.
  1232. </p>
  1233. </dd>
  1234. <dt><code>y</code></dt>
  1235. <dd><p>Equivalent to <code>r</code>; retained for backwards compatibility.
  1236. </p>
  1237. </dd>
  1238. <dt><code>z</code></dt>
  1239. <dd><p>A floating-point condition code register.
  1240. </p>
  1241. </dd>
  1242. <dt><code>I</code></dt>
  1243. <dd><p>A signed 16-bit constant (for arithmetic instructions).
  1244. </p>
  1245. </dd>
  1246. <dt><code>J</code></dt>
  1247. <dd><p>Integer zero.
  1248. </p>
  1249. </dd>
  1250. <dt><code>K</code></dt>
  1251. <dd><p>An unsigned 16-bit constant (for logic instructions).
  1252. </p>
  1253. </dd>
  1254. <dt><code>L</code></dt>
  1255. <dd><p>A signed 32-bit constant in which the lower 16 bits are zero.
  1256. Such constants can be loaded using <code>lui</code>.
  1257. </p>
  1258. </dd>
  1259. <dt><code>M</code></dt>
  1260. <dd><p>A constant that cannot be loaded using <code>lui</code>, <code>addiu</code>
  1261. or <code>ori</code>.
  1262. </p>
  1263. </dd>
  1264. <dt><code>N</code></dt>
  1265. <dd><p>A constant in the range -65535 to -1 (inclusive).
  1266. </p>
  1267. </dd>
  1268. <dt><code>O</code></dt>
  1269. <dd><p>A signed 15-bit constant.
  1270. </p>
  1271. </dd>
  1272. <dt><code>P</code></dt>
  1273. <dd><p>A constant in the range 1 to 65535 (inclusive).
  1274. </p>
  1275. </dd>
  1276. <dt><code>G</code></dt>
  1277. <dd><p>Floating-point zero.
  1278. </p>
  1279. </dd>
  1280. <dt><code>R</code></dt>
  1281. <dd><p>An address that can be used in a non-macro load or store.
  1282. </p>
  1283. </dd>
  1284. <dt><code>ZC</code></dt>
  1285. <dd><p>A memory operand whose address is formed by a base register and offset
  1286. that is suitable for use in instructions with the same addressing mode
  1287. as <code>ll</code> and <code>sc</code>.
  1288. </p>
  1289. </dd>
  1290. <dt><code>ZD</code></dt>
  1291. <dd><p>An address suitable for a <code>prefetch</code> instruction, or for any other
  1292. instruction with the same addressing mode as <code>prefetch</code>.
  1293. </p></dd>
  1294. </dl>
  1295. </dd>
  1296. <dt><em>Motorola 680x0&mdash;<samp>config/m68k/constraints.md</samp></em></dt>
  1297. <dd><dl compact="compact">
  1298. <dt><code>a</code></dt>
  1299. <dd><p>Address register
  1300. </p>
  1301. </dd>
  1302. <dt><code>d</code></dt>
  1303. <dd><p>Data register
  1304. </p>
  1305. </dd>
  1306. <dt><code>f</code></dt>
  1307. <dd><p>68881 floating-point register, if available
  1308. </p>
  1309. </dd>
  1310. <dt><code>I</code></dt>
  1311. <dd><p>Integer in the range 1 to 8
  1312. </p>
  1313. </dd>
  1314. <dt><code>J</code></dt>
  1315. <dd><p>16-bit signed number
  1316. </p>
  1317. </dd>
  1318. <dt><code>K</code></dt>
  1319. <dd><p>Signed number whose magnitude is greater than 0x80
  1320. </p>
  1321. </dd>
  1322. <dt><code>L</code></dt>
  1323. <dd><p>Integer in the range -8 to -1
  1324. </p>
  1325. </dd>
  1326. <dt><code>M</code></dt>
  1327. <dd><p>Signed number whose magnitude is greater than 0x100
  1328. </p>
  1329. </dd>
  1330. <dt><code>N</code></dt>
  1331. <dd><p>Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  1332. </p>
  1333. </dd>
  1334. <dt><code>O</code></dt>
  1335. <dd><p>16 (for rotate using swap)
  1336. </p>
  1337. </dd>
  1338. <dt><code>P</code></dt>
  1339. <dd><p>Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  1340. </p>
  1341. </dd>
  1342. <dt><code>R</code></dt>
  1343. <dd><p>Numbers that mov3q can handle
  1344. </p>
  1345. </dd>
  1346. <dt><code>G</code></dt>
  1347. <dd><p>Floating point constant that is not a 68881 constant
  1348. </p>
  1349. </dd>
  1350. <dt><code>S</code></dt>
  1351. <dd><p>Operands that satisfy &rsquo;m&rsquo; when -mpcrel is in effect
  1352. </p>
  1353. </dd>
  1354. <dt><code>T</code></dt>
  1355. <dd><p>Operands that satisfy &rsquo;s&rsquo; when -mpcrel is not in effect
  1356. </p>
  1357. </dd>
  1358. <dt><code>Q</code></dt>
  1359. <dd><p>Address register indirect addressing mode
  1360. </p>
  1361. </dd>
  1362. <dt><code>U</code></dt>
  1363. <dd><p>Register offset addressing
  1364. </p>
  1365. </dd>
  1366. <dt><code>W</code></dt>
  1367. <dd><p>const_call_operand
  1368. </p>
  1369. </dd>
  1370. <dt><code>Cs</code></dt>
  1371. <dd><p>symbol_ref or const
  1372. </p>
  1373. </dd>
  1374. <dt><code>Ci</code></dt>
  1375. <dd><p>const_int
  1376. </p>
  1377. </dd>
  1378. <dt><code>C0</code></dt>
  1379. <dd><p>const_int 0
  1380. </p>
  1381. </dd>
  1382. <dt><code>Cj</code></dt>
  1383. <dd><p>Range of signed numbers that don&rsquo;t fit in 16 bits
  1384. </p>
  1385. </dd>
  1386. <dt><code>Cmvq</code></dt>
  1387. <dd><p>Integers valid for mvq
  1388. </p>
  1389. </dd>
  1390. <dt><code>Capsw</code></dt>
  1391. <dd><p>Integers valid for a moveq followed by a swap
  1392. </p>
  1393. </dd>
  1394. <dt><code>Cmvz</code></dt>
  1395. <dd><p>Integers valid for mvz
  1396. </p>
  1397. </dd>
  1398. <dt><code>Cmvs</code></dt>
  1399. <dd><p>Integers valid for mvs
  1400. </p>
  1401. </dd>
  1402. <dt><code>Ap</code></dt>
  1403. <dd><p>push_operand
  1404. </p>
  1405. </dd>
  1406. <dt><code>Ac</code></dt>
  1407. <dd><p>Non-register operands allowed in clr
  1408. </p>
  1409. </dd>
  1410. </dl>
  1411. </dd>
  1412. <dt><em>Moxie&mdash;<samp>config/moxie/constraints.md</samp></em></dt>
  1413. <dd><dl compact="compact">
  1414. <dt><code>A</code></dt>
  1415. <dd><p>An absolute address
  1416. </p>
  1417. </dd>
  1418. <dt><code>B</code></dt>
  1419. <dd><p>An offset address
  1420. </p>
  1421. </dd>
  1422. <dt><code>W</code></dt>
  1423. <dd><p>A register indirect memory operand
  1424. </p>
  1425. </dd>
  1426. <dt><code>I</code></dt>
  1427. <dd><p>A constant in the range of 0 to 255.
  1428. </p>
  1429. </dd>
  1430. <dt><code>N</code></dt>
  1431. <dd><p>A constant in the range of 0 to -255.
  1432. </p>
  1433. </dd>
  1434. </dl>
  1435. </dd>
  1436. <dt><em>MSP430&ndash;<samp>config/msp430/constraints.md</samp></em></dt>
  1437. <dd><dl compact="compact">
  1438. <dt><code>R12</code></dt>
  1439. <dd><p>Register R12.
  1440. </p>
  1441. </dd>
  1442. <dt><code>R13</code></dt>
  1443. <dd><p>Register R13.
  1444. </p>
  1445. </dd>
  1446. <dt><code>K</code></dt>
  1447. <dd><p>Integer constant 1.
  1448. </p>
  1449. </dd>
  1450. <dt><code>L</code></dt>
  1451. <dd><p>Integer constant -1^20..1^19.
  1452. </p>
  1453. </dd>
  1454. <dt><code>M</code></dt>
  1455. <dd><p>Integer constant 1-4.
  1456. </p>
  1457. </dd>
  1458. <dt><code>Ya</code></dt>
  1459. <dd><p>Memory references which do not require an extended MOVX instruction.
  1460. </p>
  1461. </dd>
  1462. <dt><code>Yl</code></dt>
  1463. <dd><p>Memory reference, labels only.
  1464. </p>
  1465. </dd>
  1466. <dt><code>Ys</code></dt>
  1467. <dd><p>Memory reference, stack only.
  1468. </p>
  1469. </dd>
  1470. </dl>
  1471. </dd>
  1472. <dt><em>NDS32&mdash;<samp>config/nds32/constraints.md</samp></em></dt>
  1473. <dd><dl compact="compact">
  1474. <dt><code>w</code></dt>
  1475. <dd><p>LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  1476. </p></dd>
  1477. <dt><code>l</code></dt>
  1478. <dd><p>LOW register class $r0 to $r7.
  1479. </p></dd>
  1480. <dt><code>d</code></dt>
  1481. <dd><p>MIDDLE register class $r0 to $r11, $r16 to $r19.
  1482. </p></dd>
  1483. <dt><code>h</code></dt>
  1484. <dd><p>HIGH register class $r12 to $r14, $r20 to $r31.
  1485. </p></dd>
  1486. <dt><code>t</code></dt>
  1487. <dd><p>Temporary assist register $ta (i.e. $r15).
  1488. </p></dd>
  1489. <dt><code>k</code></dt>
  1490. <dd><p>Stack register $sp.
  1491. </p></dd>
  1492. <dt><code>Iu03</code></dt>
  1493. <dd><p>Unsigned immediate 3-bit value.
  1494. </p></dd>
  1495. <dt><code>In03</code></dt>
  1496. <dd><p>Negative immediate 3-bit value in the range of -7&ndash;0.
  1497. </p></dd>
  1498. <dt><code>Iu04</code></dt>
  1499. <dd><p>Unsigned immediate 4-bit value.
  1500. </p></dd>
  1501. <dt><code>Is05</code></dt>
  1502. <dd><p>Signed immediate 5-bit value.
  1503. </p></dd>
  1504. <dt><code>Iu05</code></dt>
  1505. <dd><p>Unsigned immediate 5-bit value.
  1506. </p></dd>
  1507. <dt><code>In05</code></dt>
  1508. <dd><p>Negative immediate 5-bit value in the range of -31&ndash;0.
  1509. </p></dd>
  1510. <dt><code>Ip05</code></dt>
  1511. <dd><p>Unsigned immediate 5-bit value for movpi45 instruction with range 16&ndash;47.
  1512. </p></dd>
  1513. <dt><code>Iu06</code></dt>
  1514. <dd><p>Unsigned immediate 6-bit value constraint for addri36.sp instruction.
  1515. </p></dd>
  1516. <dt><code>Iu08</code></dt>
  1517. <dd><p>Unsigned immediate 8-bit value.
  1518. </p></dd>
  1519. <dt><code>Iu09</code></dt>
  1520. <dd><p>Unsigned immediate 9-bit value.
  1521. </p></dd>
  1522. <dt><code>Is10</code></dt>
  1523. <dd><p>Signed immediate 10-bit value.
  1524. </p></dd>
  1525. <dt><code>Is11</code></dt>
  1526. <dd><p>Signed immediate 11-bit value.
  1527. </p></dd>
  1528. <dt><code>Is15</code></dt>
  1529. <dd><p>Signed immediate 15-bit value.
  1530. </p></dd>
  1531. <dt><code>Iu15</code></dt>
  1532. <dd><p>Unsigned immediate 15-bit value.
  1533. </p></dd>
  1534. <dt><code>Ic15</code></dt>
  1535. <dd><p>A constant which is not in the range of imm15u but ok for bclr instruction.
  1536. </p></dd>
  1537. <dt><code>Ie15</code></dt>
  1538. <dd><p>A constant which is not in the range of imm15u but ok for bset instruction.
  1539. </p></dd>
  1540. <dt><code>It15</code></dt>
  1541. <dd><p>A constant which is not in the range of imm15u but ok for btgl instruction.
  1542. </p></dd>
  1543. <dt><code>Ii15</code></dt>
  1544. <dd><p>A constant whose compliment value is in the range of imm15u
  1545. and ok for bitci instruction.
  1546. </p></dd>
  1547. <dt><code>Is16</code></dt>
  1548. <dd><p>Signed immediate 16-bit value.
  1549. </p></dd>
  1550. <dt><code>Is17</code></dt>
  1551. <dd><p>Signed immediate 17-bit value.
  1552. </p></dd>
  1553. <dt><code>Is19</code></dt>
  1554. <dd><p>Signed immediate 19-bit value.
  1555. </p></dd>
  1556. <dt><code>Is20</code></dt>
  1557. <dd><p>Signed immediate 20-bit value.
  1558. </p></dd>
  1559. <dt><code>Ihig</code></dt>
  1560. <dd><p>The immediate value that can be simply set high 20-bit.
  1561. </p></dd>
  1562. <dt><code>Izeb</code></dt>
  1563. <dd><p>The immediate value 0xff.
  1564. </p></dd>
  1565. <dt><code>Izeh</code></dt>
  1566. <dd><p>The immediate value 0xffff.
  1567. </p></dd>
  1568. <dt><code>Ixls</code></dt>
  1569. <dd><p>The immediate value 0x01.
  1570. </p></dd>
  1571. <dt><code>Ix11</code></dt>
  1572. <dd><p>The immediate value 0x7ff.
  1573. </p></dd>
  1574. <dt><code>Ibms</code></dt>
  1575. <dd><p>The immediate value with power of 2.
  1576. </p></dd>
  1577. <dt><code>Ifex</code></dt>
  1578. <dd><p>The immediate value with power of 2 minus 1.
  1579. </p></dd>
  1580. <dt><code>U33</code></dt>
  1581. <dd><p>Memory constraint for 333 format.
  1582. </p></dd>
  1583. <dt><code>U45</code></dt>
  1584. <dd><p>Memory constraint for 45 format.
  1585. </p></dd>
  1586. <dt><code>U37</code></dt>
  1587. <dd><p>Memory constraint for 37 format.
  1588. </p></dd>
  1589. </dl>
  1590. </dd>
  1591. <dt><em>Nios II family&mdash;<samp>config/nios2/constraints.md</samp></em></dt>
  1592. <dd><dl compact="compact">
  1593. <dt><code>I</code></dt>
  1594. <dd><p>Integer that is valid as an immediate operand in an
  1595. instruction taking a signed 16-bit number. Range
  1596. -32768 to 32767.
  1597. </p>
  1598. </dd>
  1599. <dt><code>J</code></dt>
  1600. <dd><p>Integer that is valid as an immediate operand in an
  1601. instruction taking an unsigned 16-bit number. Range
  1602. 0 to 65535.
  1603. </p>
  1604. </dd>
  1605. <dt><code>K</code></dt>
  1606. <dd><p>Integer that is valid as an immediate operand in an
  1607. instruction taking only the upper 16-bits of a
  1608. 32-bit number. Range 32-bit numbers with the lower
  1609. 16-bits being 0.
  1610. </p>
  1611. </dd>
  1612. <dt><code>L</code></dt>
  1613. <dd><p>Integer that is valid as an immediate operand for a
  1614. shift instruction. Range 0 to 31.
  1615. </p>
  1616. </dd>
  1617. <dt><code>M</code></dt>
  1618. <dd><p>Integer that is valid as an immediate operand for
  1619. only the value 0. Can be used in conjunction with
  1620. the format modifier <code>z</code> to use <code>r0</code>
  1621. instead of <code>0</code> in the assembly output.
  1622. </p>
  1623. </dd>
  1624. <dt><code>N</code></dt>
  1625. <dd><p>Integer that is valid as an immediate operand for
  1626. a custom instruction opcode. Range 0 to 255.
  1627. </p>
  1628. </dd>
  1629. <dt><code>P</code></dt>
  1630. <dd><p>An immediate operand for R2 andchi/andci instructions.
  1631. </p>
  1632. </dd>
  1633. <dt><code>S</code></dt>
  1634. <dd><p>Matches immediates which are addresses in the small
  1635. data section and therefore can be added to <code>gp</code>
  1636. as a 16-bit immediate to re-create their 32-bit value.
  1637. </p>
  1638. </dd>
  1639. <dt><code>U</code></dt>
  1640. <dd><p>Matches constants suitable as an operand for the rdprs and
  1641. cache instructions.
  1642. </p>
  1643. </dd>
  1644. <dt><code>v</code></dt>
  1645. <dd><p>A memory operand suitable for Nios II R2 load/store
  1646. exclusive instructions.
  1647. </p>
  1648. </dd>
  1649. <dt><code>w</code></dt>
  1650. <dd><p>A memory operand suitable for load/store IO and cache
  1651. instructions.
  1652. </p>
  1653. </dd>
  1654. </dl>
  1655. </dd>
  1656. <dt><em>PDP-11&mdash;<samp>config/pdp11/constraints.md</samp></em></dt>
  1657. <dd><dl compact="compact">
  1658. <dt><code>a</code></dt>
  1659. <dd><p>Floating point registers AC0 through AC3. These can be loaded from/to
  1660. memory with a single instruction.
  1661. </p>
  1662. </dd>
  1663. <dt><code>d</code></dt>
  1664. <dd><p>Odd numbered general registers (R1, R3, R5). These are used for
  1665. 16-bit multiply operations.
  1666. </p>
  1667. </dd>
  1668. <dt><code>f</code></dt>
  1669. <dd><p>Any of the floating point registers (AC0 through AC5).
  1670. </p>
  1671. </dd>
  1672. <dt><code>G</code></dt>
  1673. <dd><p>Floating point constant 0.
  1674. </p>
  1675. </dd>
  1676. <dt><code>I</code></dt>
  1677. <dd><p>An integer constant that fits in 16 bits.
  1678. </p>
  1679. </dd>
  1680. <dt><code>J</code></dt>
  1681. <dd><p>An integer constant whose low order 16 bits are zero.
  1682. </p>
  1683. </dd>
  1684. <dt><code>K</code></dt>
  1685. <dd><p>An integer constant that does not meet the constraints for codes
  1686. &lsquo;<samp>I</samp>&rsquo; or &lsquo;<samp>J</samp>&rsquo;.
  1687. </p>
  1688. </dd>
  1689. <dt><code>L</code></dt>
  1690. <dd><p>The integer constant 1.
  1691. </p>
  1692. </dd>
  1693. <dt><code>M</code></dt>
  1694. <dd><p>The integer constant -1.
  1695. </p>
  1696. </dd>
  1697. <dt><code>N</code></dt>
  1698. <dd><p>The integer constant 0.
  1699. </p>
  1700. </dd>
  1701. <dt><code>O</code></dt>
  1702. <dd><p>Integer constants -4 through -1 and 1 through 4; shifts by these
  1703. amounts are handled as multiple single-bit shifts rather than a single
  1704. variable-length shift.
  1705. </p>
  1706. </dd>
  1707. <dt><code>Q</code></dt>
  1708. <dd><p>A memory reference which requires an additional word (address or
  1709. offset) after the opcode.
  1710. </p>
  1711. </dd>
  1712. <dt><code>R</code></dt>
  1713. <dd><p>A memory reference that is encoded within the opcode.
  1714. </p>
  1715. </dd>
  1716. </dl>
  1717. </dd>
  1718. <dt><em>PowerPC and IBM RS6000&mdash;<samp>config/rs6000/constraints.md</samp></em></dt>
  1719. <dd><dl compact="compact">
  1720. <dt><code>b</code></dt>
  1721. <dd><p>Address base register
  1722. </p>
  1723. </dd>
  1724. <dt><code>d</code></dt>
  1725. <dd><p>Floating point register (containing 64-bit value)
  1726. </p>
  1727. </dd>
  1728. <dt><code>f</code></dt>
  1729. <dd><p>Floating point register (containing 32-bit value)
  1730. </p>
  1731. </dd>
  1732. <dt><code>v</code></dt>
  1733. <dd><p>Altivec vector register
  1734. </p>
  1735. </dd>
  1736. <dt><code>wa</code></dt>
  1737. <dd><p>Any VSX register if the <samp>-mvsx</samp> option was used or NO_REGS.
  1738. </p>
  1739. <p>When using any of the register constraints (<code>wa</code>, <code>wd</code>,
  1740. <code>wf</code>, <code>wg</code>, <code>wh</code>, <code>wi</code>, <code>wj</code>, <code>wk</code>,
  1741. <code>wl</code>, <code>wm</code>, <code>wo</code>, <code>wp</code>, <code>wq</code>, <code>ws</code>,
  1742. <code>wt</code>, <code>wu</code>, <code>wv</code>, <code>ww</code>, or <code>wy</code>)
  1743. that take VSX registers, you must use <code>%x&lt;n&gt;</code> in the template so
  1744. that the correct register is used. Otherwise the register number
  1745. output in the assembly file will be incorrect if an Altivec register
  1746. is an operand of a VSX instruction that expects VSX register
  1747. numbering.
  1748. </p>
  1749. <div class="smallexample">
  1750. <pre class="smallexample">asm (&quot;xvadddp %x0,%x1,%x2&quot;
  1751. : &quot;=wa&quot; (v1)
  1752. : &quot;wa&quot; (v2), &quot;wa&quot; (v3));
  1753. </pre></div>
  1754. <p>is correct, but:
  1755. </p>
  1756. <div class="smallexample">
  1757. <pre class="smallexample">asm (&quot;xvadddp %0,%1,%2&quot;
  1758. : &quot;=wa&quot; (v1)
  1759. : &quot;wa&quot; (v2), &quot;wa&quot; (v3));
  1760. </pre></div>
  1761. <p>is not correct.
  1762. </p>
  1763. <p>If an instruction only takes Altivec registers, you do not want to use
  1764. <code>%x&lt;n&gt;</code>.
  1765. </p>
  1766. <div class="smallexample">
  1767. <pre class="smallexample">asm (&quot;xsaddqp %0,%1,%2&quot;
  1768. : &quot;=v&quot; (v1)
  1769. : &quot;v&quot; (v2), &quot;v&quot; (v3));
  1770. </pre></div>
  1771. <p>is correct because the <code>xsaddqp</code> instruction only takes Altivec
  1772. registers, while:
  1773. </p>
  1774. <div class="smallexample">
  1775. <pre class="smallexample">asm (&quot;xsaddqp %x0,%x1,%x2&quot;
  1776. : &quot;=v&quot; (v1)
  1777. : &quot;v&quot; (v2), &quot;v&quot; (v3));
  1778. </pre></div>
  1779. <p>is incorrect.
  1780. </p>
  1781. </dd>
  1782. <dt><code>wb</code></dt>
  1783. <dd><p>Altivec register if <samp>-mcpu=power9</samp> is used or NO_REGS.
  1784. </p>
  1785. </dd>
  1786. <dt><code>wd</code></dt>
  1787. <dd><p>VSX vector register to hold vector double data or NO_REGS.
  1788. </p>
  1789. </dd>
  1790. <dt><code>we</code></dt>
  1791. <dd><p>VSX register if the <samp>-mcpu=power9</samp> and <samp>-m64</samp> options
  1792. were used or NO_REGS.
  1793. </p>
  1794. </dd>
  1795. <dt><code>wf</code></dt>
  1796. <dd><p>VSX vector register to hold vector float data or NO_REGS.
  1797. </p>
  1798. </dd>
  1799. <dt><code>wg</code></dt>
  1800. <dd><p>If <samp>-mmfpgpr</samp> was used, a floating point register or NO_REGS.
  1801. </p>
  1802. </dd>
  1803. <dt><code>wh</code></dt>
  1804. <dd><p>Floating point register if direct moves are available, or NO_REGS.
  1805. </p>
  1806. </dd>
  1807. <dt><code>wi</code></dt>
  1808. <dd><p>FP or VSX register to hold 64-bit integers for VSX insns or NO_REGS.
  1809. </p>
  1810. </dd>
  1811. <dt><code>wj</code></dt>
  1812. <dd><p>FP or VSX register to hold 64-bit integers for direct moves or NO_REGS.
  1813. </p>
  1814. </dd>
  1815. <dt><code>wk</code></dt>
  1816. <dd><p>FP or VSX register to hold 64-bit doubles for direct moves or NO_REGS.
  1817. </p>
  1818. </dd>
  1819. <dt><code>wl</code></dt>
  1820. <dd><p>Floating point register if the LFIWAX instruction is enabled or NO_REGS.
  1821. </p>
  1822. </dd>
  1823. <dt><code>wm</code></dt>
  1824. <dd><p>VSX register if direct move instructions are enabled, or NO_REGS.
  1825. </p>
  1826. </dd>
  1827. <dt><code>wn</code></dt>
  1828. <dd><p>No register (NO_REGS).
  1829. </p>
  1830. </dd>
  1831. <dt><code>wo</code></dt>
  1832. <dd><p>VSX register to use for ISA 3.0 vector instructions, or NO_REGS.
  1833. </p>
  1834. </dd>
  1835. <dt><code>wp</code></dt>
  1836. <dd><p>VSX register to use for IEEE 128-bit floating point TFmode, or NO_REGS.
  1837. </p>
  1838. </dd>
  1839. <dt><code>wq</code></dt>
  1840. <dd><p>VSX register to use for IEEE 128-bit floating point, or NO_REGS.
  1841. </p>
  1842. </dd>
  1843. <dt><code>wr</code></dt>
  1844. <dd><p>General purpose register if 64-bit instructions are enabled or NO_REGS.
  1845. </p>
  1846. </dd>
  1847. <dt><code>ws</code></dt>
  1848. <dd><p>VSX vector register to hold scalar double values or NO_REGS.
  1849. </p>
  1850. </dd>
  1851. <dt><code>wt</code></dt>
  1852. <dd><p>VSX vector register to hold 128 bit integer or NO_REGS.
  1853. </p>
  1854. </dd>
  1855. <dt><code>wu</code></dt>
  1856. <dd><p>Altivec register to use for float/32-bit int loads/stores or NO_REGS.
  1857. </p>
  1858. </dd>
  1859. <dt><code>wv</code></dt>
  1860. <dd><p>Altivec register to use for double loads/stores or NO_REGS.
  1861. </p>
  1862. </dd>
  1863. <dt><code>ww</code></dt>
  1864. <dd><p>FP or VSX register to perform float operations under <samp>-mvsx</samp> or NO_REGS.
  1865. </p>
  1866. </dd>
  1867. <dt><code>wx</code></dt>
  1868. <dd><p>Floating point register if the STFIWX instruction is enabled or NO_REGS.
  1869. </p>
  1870. </dd>
  1871. <dt><code>wy</code></dt>
  1872. <dd><p>FP or VSX register to perform ISA 2.07 float ops or NO_REGS.
  1873. </p>
  1874. </dd>
  1875. <dt><code>wz</code></dt>
  1876. <dd><p>Floating point register if the LFIWZX instruction is enabled or NO_REGS.
  1877. </p>
  1878. </dd>
  1879. <dt><code>wA</code></dt>
  1880. <dd><p>Address base register if 64-bit instructions are enabled or NO_REGS.
  1881. </p>
  1882. </dd>
  1883. <dt><code>wB</code></dt>
  1884. <dd><p>Signed 5-bit constant integer that can be loaded into an altivec register.
  1885. </p>
  1886. </dd>
  1887. <dt><code>wD</code></dt>
  1888. <dd><p>Int constant that is the element number of the 64-bit scalar in a vector.
  1889. </p>
  1890. </dd>
  1891. <dt><code>wE</code></dt>
  1892. <dd><p>Vector constant that can be loaded with the XXSPLTIB instruction.
  1893. </p>
  1894. </dd>
  1895. <dt><code>wF</code></dt>
  1896. <dd><p>Memory operand suitable for power9 fusion load/stores.
  1897. </p>
  1898. </dd>
  1899. <dt><code>wG</code></dt>
  1900. <dd><p>Memory operand suitable for TOC fusion memory references.
  1901. </p>
  1902. </dd>
  1903. <dt><code>wH</code></dt>
  1904. <dd><p>Altivec register if <samp>-mvsx-small-integer</samp>.
  1905. </p>
  1906. </dd>
  1907. <dt><code>wI</code></dt>
  1908. <dd><p>Floating point register if <samp>-mvsx-small-integer</samp>.
  1909. </p>
  1910. </dd>
  1911. <dt><code>wJ</code></dt>
  1912. <dd><p>FP register if <samp>-mvsx-small-integer</samp> and <samp>-mpower9-vector</samp>.
  1913. </p>
  1914. </dd>
  1915. <dt><code>wK</code></dt>
  1916. <dd><p>Altivec register if <samp>-mvsx-small-integer</samp> and <samp>-mpower9-vector</samp>.
  1917. </p>
  1918. </dd>
  1919. <dt><code>wL</code></dt>
  1920. <dd><p>Int constant that is the element number that the MFVSRLD instruction.
  1921. targets.
  1922. </p>
  1923. </dd>
  1924. <dt><code>wM</code></dt>
  1925. <dd><p>Match vector constant with all 1&rsquo;s if the XXLORC instruction is available.
  1926. </p>
  1927. </dd>
  1928. <dt><code>wO</code></dt>
  1929. <dd><p>A memory operand suitable for the ISA 3.0 vector d-form instructions.
  1930. </p>
  1931. </dd>
  1932. <dt><code>wQ</code></dt>
  1933. <dd><p>A memory address that will work with the <code>lq</code> and <code>stq</code>
  1934. instructions.
  1935. </p>
  1936. </dd>
  1937. <dt><code>wS</code></dt>
  1938. <dd><p>Vector constant that can be loaded with XXSPLTIB &amp; sign extension.
  1939. </p>
  1940. </dd>
  1941. <dt><code>h</code></dt>
  1942. <dd><p>&lsquo;<samp>MQ</samp>&rsquo;, &lsquo;<samp>CTR</samp>&rsquo;, or &lsquo;<samp>LINK</samp>&rsquo; register
  1943. </p>
  1944. </dd>
  1945. <dt><code>c</code></dt>
  1946. <dd><p>&lsquo;<samp>CTR</samp>&rsquo; register
  1947. </p>
  1948. </dd>
  1949. <dt><code>l</code></dt>
  1950. <dd><p>&lsquo;<samp>LINK</samp>&rsquo; register
  1951. </p>
  1952. </dd>
  1953. <dt><code>x</code></dt>
  1954. <dd><p>&lsquo;<samp>CR</samp>&rsquo; register (condition register) number 0
  1955. </p>
  1956. </dd>
  1957. <dt><code>y</code></dt>
  1958. <dd><p>&lsquo;<samp>CR</samp>&rsquo; register (condition register)
  1959. </p>
  1960. </dd>
  1961. <dt><code>z</code></dt>
  1962. <dd><p>&lsquo;<samp>XER[CA]</samp>&rsquo; carry bit (part of the XER register)
  1963. </p>
  1964. </dd>
  1965. <dt><code>I</code></dt>
  1966. <dd><p>Signed 16-bit constant
  1967. </p>
  1968. </dd>
  1969. <dt><code>J</code></dt>
  1970. <dd><p>Unsigned 16-bit constant shifted left 16 bits (use &lsquo;<samp>L</samp>&rsquo; instead for
  1971. <code>SImode</code> constants)
  1972. </p>
  1973. </dd>
  1974. <dt><code>K</code></dt>
  1975. <dd><p>Unsigned 16-bit constant
  1976. </p>
  1977. </dd>
  1978. <dt><code>L</code></dt>
  1979. <dd><p>Signed 16-bit constant shifted left 16 bits
  1980. </p>
  1981. </dd>
  1982. <dt><code>M</code></dt>
  1983. <dd><p>Constant larger than 31
  1984. </p>
  1985. </dd>
  1986. <dt><code>N</code></dt>
  1987. <dd><p>Exact power of 2
  1988. </p>
  1989. </dd>
  1990. <dt><code>O</code></dt>
  1991. <dd><p>Zero
  1992. </p>
  1993. </dd>
  1994. <dt><code>P</code></dt>
  1995. <dd><p>Constant whose negation is a signed 16-bit constant
  1996. </p>
  1997. </dd>
  1998. <dt><code>G</code></dt>
  1999. <dd><p>Floating point constant that can be loaded into a register with one
  2000. instruction per word
  2001. </p>
  2002. </dd>
  2003. <dt><code>H</code></dt>
  2004. <dd><p>Integer/Floating point constant that can be loaded into a register using
  2005. three instructions
  2006. </p>
  2007. </dd>
  2008. <dt><code>m</code></dt>
  2009. <dd><p>Memory operand.
  2010. Normally, <code>m</code> does not allow addresses that update the base register.
  2011. If &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo; constraint is also used, they are allowed and
  2012. therefore on PowerPC targets in that case it is only safe
  2013. to use &lsquo;<samp>m&lt;&gt;</samp>&rsquo; in an <code>asm</code> statement if that <code>asm</code> statement
  2014. accesses the operand exactly once. The <code>asm</code> statement must also
  2015. use &lsquo;<samp>%U<var>&lt;opno&gt;</var></samp>&rsquo; as a placeholder for the &ldquo;update&rdquo; flag in the
  2016. corresponding load or store instruction. For example:
  2017. </p>
  2018. <div class="smallexample">
  2019. <pre class="smallexample">asm (&quot;st%U0 %1,%0&quot; : &quot;=m&lt;&gt;&quot; (mem) : &quot;r&quot; (val));
  2020. </pre></div>
  2021. <p>is correct but:
  2022. </p>
  2023. <div class="smallexample">
  2024. <pre class="smallexample">asm (&quot;st %1,%0&quot; : &quot;=m&lt;&gt;&quot; (mem) : &quot;r&quot; (val));
  2025. </pre></div>
  2026. <p>is not.
  2027. </p>
  2028. </dd>
  2029. <dt><code>es</code></dt>
  2030. <dd><p>A &ldquo;stable&rdquo; memory operand; that is, one which does not include any
  2031. automodification of the base register. This used to be useful when
  2032. &lsquo;<samp>m</samp>&rsquo; allowed automodification of the base register, but as those are now only
  2033. allowed when &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo; is used, &lsquo;<samp>es</samp>&rsquo; is basically the same
  2034. as &lsquo;<samp>m</samp>&rsquo; without &lsquo;<samp>&lt;</samp>&rsquo; and &lsquo;<samp>&gt;</samp>&rsquo;.
  2035. </p>
  2036. </dd>
  2037. <dt><code>Q</code></dt>
  2038. <dd><p>Memory operand that is an offset from a register (it is usually better
  2039. to use &lsquo;<samp>m</samp>&rsquo; or &lsquo;<samp>es</samp>&rsquo; in <code>asm</code> statements)
  2040. </p>
  2041. </dd>
  2042. <dt><code>Z</code></dt>
  2043. <dd><p>Memory operand that is an indexed or indirect from a register (it is
  2044. usually better to use &lsquo;<samp>m</samp>&rsquo; or &lsquo;<samp>es</samp>&rsquo; in <code>asm</code> statements)
  2045. </p>
  2046. </dd>
  2047. <dt><code>R</code></dt>
  2048. <dd><p>AIX TOC entry
  2049. </p>
  2050. </dd>
  2051. <dt><code>a</code></dt>
  2052. <dd><p>Address operand that is an indexed or indirect from a register (&lsquo;<samp>p</samp>&rsquo; is
  2053. preferable for <code>asm</code> statements)
  2054. </p>
  2055. </dd>
  2056. <dt><code>U</code></dt>
  2057. <dd><p>System V Release 4 small data area reference
  2058. </p>
  2059. </dd>
  2060. <dt><code>W</code></dt>
  2061. <dd><p>Vector constant that does not require memory
  2062. </p>
  2063. </dd>
  2064. <dt><code>j</code></dt>
  2065. <dd><p>Vector constant that is all zeros.
  2066. </p>
  2067. </dd>
  2068. </dl>
  2069. </dd>
  2070. <dt><em>RL78&mdash;<samp>config/rl78/constraints.md</samp></em></dt>
  2071. <dd><dl compact="compact">
  2072. <dt><code>Int3</code></dt>
  2073. <dd><p>An integer constant in the range 1 &hellip; 7.
  2074. </p></dd>
  2075. <dt><code>Int8</code></dt>
  2076. <dd><p>An integer constant in the range 0 &hellip; 255.
  2077. </p></dd>
  2078. <dt><code>J</code></dt>
  2079. <dd><p>An integer constant in the range -255 &hellip; 0
  2080. </p></dd>
  2081. <dt><code>K</code></dt>
  2082. <dd><p>The integer constant 1.
  2083. </p></dd>
  2084. <dt><code>L</code></dt>
  2085. <dd><p>The integer constant -1.
  2086. </p></dd>
  2087. <dt><code>M</code></dt>
  2088. <dd><p>The integer constant 0.
  2089. </p></dd>
  2090. <dt><code>N</code></dt>
  2091. <dd><p>The integer constant 2.
  2092. </p></dd>
  2093. <dt><code>O</code></dt>
  2094. <dd><p>The integer constant -2.
  2095. </p></dd>
  2096. <dt><code>P</code></dt>
  2097. <dd><p>An integer constant in the range 1 &hellip; 15.
  2098. </p></dd>
  2099. <dt><code>Qbi</code></dt>
  2100. <dd><p>The built-in compare types&ndash;eq, ne, gtu, ltu, geu, and leu.
  2101. </p></dd>
  2102. <dt><code>Qsc</code></dt>
  2103. <dd><p>The synthetic compare types&ndash;gt, lt, ge, and le.
  2104. </p></dd>
  2105. <dt><code>Wab</code></dt>
  2106. <dd><p>A memory reference with an absolute address.
  2107. </p></dd>
  2108. <dt><code>Wbc</code></dt>
  2109. <dd><p>A memory reference using <code>BC</code> as a base register, with an optional offset.
  2110. </p></dd>
  2111. <dt><code>Wca</code></dt>
  2112. <dd><p>A memory reference using <code>AX</code>, <code>BC</code>, <code>DE</code>, or <code>HL</code> for the address, for calls.
  2113. </p></dd>
  2114. <dt><code>Wcv</code></dt>
  2115. <dd><p>A memory reference using any 16-bit register pair for the address, for calls.
  2116. </p></dd>
  2117. <dt><code>Wd2</code></dt>
  2118. <dd><p>A memory reference using <code>DE</code> as a base register, with an optional offset.
  2119. </p></dd>
  2120. <dt><code>Wde</code></dt>
  2121. <dd><p>A memory reference using <code>DE</code> as a base register, without any offset.
  2122. </p></dd>
  2123. <dt><code>Wfr</code></dt>
  2124. <dd><p>Any memory reference to an address in the far address space.
  2125. </p></dd>
  2126. <dt><code>Wh1</code></dt>
  2127. <dd><p>A memory reference using <code>HL</code> as a base register, with an optional one-byte offset.
  2128. </p></dd>
  2129. <dt><code>Whb</code></dt>
  2130. <dd><p>A memory reference using <code>HL</code> as a base register, with <code>B</code> or <code>C</code> as the index register.
  2131. </p></dd>
  2132. <dt><code>Whl</code></dt>
  2133. <dd><p>A memory reference using <code>HL</code> as a base register, without any offset.
  2134. </p></dd>
  2135. <dt><code>Ws1</code></dt>
  2136. <dd><p>A memory reference using <code>SP</code> as a base register, with an optional one-byte offset.
  2137. </p></dd>
  2138. <dt><code>Y</code></dt>
  2139. <dd><p>Any memory reference to an address in the near address space.
  2140. </p></dd>
  2141. <dt><code>A</code></dt>
  2142. <dd><p>The <code>AX</code> register.
  2143. </p></dd>
  2144. <dt><code>B</code></dt>
  2145. <dd><p>The <code>BC</code> register.
  2146. </p></dd>
  2147. <dt><code>D</code></dt>
  2148. <dd><p>The <code>DE</code> register.
  2149. </p></dd>
  2150. <dt><code>R</code></dt>
  2151. <dd><p><code>A</code> through <code>L</code> registers.
  2152. </p></dd>
  2153. <dt><code>S</code></dt>
  2154. <dd><p>The <code>SP</code> register.
  2155. </p></dd>
  2156. <dt><code>T</code></dt>
  2157. <dd><p>The <code>HL</code> register.
  2158. </p></dd>
  2159. <dt><code>Z08W</code></dt>
  2160. <dd><p>The 16-bit <code>R8</code> register.
  2161. </p></dd>
  2162. <dt><code>Z10W</code></dt>
  2163. <dd><p>The 16-bit <code>R10</code> register.
  2164. </p></dd>
  2165. <dt><code>Zint</code></dt>
  2166. <dd><p>The registers reserved for interrupts (<code>R24</code> to <code>R31</code>).
  2167. </p></dd>
  2168. <dt><code>a</code></dt>
  2169. <dd><p>The <code>A</code> register.
  2170. </p></dd>
  2171. <dt><code>b</code></dt>
  2172. <dd><p>The <code>B</code> register.
  2173. </p></dd>
  2174. <dt><code>c</code></dt>
  2175. <dd><p>The <code>C</code> register.
  2176. </p></dd>
  2177. <dt><code>d</code></dt>
  2178. <dd><p>The <code>D</code> register.
  2179. </p></dd>
  2180. <dt><code>e</code></dt>
  2181. <dd><p>The <code>E</code> register.
  2182. </p></dd>
  2183. <dt><code>h</code></dt>
  2184. <dd><p>The <code>H</code> register.
  2185. </p></dd>
  2186. <dt><code>l</code></dt>
  2187. <dd><p>The <code>L</code> register.
  2188. </p></dd>
  2189. <dt><code>v</code></dt>
  2190. <dd><p>The virtual registers.
  2191. </p></dd>
  2192. <dt><code>w</code></dt>
  2193. <dd><p>The <code>PSW</code> register.
  2194. </p></dd>
  2195. <dt><code>x</code></dt>
  2196. <dd><p>The <code>X</code> register.
  2197. </p>
  2198. </dd>
  2199. </dl>
  2200. </dd>
  2201. <dt><em>RISC-V&mdash;<samp>config/riscv/constraints.md</samp></em></dt>
  2202. <dd><dl compact="compact">
  2203. <dt><code>f</code></dt>
  2204. <dd><p>A floating-point register (if availiable).
  2205. </p>
  2206. </dd>
  2207. <dt><code>I</code></dt>
  2208. <dd><p>An I-type 12-bit signed immediate.
  2209. </p>
  2210. </dd>
  2211. <dt><code>J</code></dt>
  2212. <dd><p>Integer zero.
  2213. </p>
  2214. </dd>
  2215. <dt><code>K</code></dt>
  2216. <dd><p>A 5-bit unsigned immediate for CSR access instructions.
  2217. </p>
  2218. </dd>
  2219. <dt><code>A</code></dt>
  2220. <dd><p>An address that is held in a general-purpose register.
  2221. </p>
  2222. </dd>
  2223. </dl>
  2224. </dd>
  2225. <dt><em>RX&mdash;<samp>config/rx/constraints.md</samp></em></dt>
  2226. <dd><dl compact="compact">
  2227. <dt><code>Q</code></dt>
  2228. <dd><p>An address which does not involve register indirect addressing or
  2229. pre/post increment/decrement addressing.
  2230. </p>
  2231. </dd>
  2232. <dt><code>Symbol</code></dt>
  2233. <dd><p>A symbol reference.
  2234. </p>
  2235. </dd>
  2236. <dt><code>Int08</code></dt>
  2237. <dd><p>A constant in the range -256 to 255, inclusive.
  2238. </p>
  2239. </dd>
  2240. <dt><code>Sint08</code></dt>
  2241. <dd><p>A constant in the range -128 to 127, inclusive.
  2242. </p>
  2243. </dd>
  2244. <dt><code>Sint16</code></dt>
  2245. <dd><p>A constant in the range -32768 to 32767, inclusive.
  2246. </p>
  2247. </dd>
  2248. <dt><code>Sint24</code></dt>
  2249. <dd><p>A constant in the range -8388608 to 8388607, inclusive.
  2250. </p>
  2251. </dd>
  2252. <dt><code>Uint04</code></dt>
  2253. <dd><p>A constant in the range 0 to 15, inclusive.
  2254. </p>
  2255. </dd>
  2256. </dl>
  2257. </dd>
  2258. <dt><em>S/390 and zSeries&mdash;<samp>config/s390/s390.h</samp></em></dt>
  2259. <dd><dl compact="compact">
  2260. <dt><code>a</code></dt>
  2261. <dd><p>Address register (general purpose register except r0)
  2262. </p>
  2263. </dd>
  2264. <dt><code>c</code></dt>
  2265. <dd><p>Condition code register
  2266. </p>
  2267. </dd>
  2268. <dt><code>d</code></dt>
  2269. <dd><p>Data register (arbitrary general purpose register)
  2270. </p>
  2271. </dd>
  2272. <dt><code>f</code></dt>
  2273. <dd><p>Floating-point register
  2274. </p>
  2275. </dd>
  2276. <dt><code>I</code></dt>
  2277. <dd><p>Unsigned 8-bit constant (0&ndash;255)
  2278. </p>
  2279. </dd>
  2280. <dt><code>J</code></dt>
  2281. <dd><p>Unsigned 12-bit constant (0&ndash;4095)
  2282. </p>
  2283. </dd>
  2284. <dt><code>K</code></dt>
  2285. <dd><p>Signed 16-bit constant (-32768&ndash;32767)
  2286. </p>
  2287. </dd>
  2288. <dt><code>L</code></dt>
  2289. <dd><p>Value appropriate as displacement.
  2290. </p><dl compact="compact">
  2291. <dt><code>(0..4095)</code></dt>
  2292. <dd><p>for short displacement
  2293. </p></dd>
  2294. <dt><code>(-524288..524287)</code></dt>
  2295. <dd><p>for long displacement
  2296. </p></dd>
  2297. </dl>
  2298. </dd>
  2299. <dt><code>M</code></dt>
  2300. <dd><p>Constant integer with a value of 0x7fffffff.
  2301. </p>
  2302. </dd>
  2303. <dt><code>N</code></dt>
  2304. <dd><p>Multiple letter constraint followed by 4 parameter letters.
  2305. </p><dl compact="compact">
  2306. <dt><code>0..9:</code></dt>
  2307. <dd><p>number of the part counting from most to least significant
  2308. </p></dd>
  2309. <dt><code>H,Q:</code></dt>
  2310. <dd><p>mode of the part
  2311. </p></dd>
  2312. <dt><code>D,S,H:</code></dt>
  2313. <dd><p>mode of the containing operand
  2314. </p></dd>
  2315. <dt><code>0,F:</code></dt>
  2316. <dd><p>value of the other parts (F&mdash;all bits set)
  2317. </p></dd>
  2318. </dl>
  2319. <p>The constraint matches if the specified part of a constant
  2320. has a value different from its other parts.
  2321. </p>
  2322. </dd>
  2323. <dt><code>Q</code></dt>
  2324. <dd><p>Memory reference without index register and with short displacement.
  2325. </p>
  2326. </dd>
  2327. <dt><code>R</code></dt>
  2328. <dd><p>Memory reference with index register and short displacement.
  2329. </p>
  2330. </dd>
  2331. <dt><code>S</code></dt>
  2332. <dd><p>Memory reference without index register but with long displacement.
  2333. </p>
  2334. </dd>
  2335. <dt><code>T</code></dt>
  2336. <dd><p>Memory reference with index register and long displacement.
  2337. </p>
  2338. </dd>
  2339. <dt><code>U</code></dt>
  2340. <dd><p>Pointer with short displacement.
  2341. </p>
  2342. </dd>
  2343. <dt><code>W</code></dt>
  2344. <dd><p>Pointer with long displacement.
  2345. </p>
  2346. </dd>
  2347. <dt><code>Y</code></dt>
  2348. <dd><p>Shift count operand.
  2349. </p>
  2350. </dd>
  2351. </dl>
  2352. </dd>
  2353. <dt><em>SPARC&mdash;<samp>config/sparc/sparc.h</samp></em></dt>
  2354. <dd><dl compact="compact">
  2355. <dt><code>f</code></dt>
  2356. <dd><p>Floating-point register on the SPARC-V8 architecture and
  2357. lower floating-point register on the SPARC-V9 architecture.
  2358. </p>
  2359. </dd>
  2360. <dt><code>e</code></dt>
  2361. <dd><p>Floating-point register. It is equivalent to &lsquo;<samp>f</samp>&rsquo; on the
  2362. SPARC-V8 architecture and contains both lower and upper
  2363. floating-point registers on the SPARC-V9 architecture.
  2364. </p>
  2365. </dd>
  2366. <dt><code>c</code></dt>
  2367. <dd><p>Floating-point condition code register.
  2368. </p>
  2369. </dd>
  2370. <dt><code>d</code></dt>
  2371. <dd><p>Lower floating-point register. It is only valid on the SPARC-V9
  2372. architecture when the Visual Instruction Set is available.
  2373. </p>
  2374. </dd>
  2375. <dt><code>b</code></dt>
  2376. <dd><p>Floating-point register. It is only valid on the SPARC-V9 architecture
  2377. when the Visual Instruction Set is available.
  2378. </p>
  2379. </dd>
  2380. <dt><code>h</code></dt>
  2381. <dd><p>64-bit global or out register for the SPARC-V8+ architecture.
  2382. </p>
  2383. </dd>
  2384. <dt><code>C</code></dt>
  2385. <dd><p>The constant all-ones, for floating-point.
  2386. </p>
  2387. </dd>
  2388. <dt><code>A</code></dt>
  2389. <dd><p>Signed 5-bit constant
  2390. </p>
  2391. </dd>
  2392. <dt><code>D</code></dt>
  2393. <dd><p>A vector constant
  2394. </p>
  2395. </dd>
  2396. <dt><code>I</code></dt>
  2397. <dd><p>Signed 13-bit constant
  2398. </p>
  2399. </dd>
  2400. <dt><code>J</code></dt>
  2401. <dd><p>Zero
  2402. </p>
  2403. </dd>
  2404. <dt><code>K</code></dt>
  2405. <dd><p>32-bit constant with the low 12 bits clear (a constant that can be
  2406. loaded with the <code>sethi</code> instruction)
  2407. </p>
  2408. </dd>
  2409. <dt><code>L</code></dt>
  2410. <dd><p>A constant in the range supported by <code>movcc</code> instructions (11-bit
  2411. signed immediate)
  2412. </p>
  2413. </dd>
  2414. <dt><code>M</code></dt>
  2415. <dd><p>A constant in the range supported by <code>movrcc</code> instructions (10-bit
  2416. signed immediate)
  2417. </p>
  2418. </dd>
  2419. <dt><code>N</code></dt>
  2420. <dd><p>Same as &lsquo;<samp>K</samp>&rsquo;, except that it verifies that bits that are not in the
  2421. lower 32-bit range are all zero. Must be used instead of &lsquo;<samp>K</samp>&rsquo; for
  2422. modes wider than <code>SImode</code>
  2423. </p>
  2424. </dd>
  2425. <dt><code>O</code></dt>
  2426. <dd><p>The constant 4096
  2427. </p>
  2428. </dd>
  2429. <dt><code>G</code></dt>
  2430. <dd><p>Floating-point zero
  2431. </p>
  2432. </dd>
  2433. <dt><code>H</code></dt>
  2434. <dd><p>Signed 13-bit constant, sign-extended to 32 or 64 bits
  2435. </p>
  2436. </dd>
  2437. <dt><code>P</code></dt>
  2438. <dd><p>The constant -1
  2439. </p>
  2440. </dd>
  2441. <dt><code>Q</code></dt>
  2442. <dd><p>Floating-point constant whose integral representation can
  2443. be moved into an integer register using a single sethi
  2444. instruction
  2445. </p>
  2446. </dd>
  2447. <dt><code>R</code></dt>
  2448. <dd><p>Floating-point constant whose integral representation can
  2449. be moved into an integer register using a single mov
  2450. instruction
  2451. </p>
  2452. </dd>
  2453. <dt><code>S</code></dt>
  2454. <dd><p>Floating-point constant whose integral representation can
  2455. be moved into an integer register using a high/lo_sum
  2456. instruction sequence
  2457. </p>
  2458. </dd>
  2459. <dt><code>T</code></dt>
  2460. <dd><p>Memory address aligned to an 8-byte boundary
  2461. </p>
  2462. </dd>
  2463. <dt><code>U</code></dt>
  2464. <dd><p>Even register
  2465. </p>
  2466. </dd>
  2467. <dt><code>W</code></dt>
  2468. <dd><p>Memory address for &lsquo;<samp>e</samp>&rsquo; constraint registers
  2469. </p>
  2470. </dd>
  2471. <dt><code>w</code></dt>
  2472. <dd><p>Memory address with only a base register
  2473. </p>
  2474. </dd>
  2475. <dt><code>Y</code></dt>
  2476. <dd><p>Vector zero
  2477. </p>
  2478. </dd>
  2479. </dl>
  2480. </dd>
  2481. <dt><em>SPU&mdash;<samp>config/spu/spu.h</samp></em></dt>
  2482. <dd><dl compact="compact">
  2483. <dt><code>a</code></dt>
  2484. <dd><p>An immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is treated as a 64 bit value.
  2485. </p>
  2486. </dd>
  2487. <dt><code>c</code></dt>
  2488. <dd><p>An immediate for and/xor/or instructions. const_int is treated as a 64 bit value.
  2489. </p>
  2490. </dd>
  2491. <dt><code>d</code></dt>
  2492. <dd><p>An immediate for the <code>iohl</code> instruction. const_int is treated as a 64 bit value.
  2493. </p>
  2494. </dd>
  2495. <dt><code>f</code></dt>
  2496. <dd><p>An immediate which can be loaded with <code>fsmbi</code>.
  2497. </p>
  2498. </dd>
  2499. <dt><code>A</code></dt>
  2500. <dd><p>An immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is treated as a 32 bit value.
  2501. </p>
  2502. </dd>
  2503. <dt><code>B</code></dt>
  2504. <dd><p>An immediate for most arithmetic instructions. const_int is treated as a 32 bit value.
  2505. </p>
  2506. </dd>
  2507. <dt><code>C</code></dt>
  2508. <dd><p>An immediate for and/xor/or instructions. const_int is treated as a 32 bit value.
  2509. </p>
  2510. </dd>
  2511. <dt><code>D</code></dt>
  2512. <dd><p>An immediate for the <code>iohl</code> instruction. const_int is treated as a 32 bit value.
  2513. </p>
  2514. </dd>
  2515. <dt><code>I</code></dt>
  2516. <dd><p>A constant in the range [-64, 63] for shift/rotate instructions.
  2517. </p>
  2518. </dd>
  2519. <dt><code>J</code></dt>
  2520. <dd><p>An unsigned 7-bit constant for conversion/nop/channel instructions.
  2521. </p>
  2522. </dd>
  2523. <dt><code>K</code></dt>
  2524. <dd><p>A signed 10-bit constant for most arithmetic instructions.
  2525. </p>
  2526. </dd>
  2527. <dt><code>M</code></dt>
  2528. <dd><p>A signed 16 bit immediate for <code>stop</code>.
  2529. </p>
  2530. </dd>
  2531. <dt><code>N</code></dt>
  2532. <dd><p>An unsigned 16-bit constant for <code>iohl</code> and <code>fsmbi</code>.
  2533. </p>
  2534. </dd>
  2535. <dt><code>O</code></dt>
  2536. <dd><p>An unsigned 7-bit constant whose 3 least significant bits are 0.
  2537. </p>
  2538. </dd>
  2539. <dt><code>P</code></dt>
  2540. <dd><p>An unsigned 3-bit constant for 16-byte rotates and shifts
  2541. </p>
  2542. </dd>
  2543. <dt><code>R</code></dt>
  2544. <dd><p>Call operand, reg, for indirect calls
  2545. </p>
  2546. </dd>
  2547. <dt><code>S</code></dt>
  2548. <dd><p>Call operand, symbol, for relative calls.
  2549. </p>
  2550. </dd>
  2551. <dt><code>T</code></dt>
  2552. <dd><p>Call operand, const_int, for absolute calls.
  2553. </p>
  2554. </dd>
  2555. <dt><code>U</code></dt>
  2556. <dd><p>An immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is sign extended to 128 bit.
  2557. </p>
  2558. </dd>
  2559. <dt><code>W</code></dt>
  2560. <dd><p>An immediate for shift and rotate instructions. const_int is treated as a 32 bit value.
  2561. </p>
  2562. </dd>
  2563. <dt><code>Y</code></dt>
  2564. <dd><p>An immediate for and/xor/or instructions. const_int is sign extended as a 128 bit.
  2565. </p>
  2566. </dd>
  2567. <dt><code>Z</code></dt>
  2568. <dd><p>An immediate for the <code>iohl</code> instruction. const_int is sign extended to 128 bit.
  2569. </p>
  2570. </dd>
  2571. </dl>
  2572. </dd>
  2573. <dt><em>TI C6X family&mdash;<samp>config/c6x/constraints.md</samp></em></dt>
  2574. <dd><dl compact="compact">
  2575. <dt><code>a</code></dt>
  2576. <dd><p>Register file A (A0&ndash;A31).
  2577. </p>
  2578. </dd>
  2579. <dt><code>b</code></dt>
  2580. <dd><p>Register file B (B0&ndash;B31).
  2581. </p>
  2582. </dd>
  2583. <dt><code>A</code></dt>
  2584. <dd><p>Predicate registers in register file A (A0&ndash;A2 on C64X and
  2585. higher, A1 and A2 otherwise).
  2586. </p>
  2587. </dd>
  2588. <dt><code>B</code></dt>
  2589. <dd><p>Predicate registers in register file B (B0&ndash;B2).
  2590. </p>
  2591. </dd>
  2592. <dt><code>C</code></dt>
  2593. <dd><p>A call-used register in register file B (B0&ndash;B9, B16&ndash;B31).
  2594. </p>
  2595. </dd>
  2596. <dt><code>Da</code></dt>
  2597. <dd><p>Register file A, excluding predicate registers (A3&ndash;A31,
  2598. plus A0 if not C64X or higher).
  2599. </p>
  2600. </dd>
  2601. <dt><code>Db</code></dt>
  2602. <dd><p>Register file B, excluding predicate registers (B3&ndash;B31).
  2603. </p>
  2604. </dd>
  2605. <dt><code>Iu4</code></dt>
  2606. <dd><p>Integer constant in the range 0 &hellip; 15.
  2607. </p>
  2608. </dd>
  2609. <dt><code>Iu5</code></dt>
  2610. <dd><p>Integer constant in the range 0 &hellip; 31.
  2611. </p>
  2612. </dd>
  2613. <dt><code>In5</code></dt>
  2614. <dd><p>Integer constant in the range -31 &hellip; 0.
  2615. </p>
  2616. </dd>
  2617. <dt><code>Is5</code></dt>
  2618. <dd><p>Integer constant in the range -16 &hellip; 15.
  2619. </p>
  2620. </dd>
  2621. <dt><code>I5x</code></dt>
  2622. <dd><p>Integer constant that can be the operand of an ADDA or a SUBA insn.
  2623. </p>
  2624. </dd>
  2625. <dt><code>IuB</code></dt>
  2626. <dd><p>Integer constant in the range 0 &hellip; 65535.
  2627. </p>
  2628. </dd>
  2629. <dt><code>IsB</code></dt>
  2630. <dd><p>Integer constant in the range -32768 &hellip; 32767.
  2631. </p>
  2632. </dd>
  2633. <dt><code>IsC</code></dt>
  2634. <dd><p>Integer constant in the range <em>-2^{20}</em> &hellip; <em>2^{20} - 1</em>.
  2635. </p>
  2636. </dd>
  2637. <dt><code>Jc</code></dt>
  2638. <dd><p>Integer constant that is a valid mask for the clr instruction.
  2639. </p>
  2640. </dd>
  2641. <dt><code>Js</code></dt>
  2642. <dd><p>Integer constant that is a valid mask for the set instruction.
  2643. </p>
  2644. </dd>
  2645. <dt><code>Q</code></dt>
  2646. <dd><p>Memory location with A base register.
  2647. </p>
  2648. </dd>
  2649. <dt><code>R</code></dt>
  2650. <dd><p>Memory location with B base register.
  2651. </p>
  2652. </dd>
  2653. <dt><code>Z</code></dt>
  2654. <dd><p>Register B14 (aka DP).
  2655. </p>
  2656. </dd>
  2657. </dl>
  2658. </dd>
  2659. <dt><em>TILE-Gx&mdash;<samp>config/tilegx/constraints.md</samp></em></dt>
  2660. <dd><dl compact="compact">
  2661. <dt><code>R00</code></dt>
  2662. <dt><code>R01</code></dt>
  2663. <dt><code>R02</code></dt>
  2664. <dt><code>R03</code></dt>
  2665. <dt><code>R04</code></dt>
  2666. <dt><code>R05</code></dt>
  2667. <dt><code>R06</code></dt>
  2668. <dt><code>R07</code></dt>
  2669. <dt><code>R08</code></dt>
  2670. <dt><code>R09</code></dt>
  2671. <dt><code>R10</code></dt>
  2672. <dd><p>Each of these represents a register constraint for an individual
  2673. register, from r0 to r10.
  2674. </p>
  2675. </dd>
  2676. <dt><code>I</code></dt>
  2677. <dd><p>Signed 8-bit integer constant.
  2678. </p>
  2679. </dd>
  2680. <dt><code>J</code></dt>
  2681. <dd><p>Signed 16-bit integer constant.
  2682. </p>
  2683. </dd>
  2684. <dt><code>K</code></dt>
  2685. <dd><p>Unsigned 16-bit integer constant.
  2686. </p>
  2687. </dd>
  2688. <dt><code>L</code></dt>
  2689. <dd><p>Integer constant that fits in one signed byte when incremented by one
  2690. (-129 &hellip; 126).
  2691. </p>
  2692. </dd>
  2693. <dt><code>m</code></dt>
  2694. <dd><p>Memory operand. If used together with &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo;, the
  2695. operand can have postincrement which requires printing with &lsquo;<samp>%In</samp>&rsquo;
  2696. and &lsquo;<samp>%in</samp>&rsquo; on TILE-Gx. For example:
  2697. </p>
  2698. <div class="smallexample">
  2699. <pre class="smallexample">asm (&quot;st_add %I0,%1,%i0&quot; : &quot;=m&lt;&gt;&quot; (*mem) : &quot;r&quot; (val));
  2700. </pre></div>
  2701. </dd>
  2702. <dt><code>M</code></dt>
  2703. <dd><p>A bit mask suitable for the BFINS instruction.
  2704. </p>
  2705. </dd>
  2706. <dt><code>N</code></dt>
  2707. <dd><p>Integer constant that is a byte tiled out eight times.
  2708. </p>
  2709. </dd>
  2710. <dt><code>O</code></dt>
  2711. <dd><p>The integer zero constant.
  2712. </p>
  2713. </dd>
  2714. <dt><code>P</code></dt>
  2715. <dd><p>Integer constant that is a sign-extended byte tiled out as four shorts.
  2716. </p>
  2717. </dd>
  2718. <dt><code>Q</code></dt>
  2719. <dd><p>Integer constant that fits in one signed byte when incremented
  2720. (-129 &hellip; 126), but excluding -1.
  2721. </p>
  2722. </dd>
  2723. <dt><code>S</code></dt>
  2724. <dd><p>Integer constant that has all 1 bits consecutive and starting at bit 0.
  2725. </p>
  2726. </dd>
  2727. <dt><code>T</code></dt>
  2728. <dd><p>A 16-bit fragment of a got, tls, or pc-relative reference.
  2729. </p>
  2730. </dd>
  2731. <dt><code>U</code></dt>
  2732. <dd><p>Memory operand except postincrement. This is roughly the same as
  2733. &lsquo;<samp>m</samp>&rsquo; when not used together with &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo;.
  2734. </p>
  2735. </dd>
  2736. <dt><code>W</code></dt>
  2737. <dd><p>An 8-element vector constant with identical elements.
  2738. </p>
  2739. </dd>
  2740. <dt><code>Y</code></dt>
  2741. <dd><p>A 4-element vector constant with identical elements.
  2742. </p>
  2743. </dd>
  2744. <dt><code>Z0</code></dt>
  2745. <dd><p>The integer constant 0xffffffff.
  2746. </p>
  2747. </dd>
  2748. <dt><code>Z1</code></dt>
  2749. <dd><p>The integer constant 0xffffffff00000000.
  2750. </p>
  2751. </dd>
  2752. </dl>
  2753. </dd>
  2754. <dt><em>TILEPro&mdash;<samp>config/tilepro/constraints.md</samp></em></dt>
  2755. <dd><dl compact="compact">
  2756. <dt><code>R00</code></dt>
  2757. <dt><code>R01</code></dt>
  2758. <dt><code>R02</code></dt>
  2759. <dt><code>R03</code></dt>
  2760. <dt><code>R04</code></dt>
  2761. <dt><code>R05</code></dt>
  2762. <dt><code>R06</code></dt>
  2763. <dt><code>R07</code></dt>
  2764. <dt><code>R08</code></dt>
  2765. <dt><code>R09</code></dt>
  2766. <dt><code>R10</code></dt>
  2767. <dd><p>Each of these represents a register constraint for an individual
  2768. register, from r0 to r10.
  2769. </p>
  2770. </dd>
  2771. <dt><code>I</code></dt>
  2772. <dd><p>Signed 8-bit integer constant.
  2773. </p>
  2774. </dd>
  2775. <dt><code>J</code></dt>
  2776. <dd><p>Signed 16-bit integer constant.
  2777. </p>
  2778. </dd>
  2779. <dt><code>K</code></dt>
  2780. <dd><p>Nonzero integer constant with low 16 bits zero.
  2781. </p>
  2782. </dd>
  2783. <dt><code>L</code></dt>
  2784. <dd><p>Integer constant that fits in one signed byte when incremented by one
  2785. (-129 &hellip; 126).
  2786. </p>
  2787. </dd>
  2788. <dt><code>m</code></dt>
  2789. <dd><p>Memory operand. If used together with &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo;, the
  2790. operand can have postincrement which requires printing with &lsquo;<samp>%In</samp>&rsquo;
  2791. and &lsquo;<samp>%in</samp>&rsquo; on TILEPro. For example:
  2792. </p>
  2793. <div class="smallexample">
  2794. <pre class="smallexample">asm (&quot;swadd %I0,%1,%i0&quot; : &quot;=m&lt;&gt;&quot; (mem) : &quot;r&quot; (val));
  2795. </pre></div>
  2796. </dd>
  2797. <dt><code>M</code></dt>
  2798. <dd><p>A bit mask suitable for the MM instruction.
  2799. </p>
  2800. </dd>
  2801. <dt><code>N</code></dt>
  2802. <dd><p>Integer constant that is a byte tiled out four times.
  2803. </p>
  2804. </dd>
  2805. <dt><code>O</code></dt>
  2806. <dd><p>The integer zero constant.
  2807. </p>
  2808. </dd>
  2809. <dt><code>P</code></dt>
  2810. <dd><p>Integer constant that is a sign-extended byte tiled out as two shorts.
  2811. </p>
  2812. </dd>
  2813. <dt><code>Q</code></dt>
  2814. <dd><p>Integer constant that fits in one signed byte when incremented
  2815. (-129 &hellip; 126), but excluding -1.
  2816. </p>
  2817. </dd>
  2818. <dt><code>T</code></dt>
  2819. <dd><p>A symbolic operand, or a 16-bit fragment of a got, tls, or pc-relative
  2820. reference.
  2821. </p>
  2822. </dd>
  2823. <dt><code>U</code></dt>
  2824. <dd><p>Memory operand except postincrement. This is roughly the same as
  2825. &lsquo;<samp>m</samp>&rsquo; when not used together with &lsquo;<samp>&lt;</samp>&rsquo; or &lsquo;<samp>&gt;</samp>&rsquo;.
  2826. </p>
  2827. </dd>
  2828. <dt><code>W</code></dt>
  2829. <dd><p>A 4-element vector constant with identical elements.
  2830. </p>
  2831. </dd>
  2832. <dt><code>Y</code></dt>
  2833. <dd><p>A 2-element vector constant with identical elements.
  2834. </p>
  2835. </dd>
  2836. </dl>
  2837. </dd>
  2838. <dt><em>Visium&mdash;<samp>config/visium/constraints.md</samp></em></dt>
  2839. <dd><dl compact="compact">
  2840. <dt><code>b</code></dt>
  2841. <dd><p>EAM register <code>mdb</code>
  2842. </p>
  2843. </dd>
  2844. <dt><code>c</code></dt>
  2845. <dd><p>EAM register <code>mdc</code>
  2846. </p>
  2847. </dd>
  2848. <dt><code>f</code></dt>
  2849. <dd><p>Floating point register
  2850. </p>
  2851. </dd>
  2852. <dt><code>l</code></dt>
  2853. <dd><p>General register, but not <code>r29</code>, <code>r30</code> and <code>r31</code>
  2854. </p>
  2855. </dd>
  2856. <dt><code>t</code></dt>
  2857. <dd><p>Register <code>r1</code>
  2858. </p>
  2859. </dd>
  2860. <dt><code>u</code></dt>
  2861. <dd><p>Register <code>r2</code>
  2862. </p>
  2863. </dd>
  2864. <dt><code>v</code></dt>
  2865. <dd><p>Register <code>r3</code>
  2866. </p>
  2867. </dd>
  2868. <dt><code>G</code></dt>
  2869. <dd><p>Floating-point constant 0.0
  2870. </p>
  2871. </dd>
  2872. <dt><code>J</code></dt>
  2873. <dd><p>Integer constant in the range 0 .. 65535 (16-bit immediate)
  2874. </p>
  2875. </dd>
  2876. <dt><code>K</code></dt>
  2877. <dd><p>Integer constant in the range 1 .. 31 (5-bit immediate)
  2878. </p>
  2879. </dd>
  2880. <dt><code>L</code></dt>
  2881. <dd><p>Integer constant in the range -65535 .. -1 (16-bit negative immediate)
  2882. </p>
  2883. </dd>
  2884. <dt><code>M</code></dt>
  2885. <dd><p>Integer constant -1
  2886. </p>
  2887. </dd>
  2888. <dt><code>O</code></dt>
  2889. <dd><p>Integer constant 0
  2890. </p>
  2891. </dd>
  2892. <dt><code>P</code></dt>
  2893. <dd><p>Integer constant 32
  2894. </p></dd>
  2895. </dl>
  2896. </dd>
  2897. <dt><em>x86 family&mdash;<samp>config/i386/constraints.md</samp></em></dt>
  2898. <dd><dl compact="compact">
  2899. <dt><code>R</code></dt>
  2900. <dd><p>Legacy register&mdash;the eight integer registers available on all
  2901. i386 processors (<code>a</code>, <code>b</code>, <code>c</code>, <code>d</code>,
  2902. <code>si</code>, <code>di</code>, <code>bp</code>, <code>sp</code>).
  2903. </p>
  2904. </dd>
  2905. <dt><code>q</code></dt>
  2906. <dd><p>Any register accessible as <code><var>r</var>l</code>. In 32-bit mode, <code>a</code>,
  2907. <code>b</code>, <code>c</code>, and <code>d</code>; in 64-bit mode, any integer register.
  2908. </p>
  2909. </dd>
  2910. <dt><code>Q</code></dt>
  2911. <dd><p>Any register accessible as <code><var>r</var>h</code>: <code>a</code>, <code>b</code>,
  2912. <code>c</code>, and <code>d</code>.
  2913. </p>
  2914. </dd>
  2915. <dt><code>a</code></dt>
  2916. <dd><p>The <code>a</code> register.
  2917. </p>
  2918. </dd>
  2919. <dt><code>b</code></dt>
  2920. <dd><p>The <code>b</code> register.
  2921. </p>
  2922. </dd>
  2923. <dt><code>c</code></dt>
  2924. <dd><p>The <code>c</code> register.
  2925. </p>
  2926. </dd>
  2927. <dt><code>d</code></dt>
  2928. <dd><p>The <code>d</code> register.
  2929. </p>
  2930. </dd>
  2931. <dt><code>S</code></dt>
  2932. <dd><p>The <code>si</code> register.
  2933. </p>
  2934. </dd>
  2935. <dt><code>D</code></dt>
  2936. <dd><p>The <code>di</code> register.
  2937. </p>
  2938. </dd>
  2939. <dt><code>A</code></dt>
  2940. <dd><p>The <code>a</code> and <code>d</code> registers. This class is used for instructions
  2941. that return double word results in the <code>ax:dx</code> register pair. Single
  2942. word values will be allocated either in <code>ax</code> or <code>dx</code>.
  2943. For example on i386 the following implements <code>rdtsc</code>:
  2944. </p>
  2945. <div class="smallexample">
  2946. <pre class="smallexample">unsigned long long rdtsc (void)
  2947. {
  2948. unsigned long long tick;
  2949. __asm__ __volatile__(&quot;rdtsc&quot;:&quot;=A&quot;(tick));
  2950. return tick;
  2951. }
  2952. </pre></div>
  2953. <p>This is not correct on x86-64 as it would allocate tick in either <code>ax</code>
  2954. or <code>dx</code>. You have to use the following variant instead:
  2955. </p>
  2956. <div class="smallexample">
  2957. <pre class="smallexample">unsigned long long rdtsc (void)
  2958. {
  2959. unsigned int tickl, tickh;
  2960. __asm__ __volatile__(&quot;rdtsc&quot;:&quot;=a&quot;(tickl),&quot;=d&quot;(tickh));
  2961. return ((unsigned long long)tickh &lt;&lt; 32)|tickl;
  2962. }
  2963. </pre></div>
  2964. </dd>
  2965. <dt><code>f</code></dt>
  2966. <dd><p>Any 80387 floating-point (stack) register.
  2967. </p>
  2968. </dd>
  2969. <dt><code>t</code></dt>
  2970. <dd><p>Top of 80387 floating-point stack (<code>%st(0)</code>).
  2971. </p>
  2972. </dd>
  2973. <dt><code>u</code></dt>
  2974. <dd><p>Second from top of 80387 floating-point stack (<code>%st(1)</code>).
  2975. </p>
  2976. </dd>
  2977. <dt><code>y</code></dt>
  2978. <dd><p>Any MMX register.
  2979. </p>
  2980. </dd>
  2981. <dt><code>x</code></dt>
  2982. <dd><p>Any SSE register.
  2983. </p>
  2984. </dd>
  2985. <dt><code>Yz</code></dt>
  2986. <dd><p>First SSE register (<code>%xmm0</code>).
  2987. </p>
  2988. </dd>
  2989. <dt><code>I</code></dt>
  2990. <dd><p>Integer constant in the range 0 &hellip; 31, for 32-bit shifts.
  2991. </p>
  2992. </dd>
  2993. <dt><code>J</code></dt>
  2994. <dd><p>Integer constant in the range 0 &hellip; 63, for 64-bit shifts.
  2995. </p>
  2996. </dd>
  2997. <dt><code>K</code></dt>
  2998. <dd><p>Signed 8-bit integer constant.
  2999. </p>
  3000. </dd>
  3001. <dt><code>L</code></dt>
  3002. <dd><p><code>0xFF</code> or <code>0xFFFF</code>, for andsi as a zero-extending move.
  3003. </p>
  3004. </dd>
  3005. <dt><code>M</code></dt>
  3006. <dd><p>0, 1, 2, or 3 (shifts for the <code>lea</code> instruction).
  3007. </p>
  3008. </dd>
  3009. <dt><code>N</code></dt>
  3010. <dd><p>Unsigned 8-bit integer constant (for <code>in</code> and <code>out</code>
  3011. instructions).
  3012. </p>
  3013. </dd>
  3014. <dt><code>G</code></dt>
  3015. <dd><p>Standard 80387 floating point constant.
  3016. </p>
  3017. </dd>
  3018. <dt><code>C</code></dt>
  3019. <dd><p>SSE constant zero operand.
  3020. </p>
  3021. </dd>
  3022. <dt><code>e</code></dt>
  3023. <dd><p>32-bit signed integer constant, or a symbolic reference known
  3024. to fit that range (for immediate operands in sign-extending x86-64
  3025. instructions).
  3026. </p>
  3027. </dd>
  3028. <dt><code>Z</code></dt>
  3029. <dd><p>32-bit unsigned integer constant, or a symbolic reference known
  3030. to fit that range (for immediate operands in zero-extending x86-64
  3031. instructions).
  3032. </p>
  3033. </dd>
  3034. </dl>
  3035. </dd>
  3036. <dt><em>Xstormy16&mdash;<samp>config/stormy16/stormy16.h</samp></em></dt>
  3037. <dd><dl compact="compact">
  3038. <dt><code>a</code></dt>
  3039. <dd><p>Register r0.
  3040. </p>
  3041. </dd>
  3042. <dt><code>b</code></dt>
  3043. <dd><p>Register r1.
  3044. </p>
  3045. </dd>
  3046. <dt><code>c</code></dt>
  3047. <dd><p>Register r2.
  3048. </p>
  3049. </dd>
  3050. <dt><code>d</code></dt>
  3051. <dd><p>Register r8.
  3052. </p>
  3053. </dd>
  3054. <dt><code>e</code></dt>
  3055. <dd><p>Registers r0 through r7.
  3056. </p>
  3057. </dd>
  3058. <dt><code>t</code></dt>
  3059. <dd><p>Registers r0 and r1.
  3060. </p>
  3061. </dd>
  3062. <dt><code>y</code></dt>
  3063. <dd><p>The carry register.
  3064. </p>
  3065. </dd>
  3066. <dt><code>z</code></dt>
  3067. <dd><p>Registers r8 and r9.
  3068. </p>
  3069. </dd>
  3070. <dt><code>I</code></dt>
  3071. <dd><p>A constant between 0 and 3 inclusive.
  3072. </p>
  3073. </dd>
  3074. <dt><code>J</code></dt>
  3075. <dd><p>A constant that has exactly one bit set.
  3076. </p>
  3077. </dd>
  3078. <dt><code>K</code></dt>
  3079. <dd><p>A constant that has exactly one bit clear.
  3080. </p>
  3081. </dd>
  3082. <dt><code>L</code></dt>
  3083. <dd><p>A constant between 0 and 255 inclusive.
  3084. </p>
  3085. </dd>
  3086. <dt><code>M</code></dt>
  3087. <dd><p>A constant between -255 and 0 inclusive.
  3088. </p>
  3089. </dd>
  3090. <dt><code>N</code></dt>
  3091. <dd><p>A constant between -3 and 0 inclusive.
  3092. </p>
  3093. </dd>
  3094. <dt><code>O</code></dt>
  3095. <dd><p>A constant between 1 and 4 inclusive.
  3096. </p>
  3097. </dd>
  3098. <dt><code>P</code></dt>
  3099. <dd><p>A constant between -4 and -1 inclusive.
  3100. </p>
  3101. </dd>
  3102. <dt><code>Q</code></dt>
  3103. <dd><p>A memory reference that is a stack push.
  3104. </p>
  3105. </dd>
  3106. <dt><code>R</code></dt>
  3107. <dd><p>A memory reference that is a stack pop.
  3108. </p>
  3109. </dd>
  3110. <dt><code>S</code></dt>
  3111. <dd><p>A memory reference that refers to a constant address of known value.
  3112. </p>
  3113. </dd>
  3114. <dt><code>T</code></dt>
  3115. <dd><p>The register indicated by Rx (not implemented yet).
  3116. </p>
  3117. </dd>
  3118. <dt><code>U</code></dt>
  3119. <dd><p>A constant that is not between 2 and 15 inclusive.
  3120. </p>
  3121. </dd>
  3122. <dt><code>Z</code></dt>
  3123. <dd><p>The constant 0.
  3124. </p>
  3125. </dd>
  3126. </dl>
  3127. </dd>
  3128. <dt><em>Xtensa&mdash;<samp>config/xtensa/constraints.md</samp></em></dt>
  3129. <dd><dl compact="compact">
  3130. <dt><code>a</code></dt>
  3131. <dd><p>General-purpose 32-bit register
  3132. </p>
  3133. </dd>
  3134. <dt><code>b</code></dt>
  3135. <dd><p>One-bit boolean register
  3136. </p>
  3137. </dd>
  3138. <dt><code>A</code></dt>
  3139. <dd><p>MAC16 40-bit accumulator register
  3140. </p>
  3141. </dd>
  3142. <dt><code>I</code></dt>
  3143. <dd><p>Signed 12-bit integer constant, for use in MOVI instructions
  3144. </p>
  3145. </dd>
  3146. <dt><code>J</code></dt>
  3147. <dd><p>Signed 8-bit integer constant, for use in ADDI instructions
  3148. </p>
  3149. </dd>
  3150. <dt><code>K</code></dt>
  3151. <dd><p>Integer constant valid for BccI instructions
  3152. </p>
  3153. </dd>
  3154. <dt><code>L</code></dt>
  3155. <dd><p>Unsigned constant valid for BccUI instructions
  3156. </p>
  3157. </dd>
  3158. </dl>
  3159. </dd>
  3160. </dl>
  3161. <hr>
  3162. <div class="header">
  3163. <p>
  3164. Previous: <a href="Modifiers.html#Modifiers" accesskey="p" rel="prev">Modifiers</a>, Up: <a href="Constraints.html#Constraints" accesskey="u" rel="up">Constraints</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  3165. </div>
  3166. </body>
  3167. </html>