Vector Floating-point Programming
6-36
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
6.7.17
FSQRT
Floating-point square root instruction. This instruction can be scalar, vector, or mixed
(see
Vector and scalar operations
on page 6-7).
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
on page 6-8).
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