llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[mc] buffer_load -- lds attribute is not supported.

Open atamazov opened this issue 10 years ago • 6 comments

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.

atamazov avatar Jun 21 '16 16:06 atamazov

Closed by commit rL325676

http://llvm.org/viewvc/llvm-project?rev=325676&view=rev

dpreobra avatar Feb 21 '18 13:02 dpreobra

The ifx is in review, https://reviews.llvm.org/D43472

atamazov avatar Feb 20 '18 15:02 atamazov

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.

atamazov avatar Feb 14 '18 20:02 atamazov

Becomes more important due to tensile related work.

atamazov avatar Feb 14 '18 12:02 atamazov

With r278539, the issue is still observed.

atamazov avatar Aug 16 '16 17:08 atamazov

assigned to @dpreobra

atamazov avatar Jun 21 '16 16:06 atamazov