AMD VOP2_VOP_SDWA
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
Summary
Official AMD 64-bit instruction encoding format VOP2_VOP_SDWA across CDNA1, CDNA2, CDNA3, CDNA4, RDNA1, RDNA2.
Syntax / Encoding
VOP2_VOP_SDWA (64b) mask=0x00000000fe000000 match=0x0000000000000000
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 64 | VOP2_VOP_SDWA | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000000xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x0000000000000000 |
Bitfields (20)
| Bits | Field | Description |
|---|---|---|
63 | S1 | If 0 vsrc1 in VOP2/VOPC is VGPR address. If 1 vsrc1 is SGPR or built in inline constant. |
61 | SRC1_ABS | If true, take the floating-point absolute value of src1. |
60 | SRC1_NEG | If true, take the floating-point negation of src1. |
59 | SRC1_SEXT | If true, sign-extend data for src1. If false, zero-extend. |
58:56 | SRC1_SEL | Source data select for src1. |
55 | S0 | If 0 vsrc0 is VGPR address. If 1 vsrc0 is SGPR or built in inline constant. |
53 | SRC0_ABS | If true, take the floating-point absolute value of src0. |
52 | SRC0_NEG | If true, take the floating-point negation of src0. |
51 | SRC0_SEXT | If true, sign-extend data for src0. If false, zero-extend. |
50:48 | SRC0_SEL | Source data select for src0. |
47:46 | OMOD | Output modifier for instruction. |
45 | CLAMP | If true, clamp output. |
44:43 | DST_UNUSED | Format for unused destination bits. |
42:40 | DST_SEL | Destination data select. |
39:32 | VSRC0 | VGPR address for src0. |
31 | ENCODING | Encoding. |
30:25 | OP | Opcode. |
24:17 | VDST | Destination for instruction. |
16:9 | VSRC1 | Second operand for instruction. |
8:0 | SRC0 | First operand for instruction. |