mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
LangRef: Clarify select's semantics with vector arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -6913,9 +6913,7 @@ Arguments:
|
|||||||
|
|
||||||
The '``select``' instruction requires an 'i1' value or a vector of 'i1'
|
The '``select``' instruction requires an 'i1' value or a vector of 'i1'
|
||||||
values indicating the condition, and two values of the same :ref:`first
|
values indicating the condition, and two values of the same :ref:`first
|
||||||
class <t_firstclass>` type. If the val1/val2 are vectors and the
|
class <t_firstclass>` type.
|
||||||
condition is a scalar, then entire vectors are selected, not individual
|
|
||||||
elements.
|
|
||||||
|
|
||||||
Semantics:
|
Semantics:
|
||||||
""""""""""
|
""""""""""
|
||||||
@@ -6927,6 +6925,9 @@ argument.
|
|||||||
If the condition is a vector of i1, then the value arguments must be
|
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.
|
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:
|
Example:
|
||||||
""""""""
|
""""""""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user