ARM VERSION 1.2 Computer Hardware User Manual


 
Vector Floating-point Programming
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 6-35
6.7.16 FSITO and FUITO
Convert signed integer to floating-point and unsigned integer to floating-point.
FSITO
and
FUITO
are always scalar.
Syntax
FSITO<precision>{cond} Fd, Sm
FUITO<precision>{cond} Fd, Sm
where:
<precision>
must be either
S
for single-precision, or
D
for double-precision.
cond
is an optional condition code (see VFP and condition codes on page 6-8).
Fd
is a VFP register for the result. The precision of
Fd
must match the
precision specified in
<precision>
.
Sm
is a single-precision VFP register holding the integer operand.
Usage
The
FSITO
instruction converts the signed integer value in
Sm
to floating-point and places
the result in
Fd
.
The
FUITO
instruction converts the unsigned integer value in
Sm
to floating-point and
places the result in
Fd
.
Exceptions
FSITOS
and
FUITOS
instructions can produce Inexact exceptions.
FSITOD
and
FUITOD
instructions do not produce any exceptions.
Examples
FUITOD d3, s31 ; unsigned integer to double-precision
FSITOD d5, s16 ; signed integer to double-precision
FSITOSNE s2, s2 ; signed integer to single-precision