VINTERP src operands must be VGPRs, but assembler accepts SGPRs as well.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/VINTERPInstructions.td | ||
---|---|---|
67 | I think setting the src operand type to VGPR_32 here is slightly wrong. The comment in SIRegisterInfo.td says use VRegSrc for operands that take only VGPRs and have enum{9} (are 9 bits in the encoding). The encoding for VINTERP has 9 bit fields. Functionally, it does not appear to make a difference. |
I think setting the src operand type to VGPR_32 here is slightly wrong. The comment in SIRegisterInfo.td says use VRegSrc for operands that take only VGPRs and have enum{9} (are 9 bits in the encoding). The encoding for VINTERP has 9 bit fields. Functionally, it does not appear to make a difference.