| |||
| Home > NEON and VFP Programming > NEON logical and compare operations > VCEQ, VCGE, VCGT, VCLE, and VCLT | |||
Vector Compare takes the value of each element in a vector, and compares it with the value of the corresponding element of a second vector, or zero. If the condition is true, the corresponding element in the destination vector is set to all ones. Otherwise, it is set to all zeros.
VCop{cond}.datatype{Qd},Qn,Qm
VCop{cond}.datatype{Dd},Dn,Dm
VCop{cond}.datatype{Qd},Qn, #0
VCop{cond}.datatype{Dd},Dn, #0
where:
opmust be one of:
EQEqual
GEGreater than or Equal
GTGreater Than
LELess
than or Equal (only if the second operand is #0)
LTLess
Than (only if the second operand is #0).
condis an optional condition code.
datatypemust be one of:
I8, I16, I32,
or F32 for EQ
S8, S16, S32, U8, U16, U32,
or F32 for GE, GT, LE,
or LT (except #0 form)
S8, S16, S32,
or F32 for GE, GT, LE,
or LT (#0 form).
The result datatype is:
I32 for
operand datatypes I32, S32, U32,
or F32
I16 for operand datatypes I16, S16,
or U16
I8 for operand datatypes I8, S8,
or U8.
Qd, Qn, Qmspecifies the destination register, the first operand register, and the second operand register, for a quadword operation.
Dd, Dn, Dmspecifies the destination register, the first operand register, and the second operand register, for a doubleword operation.
#0replaces or Qm for
comparisons with zero.Dm