Correct the description of srem. remainder follows the dividend not the
authorReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 22:23:39 +0000 (22:23 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 22:23:39 +0000 (22:23 +0000)
divisor!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35303 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 7d2fe55e81b959ff139f7d321a6bd75631784ca6..c2e1c6c4cd94d18e9ca6fc39ddf6200ac5692b3c 100644 (file)
@@ -2006,11 +2006,13 @@ signed division of its two operands.</p>
 types.</p>
 <h5>Semantics:</h5>
 <p>This instruction returns the <i>remainder</i> of a division (where the result
-has the same sign as the divisor), not the <i>modulus</i> (where the
-result has the same sign as the dividend) of a value.  For more
-information about the difference, see <a
+has the same sign as the dividend, <tt>var1</tt>), not the <i>modulo</i> 
+operator (where the result has the same sign as the divisor, <tt>var2</tt>) of 
+a value.  For more information about the difference, see <a
  href="http://mathforum.org/dr.math/problems/anne.4.28.99.html">The
-Math Forum</a>.</p>
+Math Forum</a>. For a table of how this is implemented in various languages,
+please see <a href="http://mathforum.org/dr.math/problems/anne.4.28.99.html">
+Wikipedia: modulo operation</a>.</p>
 <h5>Example:</h5>
 <pre>  &lt;result&gt; = srem i32 4, %var          <i>; yields {i32}:result = 4 % %var</i>
 </pre>