| |||

Home > VFP Programming > VFP instructions > VCVT (between floating-point and integer) |

Convert between floating-point numbers and integers.

`VCVT`

is always scalar.

`VCVT`

{R}{}.`cond`

.F64`type`

`Sd,`

`Dm`

`VCVT`

{R}{}.`cond`

.F32`type`

`Sd,`

`Sm`

`VCVT`

{}.F64.`cond`

`type`

`Dd,`

`Sm`

`VCVT`

{}.F32.`cond`

`type`

`Sd,`

`Sm`

where:

`R`

makes the operation use the rounding mode specified by the FPSCR. Otherwise, the operation rounds towards zero.

`cond`

is an optional condition code.

`type`

can be either

`U32`

(unsigned 32-bit integer) or`S32`

(signed 32-bit integer).`Sd`

is a single-precision register for the result.

`Dd`

is a double-precision register for the result.

`Sm`

is a single-precision register holding the operand.

`Dm`

is 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.

- Reference: