| |||

Home > The Cortex-M7 Instruction Set > Floating-point instructions > VCVT and VCVTR between floating-point and integer |

Converts a value in a register from floating-point to and from a 32-bit integer.

VCVT{R}{}.`cond`

.F<32|64>`Tm`

,`<Sd>`

`<Sm|Dm>`

VCVT{}.F<32|64>.`cond`

`Tm`

,`<Sd|Dd>`

`<Sm>`

Where:

`R`

If

`R`

is specified, the operation uses the rounding mode specified by the`FPSCR`

. If`R`

is omitted. the operation uses the`Round towards Zero`

rounding mode.`cond`

Is an optional condition code. See

*Conditional execution*.`Tm`

Is the data type for the operand. It must be one of:

`S32`

signed 32-bit value.`U32`

unsigned 32-bit value.

,`<Sd|Dd>`

`<Sm|Dm>`

Are the destination register and the operand register.

These instructions:

Either:

Convert a value in a register from floating-point value to a 32-bit integer.

Convert from a 32-bit integer to floating-point value.

Place the result in a second register.

The floating-point to integer operation normally uses the ```
Round
towards Zero
```

rounding mode, but can optionally use the
rounding mode specified by the `FPSCR`

.

The integer to floating-point operation uses the rounding
mode specified by the `FPSCR`

.