You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3442 lines
86KB

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