| |||
| Home > NEON and VFP Programming > VFP instructions > VCVT (between floating-point and integer) | |||
Convert between floating-point numbers and integers.
VCVT is always scalar.
VCVT{R}{cond}.type.F64Sd,Dm
VCVT{R}{cond}.type.F32Sd,Sm
VCVT{cond}.F64.typeDd,Sm
VCVT{cond}.F32.typeSd,Sm
where:
Rmakes the operation use the rounding mode specified by the FPSCR. Otherwise, the operation rounds towards zero.
condis an optional condition code.
typecan be either U32 (unsigned 32-bit
integer) or S32 (signed 32-bit integer).
Sdis a single-precision register for the result.
Ddis a double-precision register for the result.
Smis a single-precision register holding the operand.
Dmis a double-precision register holding the operand.
The first two forms of this instruction convert from floating-point to integer.
The third and fourth forms convert from integer to floating-point.
These instructions can produce Input Denormal, Invalid Operation, or Inexact exceptions.