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.

222 lines
11KB

  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>RX Built-in Functions (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="RX Built-in Functions (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="RX Built-in Functions (Using the GNU Compiler Collection (GCC))">
  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="Target-Builtins.html#Target-Builtins" rel="up" title="Target Builtins">
  30. <link href="S_002f390-System-z-Built_002din-Functions.html#S_002f390-System-z-Built_002din-Functions" rel="next" title="S/390 System z Built-in Functions">
  31. <link href="PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions.html#PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions" rel="prev" title="PowerPC Matrix-Multiply Assist Built-in Functions">
  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="RX-Built_002din-Functions"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="S_002f390-System-z-Built_002din-Functions.html#S_002f390-System-z-Built_002din-Functions" accesskey="n" rel="next">S/390 System z Built-in Functions</a>, Previous: <a href="PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions.html#PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions" accesskey="p" rel="prev">PowerPC Matrix-Multiply Assist Built-in Functions</a>, Up: <a href="Target-Builtins.html#Target-Builtins" accesskey="u" rel="up">Target Builtins</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="RX-Built_002din-Functions-1"></a>
  68. <h4 class="subsection">6.60.27 RX Built-in Functions</h4>
  69. <p>GCC supports some of the RX instructions which cannot be expressed in
  70. the C programming language via the use of built-in functions. The
  71. following functions are supported:
  72. </p>
  73. <dl>
  74. <dt><a name="index-_005f_005fbuiltin_005frx_005fbrk"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_brk</strong> <em>(void)</em></dt>
  75. <dd><p>Generates the <code>brk</code> machine instruction.
  76. </p></dd></dl>
  77. <dl>
  78. <dt><a name="index-_005f_005fbuiltin_005frx_005fclrpsw"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_clrpsw</strong> <em>(int)</em></dt>
  79. <dd><p>Generates the <code>clrpsw</code> machine instruction to clear the specified
  80. bit in the processor status word.
  81. </p></dd></dl>
  82. <dl>
  83. <dt><a name="index-_005f_005fbuiltin_005frx_005fint"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_int</strong> <em>(int)</em></dt>
  84. <dd><p>Generates the <code>int</code> machine instruction to generate an interrupt
  85. with the specified value.
  86. </p></dd></dl>
  87. <dl>
  88. <dt><a name="index-_005f_005fbuiltin_005frx_005fmachi"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_machi</strong> <em>(int, int)</em></dt>
  89. <dd><p>Generates the <code>machi</code> machine instruction to add the result of
  90. multiplying the top 16 bits of the two arguments into the
  91. accumulator.
  92. </p></dd></dl>
  93. <dl>
  94. <dt><a name="index-_005f_005fbuiltin_005frx_005fmaclo"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_maclo</strong> <em>(int, int)</em></dt>
  95. <dd><p>Generates the <code>maclo</code> machine instruction to add the result of
  96. multiplying the bottom 16 bits of the two arguments into the
  97. accumulator.
  98. </p></dd></dl>
  99. <dl>
  100. <dt><a name="index-_005f_005fbuiltin_005frx_005fmulhi"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mulhi</strong> <em>(int, int)</em></dt>
  101. <dd><p>Generates the <code>mulhi</code> machine instruction to place the result of
  102. multiplying the top 16 bits of the two arguments into the
  103. accumulator.
  104. </p></dd></dl>
  105. <dl>
  106. <dt><a name="index-_005f_005fbuiltin_005frx_005fmullo"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mullo</strong> <em>(int, int)</em></dt>
  107. <dd><p>Generates the <code>mullo</code> machine instruction to place the result of
  108. multiplying the bottom 16 bits of the two arguments into the
  109. accumulator.
  110. </p></dd></dl>
  111. <dl>
  112. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvfachi"></a>Built-in Function: <em>int</em> <strong>__builtin_rx_mvfachi</strong> <em>(void)</em></dt>
  113. <dd><p>Generates the <code>mvfachi</code> machine instruction to read the top
  114. 32 bits of the accumulator.
  115. </p></dd></dl>
  116. <dl>
  117. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvfacmi"></a>Built-in Function: <em>int</em> <strong>__builtin_rx_mvfacmi</strong> <em>(void)</em></dt>
  118. <dd><p>Generates the <code>mvfacmi</code> machine instruction to read the middle
  119. 32 bits of the accumulator.
  120. </p></dd></dl>
  121. <dl>
  122. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvfc"></a>Built-in Function: <em>int</em> <strong>__builtin_rx_mvfc</strong> <em>(int)</em></dt>
  123. <dd><p>Generates the <code>mvfc</code> machine instruction which reads the control
  124. register specified in its argument and returns its value.
  125. </p></dd></dl>
  126. <dl>
  127. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvtachi"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mvtachi</strong> <em>(int)</em></dt>
  128. <dd><p>Generates the <code>mvtachi</code> machine instruction to set the top
  129. 32 bits of the accumulator.
  130. </p></dd></dl>
  131. <dl>
  132. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvtaclo"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mvtaclo</strong> <em>(int)</em></dt>
  133. <dd><p>Generates the <code>mvtaclo</code> machine instruction to set the bottom
  134. 32 bits of the accumulator.
  135. </p></dd></dl>
  136. <dl>
  137. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvtc"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mvtc</strong> <em>(int reg, int val)</em></dt>
  138. <dd><p>Generates the <code>mvtc</code> machine instruction which sets control
  139. register number <code>reg</code> to <code>val</code>.
  140. </p></dd></dl>
  141. <dl>
  142. <dt><a name="index-_005f_005fbuiltin_005frx_005fmvtipl"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_mvtipl</strong> <em>(int)</em></dt>
  143. <dd><p>Generates the <code>mvtipl</code> machine instruction set the interrupt
  144. priority level.
  145. </p></dd></dl>
  146. <dl>
  147. <dt><a name="index-_005f_005fbuiltin_005frx_005fracw"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_racw</strong> <em>(int)</em></dt>
  148. <dd><p>Generates the <code>racw</code> machine instruction to round the accumulator
  149. according to the specified mode.
  150. </p></dd></dl>
  151. <dl>
  152. <dt><a name="index-_005f_005fbuiltin_005frx_005frevw"></a>Built-in Function: <em>int</em> <strong>__builtin_rx_revw</strong> <em>(int)</em></dt>
  153. <dd><p>Generates the <code>revw</code> machine instruction which swaps the bytes in
  154. the argument so that bits 0&ndash;7 now occupy bits 8&ndash;15 and vice versa,
  155. and also bits 16&ndash;23 occupy bits 24&ndash;31 and vice versa.
  156. </p></dd></dl>
  157. <dl>
  158. <dt><a name="index-_005f_005fbuiltin_005frx_005frmpa"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_rmpa</strong> <em>(void)</em></dt>
  159. <dd><p>Generates the <code>rmpa</code> machine instruction which initiates a
  160. repeated multiply and accumulate sequence.
  161. </p></dd></dl>
  162. <dl>
  163. <dt><a name="index-_005f_005fbuiltin_005frx_005fround"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_round</strong> <em>(float)</em></dt>
  164. <dd><p>Generates the <code>round</code> machine instruction which returns the
  165. floating-point argument rounded according to the current rounding mode
  166. set in the floating-point status word register.
  167. </p></dd></dl>
  168. <dl>
  169. <dt><a name="index-_005f_005fbuiltin_005frx_005fsat"></a>Built-in Function: <em>int</em> <strong>__builtin_rx_sat</strong> <em>(int)</em></dt>
  170. <dd><p>Generates the <code>sat</code> machine instruction which returns the
  171. saturated value of the argument.
  172. </p></dd></dl>
  173. <dl>
  174. <dt><a name="index-_005f_005fbuiltin_005frx_005fsetpsw"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_setpsw</strong> <em>(int)</em></dt>
  175. <dd><p>Generates the <code>setpsw</code> machine instruction to set the specified
  176. bit in the processor status word.
  177. </p></dd></dl>
  178. <dl>
  179. <dt><a name="index-_005f_005fbuiltin_005frx_005fwait"></a>Built-in Function: <em>void</em> <strong>__builtin_rx_wait</strong> <em>(void)</em></dt>
  180. <dd><p>Generates the <code>wait</code> machine instruction.
  181. </p></dd></dl>
  182. <hr>
  183. <div class="header">
  184. <p>
  185. Next: <a href="S_002f390-System-z-Built_002din-Functions.html#S_002f390-System-z-Built_002din-Functions" accesskey="n" rel="next">S/390 System z Built-in Functions</a>, Previous: <a href="PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions.html#PowerPC-Matrix_002dMultiply-Assist-Built_002din-Functions" accesskey="p" rel="prev">PowerPC Matrix-Multiply Assist Built-in Functions</a>, Up: <a href="Target-Builtins.html#Target-Builtins" accesskey="u" rel="up">Target Builtins</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>
  186. </div>
  187. </body>
  188. </html>