[llvm] r231158 - LangRef: Clarify select's semantics with vector arguments

David Majnemer david.majnemer at gmail.com
Tue Mar 3 14:45:47 PST 2015


Author: majnemer
Date: Tue Mar  3 16:45:47 2015
New Revision: 231158

URL: http://llvm.org/viewvc/llvm-project?rev=231158&view=rev
Log:
LangRef: Clarify select's semantics with vector arguments

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=231158&r1=231157&r2=231158&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Tue Mar  3 16:45:47 2015
@@ -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 <t_firstclass>` type. If the val1/val2 are vectors and the
-condition is a scalar, then entire vectors are selected, not individual
-elements.
+class <t_firstclass>` 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:
 """"""""
 





More information about the llvm-commits mailing list