From: David Majnemer Date: Tue, 3 Mar 2015 22:45:47 +0000 (+0000) Subject: LangRef: Clarify select's semantics with vector arguments X-Git-Tag: llvmorg-3.7.0-rc1~10273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40a0b594eb7daf5b99e63228a8cd9054bb5f8989;p=platform%2Fupstream%2Fllvm.git LangRef: Clarify select's semantics with vector arguments llvm-svn: 231158 --- diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index d8294b9..97b2784 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -6913,9 +6913,7 @@ Arguments: The '``select``' instruction requires an 'i1' value or a vector of 'i1' values indicating the condition, and two values of the same :ref:`first -class ` type. If the val1/val2 are vectors and the -condition is a scalar, then entire vectors are selected, not individual -elements. +class ` type. Semantics: """""""""" @@ -6927,6 +6925,9 @@ argument. If the condition is a vector of i1, then the value arguments must be vectors of the same size, and the selection is done element by element. +If the condition is an i1 and the value arguments are vectors of the +same size, then an entire vector is selected. + Example: """"""""