Changes in directory llvm/docs:
LangRef.html updated: 1.158 -> 1.158.2.1 --- Log message: Document the udiv, sdiv and fdiv replacements for the div instruction. --- Diffs of the changes: (+56 -12) LangRef.html | 68 ++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 56 insertions(+), 12 deletions(-) Index: llvm/docs/LangRef.html diff -u llvm/docs/LangRef.html:1.158 llvm/docs/LangRef.html:1.158.2.1 --- llvm/docs/LangRef.html:1.158 Sun Oct 15 15:05:59 2006 +++ llvm/docs/LangRef.html Mon Oct 23 01:58:29 2006 @@ -77,7 +77,9 @@ <li><a href="#i_add">'<tt>add</tt>' Instruction</a></li> <li><a href="#i_sub">'<tt>sub</tt>' Instruction</a></li> <li><a href="#i_mul">'<tt>mul</tt>' Instruction</a></li> - <li><a href="#i_div">'<tt>div</tt>' Instruction</a></li> + <li><a href="#i_udiv">'<tt>udiv</tt>' Instruction</a></li> + <li><a href="#i_sdiv">'<tt>sdiv</tt>' Instruction</a></li> + <li><a href="#i_fdiv">'<tt>fdiv</tt>' Instruction</a></li> <li><a href="#i_rem">'<tt>rem</tt>' Instruction</a></li> <li><a href="#i_setcc">'<tt>set<i>cc</i></tt>' Instructions</a></li> </ol> @@ -1630,26 +1632,68 @@ </pre> </div> <!-- _______________________________________________________________________ --> -<div class="doc_subsubsection"> <a name="i_div">'<tt>div</tt>' +<div class="doc_subsubsection"> <a name="i_udiv">'<tt>udiv</tt>' Instruction +</a></div> +<div class="doc_text"> +<h5>Syntax:</h5> +<pre> <result> = udiv <ty> <var1>, <var2> <i>; yields {ty}:result</i> +</pre> +<h5>Overview:</h5> +<p>The '<tt>udiv</tt>' instruction returns the quotient of its two +operands.</p> +<h5>Arguments:</h5> +<p>The two arguments to the '<tt>div</tt>' instruction must be +<a href="#t_integer">integer</a> values. The arguments are considered to be +unsigned integer quantities. This instruction can also take +<a href="#t_packed">packed</a> versions of the values. Both arguments must +have identical types.</p> +<h5>Semantics:</h5> +<p>The value produced is the unsigned integer quotient of the two operands.</p> +<h5>Example:</h5> +<pre> <result> = udiv uint 4, %var <i>; yields {uint}:result = 4 / %var</i> +</pre> +</div> +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> <a name="i_sdiv">'<tt>sdiv</tt>' Instruction +</a> </div> +<div class="doc_text"> +<h5>Syntax:</h5> +<pre> <result> = sdiv <ty> <var1>, <var2> <i>; yields {ty}:result</i> +</pre> +<h5>Overview:</h5> +<p>The '<tt>sdiv</tt>' instruction returns the quotient of its two +operands.</p> +<h5>Arguments:</h5> +<p>The two arguments to the '<tt>sdiv</tt>' instruction must be +<a href="#t_integer">integer</a> values. The arguments are considered to be +signed integer quantities. This instruction can also take +<a href="#t_packed">packed</a> versions of the values. Both arguments must +have identical types.</p> +<h5>Semantics:</h5> +<p>The value produced is the signed integer quotient of the two operands.</p> +<h5>Example:</h5> +<pre> <result> = sdiv int 4, %var <i>; yields {int}:result = 4 / %var</i> +</pre> +</div> +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> <a name="i_fdiv">'<tt>fdiv</tt>' Instruction</a> </div> <div class="doc_text"> <h5>Syntax:</h5> -<pre> <result> = div <ty> <var1>, <var2> <i>; yields {ty}:result</i> +<pre> <result> = fdiv <ty> <var1>, <var2> <i>; yields {ty}:result</i> </pre> <h5>Overview:</h5> -<p>The '<tt>div</tt>' instruction returns the quotient of its two +<p>The '<tt>fdiv</tt>' instruction returns the quotient of its two operands.</p> <h5>Arguments:</h5> -<p>The two arguments to the '<tt>div</tt>' instruction must be either <a - href="#t_integer">integer</a> or <a href="#t_floating">floating point</a> -values. -This instruction can also take <a href="#t_packed">packed</a> versions of the values. +<p>The two arguments to the '<tt>div</tt>' instruction must be +<a href="#t_floating">floating point</a> values. This instruction can also +take <a href="#t_packed">packed</a> versions of the values. Both arguments must have identical types.</p> <h5>Semantics:</h5> -<p>The value produced is the integer or floating point quotient of the -two operands.</p> +<p>The value produced is the floating point quotient of the two operands.</p> <h5>Example:</h5> -<pre> <result> = div int 4, %var <i>; yields {int}:result = 4 / %var</i> +<pre> <result> = fdiv float 4.0, %var <i>; yields {float}:result = 4.0 / %var</i> </pre> </div> <!-- _______________________________________________________________________ --> @@ -3910,7 +3954,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/10/15 20:05:59 $ + Last modified: $Date: 2006/10/23 06:58:29 $ </address> </body> </html> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits