llvm-project
b950e398 - [AMDGPU] Use constant LDS addresses in ds_append/ds_consume tests. NFC

Commit
1 day ago
[AMDGPU] Use constant LDS addresses in ds_append/ds_consume tests. NFC LDS ds_append/ds_consume ignore M0 and take the whole address from the 16 bit offset field, so only constant LDS addresses can be encoded. Switch the LDS cases to constant addresses, drop the dynamic LDS address cases, add gfx11 RUN lines, split the SDAG and GlobalISel prefixes and autogenerate the checks. GDS cases now set "amdgpu-gds-size" so the M0 size field is covered. This records the current wrong output. LDS puts the address in M0 instead of the offset field. GDS puts the raw address in M0 instead of `(addr << 16) | gds_size`. ``` ; ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3))) s_mov_b32 m0, 16 ds_append v0 ; ds.append.p2(ptr addrspace(2) inttoptr (i32 16 to ptr addrspace(2))) s_mov_b32 m0, 16 ds_append v0 gds ``` target-mem-intrinsic-metadata.ll also switches to a constant LDS address.
Author
Committer
Parents
Loading