From c9fdfc8e9fbca9542077bec4ecdee65576752ae0 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 24 Mar 2007 22:23:39 +0000 Subject: [PATCH] Correct the description of srem. remainder follows the dividend not the divisor! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35303 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 7d2fe55e81b..c2e1c6c4cd9 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2006,11 +2006,13 @@ signed division of its two operands.

types.

Semantics:

This instruction returns the remainder of a division (where the result -has the same sign as the divisor), not the modulus (where the -result has the same sign as the dividend) of a value. For more -information about the difference, see var1), not the modulo +operator (where the result has the same sign as the divisor, var2) of +a value. For more information about the difference, see The -Math Forum.

+Math Forum. For a table of how this is implemented in various languages, +please see +Wikipedia: modulo operation.

Example:
  <result> = srem i32 4, %var          ; yields {i32}:result = 4 % %var
 
-- 2.34.1