You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
11 KiB
HTML
150 lines
11 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>s390 Aliases - Using as</title>
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
<meta name="description" content="Using as">
|
|
<meta name="generator" content="makeinfo 4.13">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="s390-Syntax.html#s390-Syntax" title="s390 Syntax">
|
|
<link rel="prev" href="s390-Formats.html#s390-Formats" title="s390 Formats">
|
|
<link rel="next" href="s390-Operand-Modifier.html#s390-Operand-Modifier" title="s390 Operand Modifier">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<!--
|
|
This file documents the GNU Assembler "as".
|
|
|
|
Copyright (C) 1991-2015 Free Software Foundation, Inc.
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3
|
|
or any later version published by the Free Software Foundation;
|
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
|
Back-Cover Texts. A copy of the license is included in the
|
|
section entitled ``GNU Free Documentation License''.
|
|
|
|
-->
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
<div class="node">
|
|
<a name="s390-Aliases"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="s390-Operand-Modifier.html#s390-Operand-Modifier">s390 Operand Modifier</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="s390-Formats.html#s390-Formats">s390 Formats</a>,
|
|
Up: <a rel="up" accesskey="u" href="s390-Syntax.html#s390-Syntax">s390 Syntax</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h5 class="subsubsection">9.38.3.5 Instruction Aliases</h5>
|
|
|
|
<p><a name="index-instruction-aliases_002c-s390-1899"></a><a name="index-s390-instruction-aliases-1900"></a>
|
|
A specific bit pattern can have multiple mnemonics, for example
|
|
the bit pattern ‘<samp><span class="samp">0xa7000000</span></samp>’ has the mnemonics ‘<samp><span class="samp">tmh</span></samp>’ and
|
|
‘<samp><span class="samp">tmlh</span></samp>’. In addition, there are a number of mnemonics recognized by
|
|
<code>as</code> that are not present in the Principles of Operation.
|
|
These are the short forms of the branch instructions, where the condition
|
|
code mask operand is encoded in the mnemonic. This is relevant for the
|
|
branch instructions, the compare and branch instructions, and the
|
|
compare and trap instructions.
|
|
|
|
<p>For the branch instructions there are 20 condition code strings that can
|
|
be used as part of the mnemonic in place of a mask operand in the instruction
|
|
format:
|
|
|
|
<pre class="display">
|
|
<p><table summary=""><tr align="left"><th valign="top" width="30%">instruction </th><th valign="top" width="30%">short form
|
|
<br></th></tr><tr align="left"><td valign="top" width="30%">bcr M1,R2 </td><td valign="top" width="30%">b<m>r R2
|
|
<br></td></tr><tr align="left"><td valign="top" width="30%">bc M1,D2(X2,B2) </td><td valign="top" width="30%">b<m> D2(X2,B2)
|
|
<br></td></tr><tr align="left"><td valign="top" width="30%">brc M1,I2 </td><td valign="top" width="30%">j<m> I2
|
|
<br></td></tr><tr align="left"><td valign="top" width="30%">brcl M1,I2 </td><td valign="top" width="30%">jg<m> I2
|
|
<br></td></tr></table>
|
|
</pre>
|
|
<p>In the mnemonic for a branch instruction the condition code string <m>
|
|
can be any of the following:
|
|
|
|
<pre class="display">
|
|
<p><table summary=""><tr align="left"><td valign="top">o </td><td valign="top">jump on overflow / if ones
|
|
<br></td></tr><tr align="left"><td valign="top">h </td><td valign="top">jump on A high
|
|
<br></td></tr><tr align="left"><td valign="top">p </td><td valign="top">jump on plus
|
|
<br></td></tr><tr align="left"><td valign="top">nle </td><td valign="top">jump on not low or equal
|
|
<br></td></tr><tr align="left"><td valign="top">l </td><td valign="top">jump on A low
|
|
<br></td></tr><tr align="left"><td valign="top">m </td><td valign="top">jump on minus
|
|
<br></td></tr><tr align="left"><td valign="top">nhe </td><td valign="top">jump on not high or equal
|
|
<br></td></tr><tr align="left"><td valign="top">lh </td><td valign="top">jump on low or high
|
|
<br></td></tr><tr align="left"><td valign="top">ne </td><td valign="top">jump on A not equal B
|
|
<br></td></tr><tr align="left"><td valign="top">nz </td><td valign="top">jump on not zero / if not zeros
|
|
<br></td></tr><tr align="left"><td valign="top">e </td><td valign="top">jump on A equal B
|
|
<br></td></tr><tr align="left"><td valign="top">z </td><td valign="top">jump on zero / if zeroes
|
|
<br></td></tr><tr align="left"><td valign="top">nlh </td><td valign="top">jump on not low or high
|
|
<br></td></tr><tr align="left"><td valign="top">he </td><td valign="top">jump on high or equal
|
|
<br></td></tr><tr align="left"><td valign="top">nl </td><td valign="top">jump on A not low
|
|
<br></td></tr><tr align="left"><td valign="top">nm </td><td valign="top">jump on not minus / if not mixed
|
|
<br></td></tr><tr align="left"><td valign="top">le </td><td valign="top">jump on low or equal
|
|
<br></td></tr><tr align="left"><td valign="top">nh </td><td valign="top">jump on A not high
|
|
<br></td></tr><tr align="left"><td valign="top">np </td><td valign="top">jump on not plus
|
|
<br></td></tr><tr align="left"><td valign="top">no </td><td valign="top">jump on not overflow / if not ones
|
|
<br></td></tr></table>
|
|
</pre>
|
|
<p>For the compare and branch, and compare and trap instructions there
|
|
are 12 condition code strings that can be used as part of the mnemonic in
|
|
place of a mask operand in the instruction format:
|
|
|
|
<pre class="display">
|
|
<p><table summary=""><tr align="left"><th valign="top" width="40%">instruction </th><th valign="top" width="40%">short form
|
|
<br></th></tr><tr align="left"><td valign="top" width="40%">crb R1,R2,M3,D4(B4) </td><td valign="top" width="40%">crb<m> R1,R2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgrb R1,R2,M3,D4(B4) </td><td valign="top" width="40%">cgrb<m> R1,R2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">crj R1,R2,M3,I4 </td><td valign="top" width="40%">crj<m> R1,R2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgrj R1,R2,M3,I4 </td><td valign="top" width="40%">cgrj<m> R1,R2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cib R1,I2,M3,D4(B4) </td><td valign="top" width="40%">cib<m> R1,I2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgib R1,I2,M3,D4(B4) </td><td valign="top" width="40%">cgib<m> R1,I2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cij R1,I2,M3,I4 </td><td valign="top" width="40%">cij<m> R1,I2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgij R1,I2,M3,I4 </td><td valign="top" width="40%">cgij<m> R1,I2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">crt R1,R2,M3 </td><td valign="top" width="40%">crt<m> R1,R2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgrt R1,R2,M3 </td><td valign="top" width="40%">cgrt<m> R1,R2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cit R1,I2,M3 </td><td valign="top" width="40%">cit<m> R1,I2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">cgit R1,I2,M3 </td><td valign="top" width="40%">cgit<m> R1,I2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clrb R1,R2,M3,D4(B4) </td><td valign="top" width="40%">clrb<m> R1,R2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgrb R1,R2,M3,D4(B4) </td><td valign="top" width="40%">clgrb<m> R1,R2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clrj R1,R2,M3,I4 </td><td valign="top" width="40%">clrj<m> R1,R2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgrj R1,R2,M3,I4 </td><td valign="top" width="40%">clgrj<m> R1,R2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clib R1,I2,M3,D4(B4) </td><td valign="top" width="40%">clib<m> R1,I2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgib R1,I2,M3,D4(B4) </td><td valign="top" width="40%">clgib<m> R1,I2,D4(B4)
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clij R1,I2,M3,I4 </td><td valign="top" width="40%">clij<m> R1,I2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgij R1,I2,M3,I4 </td><td valign="top" width="40%">clgij<m> R1,I2,I4
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clrt R1,R2,M3 </td><td valign="top" width="40%">clrt<m> R1,R2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgrt R1,R2,M3 </td><td valign="top" width="40%">clgrt<m> R1,R2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clfit R1,I2,M3 </td><td valign="top" width="40%">clfit<m> R1,I2
|
|
<br></td></tr><tr align="left"><td valign="top" width="40%">clgit R1,I2,M3 </td><td valign="top" width="40%">clgit<m> R1,I2
|
|
<br></td></tr></table>
|
|
</pre>
|
|
<p>In the mnemonic for a compare and branch and compare and trap instruction
|
|
the condition code string <m> can be any of the following:
|
|
|
|
<pre class="display">
|
|
<p><table summary=""><tr align="left"><td valign="top">h </td><td valign="top">jump on A high
|
|
<br></td></tr><tr align="left"><td valign="top">nle </td><td valign="top">jump on not low or equal
|
|
<br></td></tr><tr align="left"><td valign="top">l </td><td valign="top">jump on A low
|
|
<br></td></tr><tr align="left"><td valign="top">nhe </td><td valign="top">jump on not high or equal
|
|
<br></td></tr><tr align="left"><td valign="top">ne </td><td valign="top">jump on A not equal B
|
|
<br></td></tr><tr align="left"><td valign="top">lh </td><td valign="top">jump on low or high
|
|
<br></td></tr><tr align="left"><td valign="top">e </td><td valign="top">jump on A equal B
|
|
<br></td></tr><tr align="left"><td valign="top">nlh </td><td valign="top">jump on not low or high
|
|
<br></td></tr><tr align="left"><td valign="top">nl </td><td valign="top">jump on A not low
|
|
<br></td></tr><tr align="left"><td valign="top">he </td><td valign="top">jump on high or equal
|
|
<br></td></tr><tr align="left"><td valign="top">nh </td><td valign="top">jump on A not high
|
|
<br></td></tr><tr align="left"><td valign="top">le </td><td valign="top">jump on low or equal
|
|
<br></td></tr></table>
|
|
</pre>
|
|
</body></html>
|
|
|