v_pk_fma_f32 GPU Native ISA AMD Vector
Vector Packed Arithmetic
Multiply two packed single-precision float inputs component-wise and add a third input component-wise using fused multiply add, and store the result…
Encoding
The ENC_VOP3P layout from AMD's machine-readable ISA specification (AMD CDNA 5). Opcode 31 in OP rebuilds 0x00000000CC1F0000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 4 (opcode 48, field layout), AMD CDNA 3 (opcode 48, field layout), AMD CDNA 2 (opcode 48, field layout).
Operands
-
VDST
Written. Operand must be a vector GPR. Uses an 8-bit operand field. Data format: 32-bit single-precision floating point value. Packed 2-component value. (OPR_VGPR, FMT_NUM_PK2_F32) -
SRC0
Read. All operands. Covers all operands that are allowed as scalar or vector sources. Data format: 32-bit single-precision floating point value. Packed 2-component value. (OPR_SRC, FMT_NUM_PK2_F32) -
SRC1
Read. All operands. Covers all operands that are allowed as scalar or vector sources. Data format: 32-bit single-precision floating point value. Packed 2-component value. (OPR_SRC, FMT_NUM_PK2_F32) -
SRC2
Read. All operands. Covers all operands that are allowed as scalar or vector sources. Data format: 32-bit single-precision floating point value. Packed 2-component value. (OPR_SRC, FMT_NUM_PK2_F32)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_VOP3P encoding (AMD CDNA 5).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Vector Packed Arithmetic
Reference
Description
Semantics
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
-
"AMD Instinct MI300" Instruction Set Architecture: Reference Guide ↗
- Advanced Micro Devices, Inc.
Reference Guide, page 270. - AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.