AMD VOP2_VOP_SDWA_SDST_ENC
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_SDST_ENC across CDNA1, CDNA2, CDNA3, CDNA4, RDNA1, RDNA2.
Syntax / Encoding
VOP2_VOP_SDWA_SDST_ENC (64b) mask=0x00000000fe000000 match=0x0000000032000000
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 64 | VOP2_VOP_SDWA_SDST_ENC | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0011001xxxxxxxxxxxxxxxxxxxxxxxxx | 0x00000000fe000000 / 0x0000000032000000 |
Bitfields (18)
| 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 | SD | If 1 SDST used. If 0 bits 8:15 used as SDWA destination control. |
46:40 | SDST | Destination for compare result. |
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. |