V_MUL_LEGACY_F32
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
userCDNA1, CDNA2, CDNA3, CDNA4, RDNA1, RDNA2, VALUSummary
Multiply two floating point inputs and store the result into a vector register. Follows DX9 rules where 0.0 times anything produces 0.0 (this differs from other APIs when the other input is infinity or NaN).
Syntax / Encoding
V_MUL_LEGACY_F32 VDST, SRC0, VSRC1, LITERAL, VSRC0, SRC1 | ENC_VOP2 op=4 [CDNA1]; VOP2_INST_LITERAL op=4 [CDNA1]; VOP2_VOP_DPP op=4 [CDNA1]
Binary Encodings (12)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | ENC_VOP2 | 0000100xxxxxxxxxxxxxxxxxxxxxxxxx | 0xfe000000 / 0x08000000 |
| 64 | VOP2_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000100xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x0000000008000000 |
| 64 | VOP2_VOP_DPP | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000100xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x0000000008000000 |
| 64 | VOP2_VOP_SDWA | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000100xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x0000000008000000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101000100000100xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d1040000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101001010100001xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d2a10000 |
| 32 | ENC_VOP2 | 0000111xxxxxxxxxxxxxxxxxxxxxxxxx | 0xfe000000 / 0x0e000000 |
| 64 | VOP2_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000111xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x000000000e000000 |
| 64 | VOP2_VOP_SDWA | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000111xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x000000000e000000 |
| 64 | VOP2_VOP_DPP8 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000111xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x000000000e000000 |
| 64 | VOP2_VOP_DPP16 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000111xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x000000000e000000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010100000111xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d5070000 |
Operands
| Name | Description |
|---|---|
VDST | |
SRC0 | |
VSRC1 | |
LITERAL | |
VSRC0 | |
SRC1 |