5 fcvtsd – ARM VERSION 1.2 User Manual

Page 259

Advertising
background image

Vector Floating-point Programming

ARM DUI 0068B

Copyright © 2000, 2001 ARM Limited. All rights reserved.

6-21

6.7.5

FCVTSD

Convert double-precision floating-point to single-precision.

FCVTSD

is always scalar.

Syntax

FCVTSD{cond} Sd, Dm

where:

cond

is an optional condition code (see VFP and condition codes on page 6-8).

Sd

is a single-precision VFP register for the result.

Dm

is a double-precision VFP register holding the operand.

Usage

The

FCVTSD

instruction converts the double-precision value in

Dm

to single-precision and

places the result in

Sd

.

Exceptions

FCVTSD

instructions can produce Invalid Operation, Overflow, Underflow, or Inexact

exceptions.

Examples

FCVTSD s3, d14
FCVTSDMI s0, d1

Advertising