[PATCH] D85941: AMDGPU: Correct definitions for global saddr instructions

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 15:13:21 PDT 2020


arsenm created this revision.
arsenm added reviewers: rampitec, dp, vpykhtin.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: LLVM.
arsenm requested review of this revision.
Herald added a subscriber: wdng.

The VGPR component is a 32-bit offset, not 64-bits.

      

I'm not sure what the correct syntax is for this. This maintains the
vaddr position and leaves saddr in the end "off" position. This is
particularly terrible for stores, since the operand order is now <vgpr
offset>, <data>, <sgpr base>, splitting the pointer operands. I
suppose this is a logical consequence from the mistake of not putting
the data operand first. I'm not sure what sp3 does.


https://reviews.llvm.org/D85941

Files:
  llvm/lib/Target/AMDGPU/FLATInstructions.td
  llvm/test/CodeGen/AMDGPU/sdwa-ops.mir
  llvm/test/MC/AMDGPU/flat-global.s
  llvm/test/MC/AMDGPU/gfx1030_new.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85941.285508.patch
Type: text/x-patch
Size: 12981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/c81faf8b/attachment.bin>


More information about the llvm-commits mailing list