AMD VOP3_INST_LITERAL
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
Summary
Official AMD 96-bit instruction encoding format VOP3_INST_LITERAL across CDNA5, RDNA1, RDNA2, RDNA3, RDNA3_5, RDNA4.
Syntax / Encoding
VOP3_INST_LITERAL (96b) mask=0x0000000000000000ffff0000 match=0x0000000000000000d5810000
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 96 | VOP3_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010110000001xxxxxxxxxxxxxxxx | 0x0000000000000000ffff0000 / 0x0000000000000000d5810000 |
Bitfields (12)
| Bits | Field | Description |
|---|---|---|
95:64 | LITERAL | 32-bit literal constant. |
63:61 | NEG | If NEG[N] set, take the floating-point negation of the N'th input operand. This is applied after absolute value. See OPF_NONEG for a list of instructions that d |
60:59 | OMOD | Output modifier for instruction. Only useful for floating point outputs; integer outputs should set this to OMOD_OFF. Applied before clamping. See OPF_NOOMOD fo |
58:50 | SRC2 | Third source operand for instruction. |
49:41 | SRC1 | Second source operand for instruction. |
40:32 | SRC0 | First source operand for instruction. |
31:26 | ENCODING | Encoding. |
25:16 | OP | Opcode. |
15 | CLAMP | If set, clamp or signal on output. VCMP instructions enable signaling-compare. For floating point outputs, clamp to [0.0, 1.0]. For signed integer outputs, clam |
14:11 | OPSEL | For 16-bit inputs, OPSEL[N] determines if lower [15:0] or upper [31:16] bits are selected for the N'th source operand. Similarly OPSEL[3] controls whether the l |
10:8 | ABS | If ABS[N] set, take the floating-point absolute value of the N'th input operand. This is applied before negation. See OPF_NOABS for instructions that do not all |
7:0 | VDST | Destination operand for instruction. |