| |||
| Home > NEON and VFP Programming > VFP instructions > VCVTB, VCVTT (half-precision extension) | |||
Converts between half-precision and single-precision floating-point numbers in the following ways:
VCVTB uses
the bottom half (bits[15:0]) of the single word register to obtain
or store the half-precision value
VCVTT uses the top half (bits[31:16])
of the single word register to obtain or store the half-precision
value.
VCVTB and VCVTT are always scalar.
VCVTB{cond}.typeSd,Sm
VCVTT{cond}.typeSd,Sm
where:
condis an optional condition code.
typecan be any one of:
F32.F16convert from half-precision to single-precision
F16.F32convert form single-precision to half-precision.
Sdis a single word register for the result.
Smis a single word register for the operand.
The instructions are only available in VFPv3 systems with the half-precision extension.
These instructions can produce Input Denormal, Invalid Operation, Overflow, Underflow, or Inexact exceptions.