summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorWei Ding <wei.ding2@amd.com>2017-08-24 04:18:24 +0000
committerWei Ding <wei.ding2@amd.com>2017-08-24 04:18:24 +0000
commita131d3fb29ebfeea79cd42e843dee861d67d3818 (patch)
tree633c2a8533871bd3379ea8d58ff9ee0fd058017f /llvm/docs
parent0ada0d5b21ab29bac2f10d3623f83634cfea1a94 (diff)
downloadbcm5719-llvm-a131d3fb29ebfeea79cd42e843dee861d67d3818.tar.gz
bcm5719-llvm-a131d3fb29ebfeea79cd42e843dee861d67d3818.zip
Add ‘llvm.experimental.constrained.fma‘ Intrinsic.
Differential Revision: http://reviews.llvm.org/D36335 llvm-svn: 311629
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst35
1 files changed, 35 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index d4166216e49..49ded73aaf6 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -13021,6 +13021,41 @@ The value produced is the floating point remainder from the division of the two
value operands and has the same type as the operands. The remainder has the
same sign as the dividend.
+'``llvm.experimental.constrained.fma``' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Syntax:
+"""""""
+
+::
+
+ declare <type>
+ @llvm.experimental.constrained.fma(<type> <op1>, <type> <op2>, <type> <op3>,
+ metadata <rounding mode>,
+ metadata <exception behavior>)
+
+Overview:
+"""""""""
+
+The '``llvm.experimental.constrained.fma``' intrinsic returns the result of a
+fused-multiply-add operation on its operands.
+
+Arguments:
+""""""""""
+
+The first three arguments to the '``llvm.experimental.constrained.fma``'
+intrinsic must be :ref:`floating point <t_floating>` or :ref:`vector
+<t_vector>` of floating point values. All arguments must have identical types.
+
+The fourth and fifth arguments specify the rounding mode and exception behavior
+as described above.
+
+Semantics:
+""""""""""
+
+The result produced is the product of the first two operands added to the third
+operand computed with infinite precision, and then rounded to the target
+precision.
Constrained libm-equivalent Intrinsics
--------------------------------------
OpenPOWER on IntegriCloud