summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.rst
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2019-05-20 09:54:06 +0000
committerSander de Smalen <sander.desmalen@arm.com>2019-05-20 09:54:06 +0000
commitf83cccf917c1c0db45bfaa6728793eb106dda8af (patch)
treeb2c9399a923624b0b611eb29b7f806162a2e72fd /llvm/docs/LangRef.rst
parent6e8f1a80cd988db8870aff9c3bc2ca7a20e04104 (diff)
downloadbcm5719-llvm-f83cccf917c1c0db45bfaa6728793eb106dda8af.tar.gz
bcm5719-llvm-f83cccf917c1c0db45bfaa6728793eb106dda8af.zip
Match types of accumulator and result for llvm.experimental.vector.reduce.fadd/fmul
The scalar start/accumulator value of the fadd- and fmul reduction should match the result type of the reduction, as well as the vector element-type of the input vector. Although this was not explicitly specified in the LangRef, it was taken for granted in code implementing the reductions. The patch also fixes the LangRef by adding this constraint. Reviewed By: aemerson, nikic Differential Revision: https://reviews.llvm.org/D60260 llvm-svn: 361133
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r--llvm/docs/LangRef.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index bfe0a0ab9fe..07d755c1d78 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -13580,7 +13580,8 @@ Arguments:
""""""""""
The first argument to this intrinsic is a scalar accumulator value, which is
only used when there are no fast-math flags attached. This argument may be undef
-when fast-math flags are used.
+when fast-math flags are used. The type of the accumulator matches the
+element-type of the vector input.
The second argument must be a vector of floating-point values.
@@ -13643,7 +13644,8 @@ Arguments:
""""""""""
The first argument to this intrinsic is a scalar accumulator value, which is
only used when there are no fast-math flags attached. This argument may be undef
-when fast-math flags are used.
+when fast-math flags are used. The type of the accumulator matches the
+element-type of the vector input.
The second argument must be a vector of floating-point values.
OpenPOWER on IntegriCloud