v_mul_f32 GPU Native ISA AMD Vector
Vector Arithmetic
Per-lane single-precision floating-point multiply.
Encoding
The ENC_VOP2 layout from AMD's machine-readable ISA specification (AMD CDNA 5). Opcode 8 in OP rebuilds 0x10000000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 4 (opcode 5), AMD CDNA 3 (opcode 5), AMD CDNA 2 (opcode 5), AMD CDNA 1 (opcode 5). The same in AMD RDNA 4, AMD RDNA 3.5, AMD RDNA 3, AMD RDNA 2, AMD RDNA 1.
Operands
-
VDST
Destination VGPR -
S0
First source -
S1
Second source
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | ✅ Supported |
Related PTX Concepts
Related
More in Vector Arithmetic
Reference
Description
Semantics
Example
v_mul_f32 v2, v0, v1 // per-lane v2 = v0 * v1Original illustrative example, written for this site (not reproduced from a specific AMD document).
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.