v_pk_add_f32 GPU Native ISA AMD Vector
Vector Packed Arithmetic
Add two packed single-precision float inputs component-wise and store the result into a vector register. No carry-in or carry-out support.
Encoding
The ENC_VOP3P layout from AMD's machine-readable ISA specification (AMD CDNA 5). Opcode 41 in OP rebuilds 0x00000000CC290000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 4 (opcode 50, field layout), AMD CDNA 3 (opcode 50, field layout), AMD CDNA 2 (opcode 50, 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)
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
Semantics
Sources
- User Guide for AMDGPU Backend ↗ - LLVM Project
-
"AMD Instinct MI300" Instruction Set Architecture: Reference Guide ↗
- Advanced Micro Devices, Inc.
Reference Guide, page 271. - AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.