Vcvt, Vcvtr Between Floating-Point And Integer - ST STM32F4 Series Programming Manual

Cortex-m4
Hide thumbs Also See for STM32F4 Series:
Table of Contents

Advertisement

PM0214
3.10.4

VCVT, VCVTR between floating-point and integer

Converts a value in a register from floating-point to a 32-bit integer.
Syntax
VCVT{R}{cond}.Tm.F32 Sd, Sm
VCVT{cond}.F32.Tm Sd, 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
'Tm' is the data type for the operand. It must be one of:
S32
U32
'Sd, Sm' are the destination register and the operand register.
Operation
These instructions:
1.
Either
Converts a value in a register from floating-point value to a 32-bit integer.
Converts from a 32-bit integer to floating-point value.
2.
Places 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.
Restrictions
There are no restrictions.
Condition flags
These instructions do not change the flags.
signed 32-bit value.
unsigned 32-bit value.
DocID022708 Rev 6
The STM32 Cortex-M4 instruction set
Conditional execution on page
64.
153/260
259

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F4 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32l4+ seriesStm32f3 series

Table of Contents

Save PDF