Fix runaway <tt> element and section ordering.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 9 Nov 2006 21:48:10 +0000 (21:48 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 9 Nov 2006 21:48:10 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31606 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 44c63242c56e26d9c3577d65f2ee9b3150b76918..8c045000fec0d53b2af679283fe37a8e0b01ce8f 100644 (file)
@@ -2744,72 +2744,72 @@ If the <tt>value</tt> was non-zero, the bool result will be <tt>true</tt>.</p>
 
 <!-- _______________________________________________________________________ -->
 <div class="doc_subsubsection">
-   <a name="i_fpext">'<tt>fpext .. to</tt>' Instruction</a>
+   <a name="i_fptrunc">'<tt>fptrunc .. to</tt>' Instruction</a>
 </div>
+
 <div class="doc_text">
 
 <h5>Syntax:</h5>
+
 <pre>
-  &lt;result&gt; = fpext &lt;ty&gt; &lt;value&gt; to &lt;ty2&gt;             <i>; yields ty2</i>
+  &lt;result&gt; = fptrunc &lt;ty&gt; &lt;value&gt; to &lt;ty2&gt;             <i>; yields ty2</i>
 </pre>
 
 <h5>Overview:</h5>
-<p>The '<tt>fpext</tt>' extends a floating point <tt>value</tt> to a larger
-floating point value.</p>
+<p>The '<tt>fptrunc</tt>' instruction truncates <tt>value</tt> to type
+<tt>ty2</tt>.</p>
+
 
 <h5>Arguments:</h5>
-<p>The '<tt>fpext</tt>' instruction takes a 
-<a href="#t_floating">floating point</a> <tt>value</tt> to cast, 
-and a <a href="#t_floating">floating point</a> type to cast it to.</p>
+<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>fpext</tt>' instruction extends the <tt>value</tt> from one floating
-point type to another. If the type of the <tt>value</tt> and <tt>ty2</tt> are
-the same, the instruction is considered a <i>no-op cast</i> because no bits
-change.</p>
+<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 = fpext float 3.1415 to double        <i>; yields double:3.1415</i>
-  %Y = fpext float 1.0 to float            <i>; yields float:1.0 (no-op)</i>
+  %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">
-   <a name="i_fptrunc">'<tt>fptrunc .. to</tt>' Instruction</a>
+   <a name="i_fpext">'<tt>fpext .. to</tt>' Instruction</a>
 </div>
-
 <div class="doc_text">
 
 <h5>Syntax:</h5>
-
 <pre>
-  &lt;result&gt; = fptrunc &lt;ty&gt; &lt;value&gt; to &lt;ty2&gt;             <i>; yields ty2</i>
+  &lt;result&gt; = fpext &lt;ty&gt; &lt;value&gt; to &lt;ty2&gt;             <i>; yields ty2</i>
 </pre>
 
 <h5>Overview:</h5>
-<p>The '<tt>fptrunc</tt>' instruction truncates <tt>value</tt> to type
-<tt>ty2</tt>.</p>
-
+<p>The '<tt>fpext</tt>' extends a floating point <tt>value</tt> to a larger
+floating point value.</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>
+<p>The '<tt>fpext</tt>' instruction takes a 
+<a href="#t_floating">floating point</a> <tt>value</tt> to cast, 
+and a <a href="#t_floating">floating point</a> type to cast it to.</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>
+<p>The '<tt>fpext</tt>' instruction extends the <tt>value</tt> from one floating
+point type to another. If the type of the <tt>value</tt> and <tt>ty2</tt> are
+the same, the instruction is considered a <i>no-op cast</i> because no bits
+change.</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>
+  %X = fpext float 3.1415 to double        <i>; yields double:3.1415</i>
+  %Y = fpext float 1.0 to float            <i>; yields float:1.0 (no-op)</i>
 </pre>
 </div>