Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

188 lines
13KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>s390 Aliases (Using as)</title>
  16. <meta name="description" content="s390 Aliases (Using as)">
  17. <meta name="keywords" content="s390 Aliases (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="s390-Syntax.html#s390-Syntax" rel="up" title="s390 Syntax">
  25. <link href="s390-Operand-Modifier.html#s390-Operand-Modifier" rel="next" title="s390 Operand Modifier">
  26. <link href="s390-Formats.html#s390-Formats" rel="prev" title="s390 Formats">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="s390-Aliases"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="s390-Operand-Modifier.html#s390-Operand-Modifier" accesskey="n" rel="next">s390 Operand Modifier</a>, Previous: <a href="s390-Formats.html#s390-Formats" accesskey="p" rel="prev">s390 Formats</a>, Up: <a href="s390-Syntax.html#s390-Syntax" accesskey="u" rel="up">s390 Syntax</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="Instruction-Aliases"></a>
  63. <h4 class="subsubsection">9.41.3.5 Instruction Aliases</h4>
  64. <a name="index-instruction-aliases_002c-s390"></a>
  65. <a name="index-s390-instruction-aliases"></a>
  66. <p>A specific bit pattern can have multiple mnemonics, for example
  67. the bit pattern &lsquo;<samp>0xa7000000</samp>&rsquo; has the mnemonics &lsquo;<samp>tmh</samp>&rsquo; and
  68. &lsquo;<samp>tmlh</samp>&rsquo;. In addition, there are a number of mnemonics recognized by
  69. <code>as</code> that are not present in the Principles of Operation.
  70. These are the short forms of the branch instructions, where the condition
  71. code mask operand is encoded in the mnemonic. This is relevant for the
  72. branch instructions, the compare and branch instructions, and the
  73. compare and trap instructions.
  74. </p>
  75. <p>For the branch instructions there are 20 condition code strings that can
  76. be used as part of the mnemonic in place of a mask operand in the instruction
  77. format:
  78. </p>
  79. <div class="display">
  80. <table>
  81. <thead><tr><th width="30%"><pre class="display">instruction</pre></th><th width="30%"><pre class="display">short form</pre></th></tr></thead>
  82. <tr><td width="30%"><pre class="display">bcr M1,R2</pre></td><td width="30%"><pre class="display">b&lt;m&gt;r R2</pre></td></tr>
  83. <tr><td width="30%"><pre class="display">bc M1,D2(X2,B2)</pre></td><td width="30%"><pre class="display">b&lt;m&gt; D2(X2,B2)</pre></td></tr>
  84. <tr><td width="30%"><pre class="display">brc M1,I2</pre></td><td width="30%"><pre class="display">j&lt;m&gt; I2</pre></td></tr>
  85. <tr><td width="30%"><pre class="display">brcl M1,I2</pre></td><td width="30%"><pre class="display">jg&lt;m&gt; I2</pre></td></tr>
  86. </table>
  87. </div>
  88. <p>In the mnemonic for a branch instruction the condition code string &lt;m&gt;
  89. can be any of the following:
  90. </p>
  91. <div class="display">
  92. <table>
  93. <tr><td><pre class="display">o</pre></td><td><pre class="display">jump on overflow / if ones</pre></td></tr>
  94. <tr><td><pre class="display">h</pre></td><td><pre class="display">jump on A high</pre></td></tr>
  95. <tr><td><pre class="display">p</pre></td><td><pre class="display">jump on plus</pre></td></tr>
  96. <tr><td><pre class="display">nle</pre></td><td><pre class="display">jump on not low or equal</pre></td></tr>
  97. <tr><td><pre class="display">l</pre></td><td><pre class="display">jump on A low</pre></td></tr>
  98. <tr><td><pre class="display">m</pre></td><td><pre class="display">jump on minus</pre></td></tr>
  99. <tr><td><pre class="display">nhe</pre></td><td><pre class="display">jump on not high or equal</pre></td></tr>
  100. <tr><td><pre class="display">lh</pre></td><td><pre class="display">jump on low or high</pre></td></tr>
  101. <tr><td><pre class="display">ne</pre></td><td><pre class="display">jump on A not equal B</pre></td></tr>
  102. <tr><td><pre class="display">nz</pre></td><td><pre class="display">jump on not zero / if not zeros</pre></td></tr>
  103. <tr><td><pre class="display">e</pre></td><td><pre class="display">jump on A equal B</pre></td></tr>
  104. <tr><td><pre class="display">z</pre></td><td><pre class="display">jump on zero / if zeroes</pre></td></tr>
  105. <tr><td><pre class="display">nlh</pre></td><td><pre class="display">jump on not low or high</pre></td></tr>
  106. <tr><td><pre class="display">he</pre></td><td><pre class="display">jump on high or equal</pre></td></tr>
  107. <tr><td><pre class="display">nl</pre></td><td><pre class="display">jump on A not low</pre></td></tr>
  108. <tr><td><pre class="display">nm</pre></td><td><pre class="display">jump on not minus / if not mixed</pre></td></tr>
  109. <tr><td><pre class="display">le</pre></td><td><pre class="display">jump on low or equal</pre></td></tr>
  110. <tr><td><pre class="display">nh</pre></td><td><pre class="display">jump on A not high</pre></td></tr>
  111. <tr><td><pre class="display">np</pre></td><td><pre class="display">jump on not plus</pre></td></tr>
  112. <tr><td><pre class="display">no</pre></td><td><pre class="display">jump on not overflow / if not ones</pre></td></tr>
  113. </table>
  114. </div>
  115. <p>For the compare and branch, and compare and trap instructions there
  116. are 12 condition code strings that can be used as part of the mnemonic in
  117. place of a mask operand in the instruction format:
  118. </p>
  119. <div class="display">
  120. <table>
  121. <thead><tr><th width="40%"><pre class="display">instruction</pre></th><th width="40%"><pre class="display">short form</pre></th></tr></thead>
  122. <tr><td width="40%"><pre class="display">crb R1,R2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">crb&lt;m&gt; R1,R2,D4(B4)</pre></td></tr>
  123. <tr><td width="40%"><pre class="display">cgrb R1,R2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">cgrb&lt;m&gt; R1,R2,D4(B4)</pre></td></tr>
  124. <tr><td width="40%"><pre class="display">crj R1,R2,M3,I4</pre></td><td width="40%"><pre class="display">crj&lt;m&gt; R1,R2,I4</pre></td></tr>
  125. <tr><td width="40%"><pre class="display">cgrj R1,R2,M3,I4</pre></td><td width="40%"><pre class="display">cgrj&lt;m&gt; R1,R2,I4</pre></td></tr>
  126. <tr><td width="40%"><pre class="display">cib R1,I2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">cib&lt;m&gt; R1,I2,D4(B4)</pre></td></tr>
  127. <tr><td width="40%"><pre class="display">cgib R1,I2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">cgib&lt;m&gt; R1,I2,D4(B4)</pre></td></tr>
  128. <tr><td width="40%"><pre class="display">cij R1,I2,M3,I4</pre></td><td width="40%"><pre class="display">cij&lt;m&gt; R1,I2,I4</pre></td></tr>
  129. <tr><td width="40%"><pre class="display">cgij R1,I2,M3,I4</pre></td><td width="40%"><pre class="display">cgij&lt;m&gt; R1,I2,I4</pre></td></tr>
  130. <tr><td width="40%"><pre class="display">crt R1,R2,M3</pre></td><td width="40%"><pre class="display">crt&lt;m&gt; R1,R2</pre></td></tr>
  131. <tr><td width="40%"><pre class="display">cgrt R1,R2,M3</pre></td><td width="40%"><pre class="display">cgrt&lt;m&gt; R1,R2</pre></td></tr>
  132. <tr><td width="40%"><pre class="display">cit R1,I2,M3</pre></td><td width="40%"><pre class="display">cit&lt;m&gt; R1,I2</pre></td></tr>
  133. <tr><td width="40%"><pre class="display">cgit R1,I2,M3</pre></td><td width="40%"><pre class="display">cgit&lt;m&gt; R1,I2</pre></td></tr>
  134. <tr><td width="40%"><pre class="display">clrb R1,R2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">clrb&lt;m&gt; R1,R2,D4(B4)</pre></td></tr>
  135. <tr><td width="40%"><pre class="display">clgrb R1,R2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">clgrb&lt;m&gt; R1,R2,D4(B4)</pre></td></tr>
  136. <tr><td width="40%"><pre class="display">clrj R1,R2,M3,I4</pre></td><td width="40%"><pre class="display">clrj&lt;m&gt; R1,R2,I4</pre></td></tr>
  137. <tr><td width="40%"><pre class="display">clgrj R1,R2,M3,I4</pre></td><td width="40%"><pre class="display">clgrj&lt;m&gt; R1,R2,I4</pre></td></tr>
  138. <tr><td width="40%"><pre class="display">clib R1,I2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">clib&lt;m&gt; R1,I2,D4(B4)</pre></td></tr>
  139. <tr><td width="40%"><pre class="display">clgib R1,I2,M3,D4(B4)</pre></td><td width="40%"><pre class="display">clgib&lt;m&gt; R1,I2,D4(B4)</pre></td></tr>
  140. <tr><td width="40%"><pre class="display">clij R1,I2,M3,I4</pre></td><td width="40%"><pre class="display">clij&lt;m&gt; R1,I2,I4</pre></td></tr>
  141. <tr><td width="40%"><pre class="display">clgij R1,I2,M3,I4</pre></td><td width="40%"><pre class="display">clgij&lt;m&gt; R1,I2,I4</pre></td></tr>
  142. <tr><td width="40%"><pre class="display">clrt R1,R2,M3</pre></td><td width="40%"><pre class="display">clrt&lt;m&gt; R1,R2</pre></td></tr>
  143. <tr><td width="40%"><pre class="display">clgrt R1,R2,M3</pre></td><td width="40%"><pre class="display">clgrt&lt;m&gt; R1,R2</pre></td></tr>
  144. <tr><td width="40%"><pre class="display">clfit R1,I2,M3</pre></td><td width="40%"><pre class="display">clfit&lt;m&gt; R1,I2</pre></td></tr>
  145. <tr><td width="40%"><pre class="display">clgit R1,I2,M3</pre></td><td width="40%"><pre class="display">clgit&lt;m&gt; R1,I2</pre></td></tr>
  146. </table>
  147. </div>
  148. <p>In the mnemonic for a compare and branch and compare and trap instruction
  149. the condition code string &lt;m&gt; can be any of the following:
  150. </p>
  151. <div class="display">
  152. <table>
  153. <tr><td><pre class="display">h</pre></td><td><pre class="display">jump on A high</pre></td></tr>
  154. <tr><td><pre class="display">nle</pre></td><td><pre class="display">jump on not low or equal</pre></td></tr>
  155. <tr><td><pre class="display">l</pre></td><td><pre class="display">jump on A low</pre></td></tr>
  156. <tr><td><pre class="display">nhe</pre></td><td><pre class="display">jump on not high or equal</pre></td></tr>
  157. <tr><td><pre class="display">ne</pre></td><td><pre class="display">jump on A not equal B</pre></td></tr>
  158. <tr><td><pre class="display">lh</pre></td><td><pre class="display">jump on low or high</pre></td></tr>
  159. <tr><td><pre class="display">e</pre></td><td><pre class="display">jump on A equal B</pre></td></tr>
  160. <tr><td><pre class="display">nlh</pre></td><td><pre class="display">jump on not low or high</pre></td></tr>
  161. <tr><td><pre class="display">nl</pre></td><td><pre class="display">jump on A not low</pre></td></tr>
  162. <tr><td><pre class="display">he</pre></td><td><pre class="display">jump on high or equal</pre></td></tr>
  163. <tr><td><pre class="display">nh</pre></td><td><pre class="display">jump on A not high</pre></td></tr>
  164. <tr><td><pre class="display">le</pre></td><td><pre class="display">jump on low or equal</pre></td></tr>
  165. </table>
  166. </div>
  167. <hr>
  168. <div class="header">
  169. <p>
  170. Next: <a href="s390-Operand-Modifier.html#s390-Operand-Modifier" accesskey="n" rel="next">s390 Operand Modifier</a>, Previous: <a href="s390-Formats.html#s390-Formats" accesskey="p" rel="prev">s390 Formats</a>, Up: <a href="s390-Syntax.html#s390-Syntax" accesskey="u" rel="up">s390 Syntax</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  171. </div>
  172. </body>
  173. </html>