V_QSAD_PK_U16_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_SAD_U8 operation four times using different slices of the first array, all entries of the second array and each entry of the third array. Truncate each result to 16 bits, pack the values 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…
Syntax / Encoding
V_QSAD_PK_U16_U8 VDST, SRC0, SRC1, SRC2, LITERAL | ENC_VOP3 op=485 [CDNA1,CDNA2,CDNA3,CDNA4]; ENC_VOP3 op=570 [CDNA5,RDNA3,RDNA3_5,RDNA4]; VOP3_INST_LITERAL op=570 [CDNA5,RDNA3,RDNA3_5,RDNA4]
Binary Encodings (5)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101000111100101xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d1e50000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101011000111010xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d63a0000 |
| 96 | VOP3_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101011000111010xxxxxxxxxxxxxxxx | 0x0000000000000000ffff0000 / 0x0000000000000000d63a0000 |
| 64 | ENC_VOP3 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010101110010xxxxxxxxxxxxxxxx | 0x00000000ffff0000 / 0x00000000d5720000 |
| 96 | VOP3_INST_LITERAL | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1101010101110010xxxxxxxxxxxxxxxx | 0x0000000000000000ffff0000 / 0x0000000000000000d5720000 |
Operands
| Name | Description |
|---|---|
VDST | |
SRC0 | |
SRC1 | |
SRC2 | |
LITERAL |