[llvm-commits] [SignlessTypes] CVS: llvm/docs/LangRef.html
Reid Spencer
reid at x10sys.com
Wed Oct 25 18:58:35 PDT 2006
Changes in directory llvm/docs:
LangRef.html updated: 1.158.2.1 -> 1.158.2.2
---
Log message:
Round 2 of DIV updates.
---
Diffs of the changes: (+19 -17)
LangRef.html | 36 +++++++++++++++++++-----------------
1 files changed, 19 insertions(+), 17 deletions(-)
Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.158.2.1 llvm/docs/LangRef.html:1.158.2.2
--- llvm/docs/LangRef.html:1.158.2.1 Mon Oct 23 01:58:29 2006
+++ llvm/docs/LangRef.html Wed Oct 25 20:58:05 2006
@@ -1642,13 +1642,14 @@
<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>
+<p>The two arguments to the '<tt>udiv</tt>' instruction must be
+<a href="#t_integer">integer</a> values. Both arguments must have identical
+types. This instruction can also take <a href="#t_packed">packed</a> versions
+of the values in which case the elements must be integers.</p>
+<h5>Semantics:</h5>
+<p>The value produced is the unsigned integer quotient of the two operands. This
+instruction always performs an unsigned division operation, regardless of
+whether the arguments are unsigned or not.</p>
<h5>Example:</h5>
<pre> <result> = udiv uint 4, %var <i>; yields {uint}:result = 4 / %var</i>
</pre>
@@ -1665,12 +1666,13 @@
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>
+<a href="#t_integer">integer</a> values. Both arguments must have identical
+types. This instruction can also take <a href="#t_packed">packed</a> versions
+of the values in which case the elements must be integers.</p>
+<h5>Semantics:</h5>
+<p>The value produced is the signed integer quotient of the two operands. This
+instruction always performs a signed division operation, regardless of whether
+the arguments are signed or not.</p>
<h5>Example:</h5>
<pre> <result> = sdiv int 4, %var <i>; yields {int}:result = 4 / %var</i>
</pre>
@@ -1687,9 +1689,9 @@
operands.</p>
<h5>Arguments:</h5>
<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>
+<a href="#t_floating">floating point</a> values. Both arguments must have
+identical types. This instruction can also take <a href="#t_packed">packed</a>
+versions of the values in which case the elements must be floating point.</p>
<h5>Semantics:</h5>
<p>The value produced is the floating point quotient of the two operands.</p>
<h5>Example:</h5>
@@ -3954,7 +3956,7 @@
<a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
<a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
- Last modified: $Date: 2006/10/23 06:58:29 $
+ Last modified: $Date: 2006/10/26 01:58:05 $
</address>
</body>
</html>
More information about the llvm-commits
mailing list