[mc] buffer_load -- lds attribute is not supported.
| Bugzilla Link | 28234 |
| Resolution | FIXED |
| Resolved on | Feb 21, 2018 05:20 |
| Version | trunk |
| OS | Windows NT |
| Attachments | 00006.tests_tg_gfx7_asm_lit1_bug.06.08.min.buffer_load-lds.zip |
| CC | @atamazov,@dpreobra |
Extended Description
Example of failing instruction:
buffer_load_dword v0, off, s[0:3], s0 offset:4095 lds
Tested with r272673 (git # da10a460d7c98278561225fda90855b303675f35)
GFX7 lit tests attached.
Closed by commit rL325676
http://llvm.org/viewvc/llvm-project?rev=325676&view=rev
The ifx is in review, https://reviews.llvm.org/D43472
Example workaround:
// No range checking, no GPR alignment checking! .macro BUFFER_LOAD_DWORD_OFFEN_OFFSET_LDS vdata, vaddr, srsrc, soffset, offset .long 0xe0511000 + \offset .long 0x00000000 + ((\vdata) << 8) + ((\vaddr) << 0) + (((\srsrc) >> 2) << 16) + ((\soffset) << 24) .endm
BUFFER_LOAD_DWORD_OFFEN_OFFSET_LDS 40,36,24,28,512
The above snippet produces .long 0xe0511000 .long 0x1c062824 which is the encoding of: buffer_load_dword v40, v36, s[24:27], s28 offen offset:512 lds for Gfx8.
Becomes more important due to tensile related work.
With r278539, the issue is still observed.
assigned to @dpreobra