Instruction
V4FMADDSS
Performs four scalar fused multiply-adds of singles in a row, with the low singles of four consecutive registers and four from memory.
Only Knights Mill, the last Xeon Phi processor, has this instruction; no other Intel processor supports it.
- Extensions
- Forms
- 1 (1 EVEX)
- Data
- Intel XED v2026.08.23
Forms
| Instruction | Encoding | Requires |
|---|---|---|
V4FMADDSS xmm {k}{z}, xmm+3, m128
V4FMADDSS_XMMf32_MASKmskw_XMMf32_MEMf32_AVX512 | EVEX.LIG.F2.0F38.W0 9B /r | AVX512_4FMAPS |
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)[3] >> 3 & 1:
fault(UD) # CPUID: no AVX512-4FMAPS
if k1[0]: # 1 without a write mask
r = xmm1.f32[0]
for j in range(4): # xmm2+3, in turn
a = xmm2.group[j].f32[0]
r = fmadd(a, mem.f32[j], r)
xmm1.f32[0] = r
elif zeroing:
xmm1.f32[0] = 0
# else: xmm1.f32[0] keeps its value
# xmm1.d[1] to [3] keep their values
# each step: r + a * mem.f32[j], rounded once
# xmm1 is zeroed from bit 128 upRun on AMD Zen 5 (EPYC 9645): 1 case. It ran where CPUID reported no AVX512-4FMAPS, and raised an exception.
Operands
| Operand | Kind | Action |
|---|---|---|
V4FMADDSS xmm {k}{z}, xmm+3, m128 | ||
xmm | explicit | read, write (masked) |
{k} | explicit | read (write mask) |
xmm+3 | explicit | read |
m128 | 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-E2
Attributes
What else XED records about the forms. How to read.
- All forms
- write masking; memory fault suppression; follows MXCSR
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 |
|---|---|---|
AVX512_4FMAPS_SCALAR | AVX512_4FMAPS | Knights Mill |
More AVX512_4FMAPS 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-6 (V4FMADDSS/
V4FNMADDSS)
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.