Clarify that the result of an srem is only guaranteed to have the same sign as the
authorDuncan Sands <baldrick@free.fr>
Mon, 7 Mar 2011 09:12:24 +0000 (09:12 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 7 Mar 2011 09:12:24 +0000 (09:12 +0000)
left-hand-side if the result is non-zero.

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

docs/LangRef.html

index 317e7744b799a7fb65dc91dc3882415bc45988a5..893876620a46a0f98d9a1927c06d3a2b70e383cf 100644 (file)
@@ -3611,9 +3611,10 @@ Instruction</a> </div>
 
 <h5>Semantics:</h5>
 <p>This instruction returns the <i>remainder</i> of a division (where the result
-   has the same sign as the dividend, <tt>op1</tt>), not the <i>modulo</i>
-   operator (where the result has the same sign as the divisor, <tt>op2</tt>) of
-   a value.  For more information about the difference,
+   is either zero or has the same sign as the dividend, <tt>op1</tt>), not the
+   <i>modulo</i> operator (where the result is either zero or has the same sign
+   as the divisor, <tt>op2</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>. For a table of how this is implemented in various languages,
    please see <a href="http://en.wikipedia.org/wiki/Modulo_operation">