In developing d16 support for buffer and image instructions, we introduced GFX80_UNPACKED decoder namespace.
Thus we need to add the decoding of instructions in this new namespace.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
We have encoding test in MC. Can anyone suggest whether there should be any decoding tests in LIT? Thanks.
Comment Actions
It would be nice to have a few decoding tests as there is currently zero _d16 coverage for disassembler.
BTW, there is no difference in data size for affected MIMG instructions. Currently data size in dwords = count_population(dmask) + tfe. How does d16 affect this number?
I was unable to find anything helpful in docs and SP3 output is not affected by d16 for gfx9. Are data in VGPRs really packed for MIMG? :-)
Comment Actions
For MIMG, to determine the data size for d16, we need to know whether the target has the feature UnpackedD16VMem (gfx8.0),
- if that feature is set, the data size is the same as without D16 bit set;
- if that feature is not set, then the data size is "half" of the size because we can packed two f16 into one register.