Non-Confidential | PDF version | DUI0801J | ||

| ||||

Home > Floating-point Instructions (32-bit) > VCVT (between floating-point and integer) |

Convert between floating-point numbers and integers.

`VCVT`

{`R`

}{

}.`cond`

`type`

.F64
`Sd, Dm`

`VCVT`

{`R`

}{

}.`cond`

`type`

.F32
`Sd`

,`Sm`

`VCVT`

{

}`cond`

`.F64.`

```
type
```

`Dd`

,`Sm`

`VCVT`

{

}`cond`

`.F32.`

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