Changes in directory llvm/docs:
LangRef.html updated: 1.166 -> 1.167 --- Log message: Fix runaway <tt> element and section ordering. --- Diffs of the changes: (+32 -32) LangRef.html | 64 +++++++++++++++++++++++++++++------------------------------ 1 files changed, 32 insertions(+), 32 deletions(-) Index: llvm/docs/LangRef.html diff -u llvm/docs/LangRef.html:1.166 llvm/docs/LangRef.html:1.167 --- llvm/docs/LangRef.html:1.166 Thu Nov 9 15:42:14 2006 +++ llvm/docs/LangRef.html Thu Nov 9 15:48:10 2006 @@ -2744,72 +2744,72 @@ <!-- _______________________________________________________________________ --> <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> - <result> = fpext <ty> <value> to <ty2> <i>; yields ty2</i> + <result> = fptrunc <ty> <value> to <ty2> <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> - <result> = fptrunc <ty> <value> to <ty2> <i>; yields ty2</i> + <result> = fpext <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> - +<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> @@ -4229,7 +4229,7 @@ <a href="mailto:[EMAIL PROTECTED]">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2006/11/09 21:42:14 $ + Last modified: $Date: 2006/11/09 21:48:10 $ </address> </body> </html> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits