Non-Confidential | PDF version | DUI0801J | ||
| ||||
Home > Advanced SIMD Instructions (32-bit) > VCVT (between fixed-point or integer, and floating-point) |
Vector Convert.
VCVT
{
}.cond
type
, Qd
{,
#Qm
}fbits
VCVT
{
}.cond
type
, Dd
{,
#Dm
}fbits
where:
cond
is an optional condition code.
type
specifies the data types for the elements of the vectors. It must be one of:
S32.F32
Floating-point to signed integer or fixed-point.
U32.F32
Floating-point to unsigned integer or fixed-point.
F32.S32
Signed integer or fixed-point to floating-point.
F32.U32
Unsigned integer or fixed-point to floating-point.
Qd, Qm
specifies the destination vector and the operand vector, for a quadword operation.
Dd, Dm
specifies the destination vector and the operand vector, for a doubleword operation.
fbits
if present, specifies the number of fraction bits
in the fixed point number. Otherwise, the conversion is between
floating-point and integer.
must
lie in the range 0-32. If fbits
is
omitted, the number of fraction bits is 0.fbits
VCVT
converts each element in a vector in one of the following ways, and
places the results in the destination vector:
From floating-point to integer.
From integer to floating-point.
From floating-point to fixed-point.
From fixed-point to floating-point.
Integer or fixed-point to floating-point conversions use round to nearest.
Floating-point to integer or fixed-point conversions use round towards zero.