[llvm] r319437 - [LangRef] clarify semantics of the frem instruction
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 06:59:03 PST 2017
Author: spatel
Date: Thu Nov 30 06:59:03 2017
New Revision: 319437
URL: http://llvm.org/viewvc/llvm-project?rev=319437&view=rev
Log:
[LangRef] clarify semantics of the frem instruction
As noted in D40594, the frem instruction corresponds to fmod() except that it can't set errno.
I modified the text that we currently use for intrinsics that map to libm functions and applied
it to frem.
Differential Revision: https://reviews.llvm.org/D40629
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=319437&r1=319436&r2=319437&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Thu Nov 30 06:59:03 2017
@@ -6827,10 +6827,12 @@ Both arguments must have identical types
Semantics:
""""""""""
-This instruction returns the *remainder* of a division. The remainder
-has the same sign as the dividend. This instruction can also take any
-number of :ref:`fast-math flags <fastmath>`, which are optimization hints
-to enable otherwise unsafe floating point optimizations:
+Return the same value as a libm '``fmod``' function but without trapping or
+setting ``errno``.
+
+The remainder has the same sign as the dividend. This instruction can also
+take any number of :ref:`fast-math flags <fastmath>`, which are optimization
+hints to enable otherwise unsafe floating-point optimizations:
Example:
""""""""
More information about the llvm-commits
mailing list