mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
Fix runaway <tt> element and section ordering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16c469e660
commit
3fa91b08a4
@ -2742,6 +2742,44 @@ If the <tt>value</tt> was non-zero, the bool result will be <tt>true</tt>.</p>
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- _______________________________________________________________________ -->
|
||||||
|
<div class="doc_subsubsection">
|
||||||
|
<a name="i_fptrunc">'<tt>fptrunc .. to</tt>' Instruction</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="doc_text">
|
||||||
|
|
||||||
|
<h5>Syntax:</h5>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<result> = fptrunc <ty> <value> to <ty2> <i>; yields ty2</i>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<h5>Overview:</h5>
|
||||||
|
<p>The '<tt>fptrunc</tt>' instruction truncates <tt>value</tt> to type
|
||||||
|
<tt>ty2</tt>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h5>Arguments:</h5>
|
||||||
|
<p>The '<tt>fptrunc</tt>' instruction takes a <a href="#t_floating">floating
|
||||||
|
point</a> value to cast and a <a href="#t_floating">floating point</a> type to
|
||||||
|
cast it to. The size of <tt>value</tt> must be larger than the size of
|
||||||
|
<tt>ty2</tt>. This implies that <tt>fptrunc</tt> cannot be used to make a
|
||||||
|
<i>no-op cast</i>.</p>
|
||||||
|
|
||||||
|
<h5>Semantics:</h5>
|
||||||
|
<p> The '<tt>fptrunc</tt>' instruction converts a
|
||||||
|
<a href="#t_floating">floating point</a> value from a larger type to a smaller
|
||||||
|
type. If the value cannot fit within the destination type, <tt>ty2</tt>, then
|
||||||
|
the results are undefined.</p>
|
||||||
|
|
||||||
|
<h5>Example:</h5>
|
||||||
|
<pre>
|
||||||
|
%X = fptrunc double 123.0 to float <i>; yields float:123.0</i>
|
||||||
|
%Y = fptrunc double 1.0E+300 to float <i>; yields undefined</i>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- _______________________________________________________________________ -->
|
<!-- _______________________________________________________________________ -->
|
||||||
<div class="doc_subsubsection">
|
<div class="doc_subsubsection">
|
||||||
<a name="i_fpext">'<tt>fpext .. to</tt>' Instruction</a>
|
<a name="i_fpext">'<tt>fpext .. to</tt>' Instruction</a>
|
||||||
@ -2775,44 +2813,6 @@ change.</p>
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- _______________________________________________________________________ -->
|
|
||||||
<div class="doc_subsubsection">
|
|
||||||
<a name="i_fptrunc">'<tt>fptrunc .. to</tt>' Instruction</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="doc_text">
|
|
||||||
|
|
||||||
<h5>Syntax:</h5>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
<result> = fptrunc <ty> <value> to <ty2> <i>; yields ty2</i>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h5>Overview:</h5>
|
|
||||||
<p>The '<tt>fptrunc</tt>' instruction truncates <tt>value</tt> to type
|
|
||||||
<tt>ty2</tt>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<h5>Arguments:</h5>
|
|
||||||
<p>The '<tt>fptrunc</tt>' instruction takes a <a href="#t_floating">floating
|
|
||||||
point</a> value to cast and a <a href="#t_floating">floating point</a> type to
|
|
||||||
cast it to. The size of <tt>value</tt> must be larger than the size of
|
|
||||||
<tt>ty2</a>. This implies that <tt>fptrunc</tt> cannot be used to make a
|
|
||||||
<i>no-op cast</i>.</p>
|
|
||||||
|
|
||||||
<h5>Semantics:</h5>
|
|
||||||
<p> The '<tt>fptrunc</tt>' instruction converts a
|
|
||||||
<a href="#t_floating">floating point</a> value from a larger type to a smaller
|
|
||||||
type. If the value cannot fit within the destination type, <tt>ty2</tt>, then
|
|
||||||
the results are undefined.</p>
|
|
||||||
|
|
||||||
<h5>Example:</h5>
|
|
||||||
<pre>
|
|
||||||
%X = fptrunc double 123.0 to float <i>; yields float:123.0</i>
|
|
||||||
%Y = fptrunc double 1.0E+300 to float <i>; yields undefined</i>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- _______________________________________________________________________ -->
|
<!-- _______________________________________________________________________ -->
|
||||||
<div class="doc_subsubsection">
|
<div class="doc_subsubsection">
|
||||||
<a name="i_fp2uint">'<tt>fp2uint .. to</tt>' Instruction</a>
|
<a name="i_fp2uint">'<tt>fp2uint .. to</tt>' Instruction</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user