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.
98 lines
5.1 KiB
HTML
98 lines
5.1 KiB
HTML
15 years ago
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>D30V-Chars - Using as</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
<meta name="description" content="Using as">
|
||
|
<meta name="generator" content="makeinfo 4.7">
|
||
|
<link title="Top" rel="start" href="index.html#Top">
|
||
|
<link rel="up" href="D30V_002dSyntax.html#D30V_002dSyntax" title="D30V-Syntax">
|
||
|
<link rel="prev" href="D30V_002dSubs.html#D30V_002dSubs" title="D30V-Subs">
|
||
|
<link rel="next" href="D30V_002dGuarded.html#D30V_002dGuarded" title="D30V-Guarded">
|
||
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
||
|
<!--
|
||
|
This file documents the GNU Assembler "as".
|
||
|
|
||
|
Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
|
||
|
2006, 2007 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.1
|
||
|
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''.
|
||
|
|
||
|
man end-->
|
||
|
<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; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="node">
|
||
|
<p>
|
||
|
<a name="D30V_002dChars"></a>Next: <a rel="next" accesskey="n" href="D30V_002dGuarded.html#D30V_002dGuarded">D30V-Guarded</a>,
|
||
|
Previous: <a rel="previous" accesskey="p" href="D30V_002dSubs.html#D30V_002dSubs">D30V-Subs</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="D30V_002dSyntax.html#D30V_002dSyntax">D30V-Syntax</a>
|
||
|
<hr><br>
|
||
|
</div>
|
||
|
|
||
|
<h5 class="subsubsection">9.9.2.3 Special Characters</h5>
|
||
|
|
||
|
<p><a name="index-line-comment-character_002c-D30V-758"></a><a name="index-D30V-line-comment-character-759"></a><span class="samp">;</span> and <span class="samp">#</span> are the line comment characters.
|
||
|
<a name="index-sub_002dinstruction-ordering_002c-D30V-760"></a><a name="index-D30V-sub_002dinstruction-ordering-761"></a>Sub-instructions may be executed in order, in reverse-order, or in parallel.
|
||
|
Instructions listed in the standard one-per-line format will be executed
|
||
|
sequentially unless you use the <span class="samp">-O</span> option.
|
||
|
|
||
|
<p>To specify the executing order, use the following symbols:
|
||
|
<dl>
|
||
|
<dt><span class="samp">-></span><dd>Sequential with instruction on the left first.
|
||
|
|
||
|
<br><dt><span class="samp"><-</span><dd>Sequential with instruction on the right first.
|
||
|
|
||
|
<br><dt><span class="samp">||</span><dd>Parallel
|
||
|
</dl>
|
||
|
|
||
|
<p>The D30V syntax allows either one instruction per line, one instruction per line with
|
||
|
the execution symbol, or two instructions per line. For example
|
||
|
<dl>
|
||
|
<dt><code>abs r2,r3 -> abs r4,r5</code><dd>Execute these sequentially. The instruction on the right is in the right
|
||
|
container and is executed second.
|
||
|
|
||
|
<br><dt><code>abs r2,r3 <- abs r4,r5</code><dd>Execute these reverse-sequentially. The instruction on the right is in the right
|
||
|
container, and is executed first.
|
||
|
|
||
|
<br><dt><code>abs r2,r3 || abs r4,r5</code><dd>Execute these in parallel.
|
||
|
|
||
|
<br><dt><code>ldw r2,@(r3,r4) ||</code><dt><code>mulx r6,r8,r9</code><dd>Two-line format. Execute these in parallel.
|
||
|
|
||
|
<br><dt><code>mulx a0,r8,r9</code><dt><code>stw r2,@(r3,r4)</code><dd>Two-line format. Execute these sequentially unless <span class="samp">-O</span> option is
|
||
|
used. If the <span class="samp">-O</span> option is used, the assembler will determine if
|
||
|
the instructions could be done in parallel (the above two instructions
|
||
|
can be done in parallel), and if so, emit them as parallel instructions.
|
||
|
The assembler will put them in the proper containers. In the above
|
||
|
example, the assembler will put the <span class="samp">stw</span> instruction in left
|
||
|
container and the <span class="samp">mulx</span> instruction in the right container.
|
||
|
|
||
|
<br><dt><code>stw r2,@(r3,r4) -></code><dt><code>mulx a0,r8,r9</code><dd>Two-line format. Execute the <span class="samp">stw</span> instruction followed by the
|
||
|
<span class="samp">mulx</span> instruction sequentially. The first instruction goes in the
|
||
|
left container and the second instruction goes into right container.
|
||
|
The assembler will give an error if the machine ordering constraints are
|
||
|
violated.
|
||
|
|
||
|
<br><dt><code>stw r2,@(r3,r4) <-</code><dt><code>mulx a0,r8,r9</code><dd>Same as previous example, except that the <span class="samp">mulx</span> instruction is
|
||
|
executed before the <span class="samp">stw</span> instruction.
|
||
|
</dl>
|
||
|
|
||
|
<p><a name="index-symbol-names_002c-_0040samp_007b_0024_007d-in-762"></a><a name="index-_0040code_007b_0024_007d-in-symbol-names-763"></a>Since <span class="samp">$</span> has no special meaning, you may use it in symbol names.
|
||
|
|
||
|
</body></html>
|
||
|
|