VMAX and VMIN
Vector Maximum, Vector Minimum.
Syntax
V
{op
}.cond
datatype
, Qd
,
Qn
Qm
V
{op
}.cond
datatype
, Dd
,
Dn
Dm
where:
op
must be either
MAX
orMIN
.cond
is an optional condition code.
datatype
must be one of
S8
,S16
,S32
,U8
,U16
,U32
, orF32
.Qd
,Qn
,Qm
are the destination vector, the first operand vector, and the second operand vector, for a quadword operation.
Dd
,Dn
,Dm
are the destination vector, the first operand vector, and the second operand vector, for a doubleword operation.
Operation
VMAX
compares corresponding elements in two vectors, and copies the larger
of each pair into the corresponding element in the destination vector.
VMIN
compares corresponding elements in two vectors, and copies the
smaller of each pair into the corresponding element in the destination vector.
Floating-point maximum and minimum
max(+0.0, –0.0) = +0.0.
min(+0.0, –0.0) = –0.0
If any input is a NaN, the corresponding result element is the default NaN.