Skip to content

VFSQRT

Operation

Computes the square root of each active floating-point element.

Assembler Syntax

VFSQRT.{H|S|D}(z) Pn(p), Vn(v)

VFSQRT.{H|S|D}(z) Pn(p), <ea>(e), Vn(v)

VFSQRT.{H|S|D}(z) Pn(p), Vn(v), <ea>(e)

Privilege

Unprivileged

Required CPUID flags

FP

VECTOR

VECTORFP

VFSQRT computes the square root of each active H, S, or D element and rounds the result according to the floating-point environment. The register form reads and overwrites each active destination lane. The memory-source form reads each active memory element and writes the result to the corresponding destination lane. An inactive destination lane retains its previous value.

The memory-destination form computes the square root of each active source-register element and writes the result to the corresponding memory element. Inactive memory elements retain their previous values, making the destination transaction a lane-wise read-modify-write.

2.75in

Encodings

VFSQRT.{H|S|D}(z) Pn(p), Vn(v)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), Vn(v)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), Vn(v)

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

2.75in VFSQRT.{H|S|D}(z) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), <ea>(e), Vn(v)

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

2.75in VFSQRT.{H|S|D}(z) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VFSQRT.{H|S|D}(z) Pn(p), Vn(v), <ea>(e)

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

dstexcluded: immediate [invalid_destination]