[PATCH] D40629: [LangRef] clarify semantics of the frem instruction

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 16:19:34 PST 2017


spatel created this revision.
Herald added a subscriber: mcrosier.

As noted in https://reviews.llvm.org/D40594, the frem instruction corresponds to fmod() except that it can't set errno.


https://reviews.llvm.org/D40629

Files:
  docs/LangRef.rst


Index: docs/LangRef.rst
===================================================================
--- docs/LangRef.rst
+++ docs/LangRef.rst
@@ -6827,10 +6827,12 @@
 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:
 """"""""


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40629.124850.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171130/0ae2d258/attachment.bin>


More information about the llvm-commits mailing list