vsqrt

Vector Square Root (Double)

VSQRT<c>.F64 <Dd>, <Dm>

Square root of double-precision register.

Pseudocode Operation

Dd ← sqrt(Dm)
FPSCR.IOC ← 1 if Dm < 0.0 and Dm ≠ -0.0 (invalid operation)
FPSCR.UFC ← 1 if result is subnormal (underflow)
FPSCR.OFC ← 1 if result overflows
FPSCR.IXC ← 1 if result is inexact

Example

VSQRT.F64 d0, d2

Encoding

Binary Layout
cond
31:28
11101
27:23
D
22
11
21:20
0
19
001
18:16
Vd
15:12
10
11:10
11
9:8
1
7
1
6
M
5
0
4
Vm
3:0
 
Format VFP Unary
Opcode 0x0EB10BC0
Extension VFP (Float)

Operands

  • Dd
    Destination 64-bit SIMD/FP register
  • Dm
    Second source 64-bit SIMD/FP register

Related

Other forms of vsqrt

  • vsqrt Vector Square Root (VFP)

More in VFP (Float)

Reference

Instruction Forms

Encoding Instruction ISA Bit pattern
0x0EB109C0 VSQRT{<c>}{<q>}.F16 <Sd>, <Sm> A32 cond | 11101 | D | 11 | 0 | 001 | Vd | 10 | 01 | 1 | 1 | M | 0 | Vm
0x0EB10AC0 VSQRT{<c>}{<q>}.F32 <Sd>, <Sm> A32 cond | 11101 | D | 11 | 0 | 001 | Vd | 10 | 10 | 1 | 1 | M | 0 | Vm
0x0EB10BC0 VSQRT{<c>}{<q>}.F64 <Dd>, <Dm> A32 cond | 11101 | D | 11 | 0 | 001 | Vd | 10 | 11 | 1 | 1 | M | 0 | Vm
0xEEB109C0 VSQRT{<c>}{<q>}.F16 <Sd>, <Sm> T32 111011101 | D | 11 | 0 | 001 | Vd | 10 | 01 | 1 | 1 | M | 0 | Vm
0xEEB10AC0 VSQRT{<c>}{<q>}.F32 <Sd>, <Sm> T32 111011101 | D | 11 | 0 | 001 | Vd | 10 | 10 | 1 | 1 | M | 0 | Vm
0xEEB10BC0 VSQRT{<c>}{<q>}.F64 <Dd>, <Dm> T32 111011101 | D | 11 | 0 | 001 | Vd | 10 | 11 | 1 | 1 | M | 0 | Vm

Description

Square Root calculates the square root of the value in a floating-point register and writes the result to another floating-point register. Depending on settings in the CPACR, NSACR, HCPTR, and FPEXC registers, and the Security state and PE mode in which the instruction is executed, an attempt to execute the instruction might be undefined, or trapped to Hyp mode. For more information see Enabling Advanced SIMD and floating-point support.

Operation

if ConditionPassed() then
    EncodingSpecificOperations();  CheckVFPEnabled(TRUE);
    case esize of
        when 16 S[d] = Zeros(16) : FPSqrt(S[m]<15:0>, FPSCR[]);
        when 32 S[d] = FPSqrt(S[m], FPSCR[]);
        when 64 D[d] = FPSqrt(D[m], FPSCR[]);