5.7.17. FSQRT

Floating-point square root instruction.

This instruction can be scalar, vector, or mixed (see Vector and scalar operations).

Syntax

FSQRT<precision>{cond} Fd, Fm

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

Fd

is the VFP register for the result.

Fm

is the VFP register holding the operand.

The precision of Fd and Fm must match the precision specified in <precision>.

Usage

The FSQRT instruction calculates the square root of the value of the contents of Fm and places the result in Fd.

Exceptions

FSQRT operations can produce Invalid Operation or Inexact exceptions.

Examples

    FSQRTS      s4, s28
    FSQRTD      d14, d6
    FSQRTSNE    s15, s13
Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F
Non-Confidential