From dea3a5e202fa6bcd4885273a25a77ded701be909 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 7 Mar 2011 09:12:24 +0000 Subject: Clarify that the result of an srem is only guaranteed to have the same sign as the 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 317e7744b7..893876620a 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3611,9 +3611,10 @@ Instruction
Semantics:

This instruction returns the remainder of a division (where the result - has the same sign as the dividend, op1), not the modulo - operator (where the result has the same sign as the divisor, op2) of - a value. For more information about the difference, + is either zero or has the same sign as the dividend, op1), not the + modulo operator (where the result is either zero or has the same sign + as the divisor, op2) of a value. + For more information about the difference, see The Math Forum. For a table of how this is implemented in various languages, please see -- cgit v1.2.3-18-g5258