See bug 36836: https://bugs.llvm.org/show_bug.cgi?id=36836
Syntax of "scratch" instructions is identical to that of s_load/s_store.
The only difference is in semantics. “Scratch” variants multiply offset from SGPR by 64 (wavefront size).
Paths
| Differential D44832
[AMDGPU][MC][GFX9] Added s_scratch* instructions ClosedPublic Authored by dp on Mar 23 2018, 9:10 AM.
Details Summary See bug 36836: https://bugs.llvm.org/show_bug.cgi?id=36836 Syntax of "scratch" instructions is identical to that of s_load/s_store.
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 4 others. · View Herald TranscriptMar 23 2018, 9:10 AM
This revision is now accepted and ready to land.Mar 26 2018, 4:17 PM Closed by commit rL328704: [AMDGPU][MC][GFX9] Added s_scratch* instructions (authored by dpreobra). · Explain WhyMar 28 2018, 7:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 139816 lib/Target/AMDGPU/SMInstructions.td
test/MC/AMDGPU/smem.s
test/MC/Disassembler/AMDGPU/smem_gfx9.txt
|
This should use HasFlatScratchInsts instead of isGFX9