V_MQSAD_U32_U8
amd_gpu_isa)AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
2026-official
userCDNA1, CDNA2, CDNA3, CDNA4, CDNA5, RDNA1, RDNA2, RDNA3, RDNA3_5, RDNA4, VALUSummary
Perform the V_MSAD_U8 operation four times using different slices of the first array, all entries of the second array and each entry of the third array. Pack each 32-bit value into a 4-entry array and store the array into a vector register. The first input is an 8-entry array of unsigned 8-bit integers, the second input is a 4-entry array of unsigned 8-bit integers and the third input is a 4-entry array of unsigned…
Syntax / Encoding
V_MQSAD_U32_U8 VDST, SRC0, SRC1, SRC2, LITERAL | ENC_VOP3 op=487 [CDNA1,CDNA2,CDNA3,CDNA4]; ENC_VOP3 op=573 [CDNA5,RDNA3,RDNA3_5,RDNA4]; VOP3_INST_LITERAL op=573 [CDNA5,RDNA3,RDNA3_5,RDNA4]
Binary Encodings (5)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101000111100111xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d1e70000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101011000111101xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d63d0000 |
| 96 | VOP3_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101011000111101xxxxxxxxxxxxxxxx | 0x0000000000000000ffff0000 / 0x0000000000000000d63d0000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010101110101xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d5750000 |
| 96 | VOP3_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010101110101xxxxxxxxxxxxxxxx | 0x0000000000000000ffff0000 / 0x0000000000000000d5750000 |
Operands
| Name | Description |
|---|---|
VDST | |
SRC0 | |
SRC1 | |
SRC2 | |
LITERAL |