Instruction
VRSQRT28SD
Approximates the reciprocal square root of the low double to within 2^-28; the upper half comes from the first source.
Only the Xeon Phi processors Knights Landing and Knights Mill have this instruction; no other Intel processor supports it.
- Extensions
- Forms
- 2 (2 EVEX)
- Data
- Intel XED v2026.08.23
Forms
Data flow
Where the elements of the sources go, element 0 on the right; results that depend on a control value are drawn for an example. How to read.
The write mask k1 applies to the low double: with bit 0 clear it keeps its old value, or is zeroed with {z}.
Result double 0 is computed from double 0 of xmm3; double 1 is that of xmm2. Result doubles 1 to 0: a1, r0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
if not cpuid_leaf(7, 0)[1] >> 27 & 1:
fault(UD) # CPUID: no AVX512ER
if k1[0]:
xmm1.f64[0] = rsqrt28(src3.f64[0])
elif zeroing:
xmm1.f64[0] = 0
# else: xmm1.f64[0] keeps its value
xmm1.q[1] = xmm2.q[1]
# rsqrt28: 1/sqrt(a) within 2^-28, rounded to a double
# denormals are zeros, whatever MXCSR says; a < 0: the
# indefinite; IE for an SNaN or a < 0, ZE for a zero
# {sae}: no exception flags
# xmm1 is zeroed from bit 128 upRun on AMD Zen 5 (EPYC 9645): 2 cases. Its cases ran where CPUID reported no AVX512ER, and every one raised an exception.
Operands
| Operand | Kind | Action |
|---|---|---|
VRSQRT28SD xmm {k}{z}, xmm, xmm/m64, {sae} | ||
xmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm | explicit | read |
xmm/m64 | explicit | read |
Flags
None: XED records no flag that the forms test or change.
Exceptions
The exception class is XED's name for the set of exception conditions that a form follows. How to read.
- All forms
AVX512-E3
Attributes
What else XED records about the forms. How to read.
- All forms
- write masking; follows MXCSR
- Memory forms
- memory fault suppression
CPUID and processors
Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.
| ISA set | CPUID | Processors |
|---|---|---|
AVX512ER_SCALAR | AVX512ER | Knights Landing, Knights Mill |
More AVX512ER instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2D, page 8-30 (VRSQRT28SD)
- Intel Xeon Phi Coprocessor Instruction Set Architecture Reference Manual (327364-001, September 2012)
The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The text is our own.