5.16.4. VCMP

Floating-point compare.

VCMP is always scalar.

Syntax

VCMP{cond}.F32 Sd, Sm
VCMP{cond}.F32 Sd, #0
VCMP{cond}.F64 Dd, Dm
VCMP{cond}.F64 Dd, #0

where:

cond

is an optional condition code (see Condition codes).

Sd, Sm

are the single-precision registers holding the operands.

Dd, Dm

are the double-precision registers holding the operands.

Usage

The VCMP instruction subtracts the value in the second operand register (or 0 if the second operand is #0) from the value in the first opeand register, and sets the VFP condition flags on the result (see Condition codes).

Floating-point exceptions

VCMP instructions can produce Invalid Operation exceptions.

Copyright © 2002-2010 ARM. All rights reserved.ARM DUI 0204J
Non-ConfidentialID101213