[PATCH] D145081: AMDGPU: Add more flat scratch load and store tests for 8 and 16-bit types

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 10:04:07 PST 2023


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm.
Herald added subscribers: kosarev, StephenFan, kerbowa, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Add tests for more complicated flat scratch load and store patterns.
Includes:

- sign and zero extending loads of i8 and i16 to i32 into 32-bit register
- D16 <https://reviews.llvm.org/D16> instructions that affect only high or low 16 bits of 32-bit register
  - D16 <https://reviews.llvm.org/D16> sign and zero extending loads of i8 to i16 into high or low 16 bits of 32-bit register
  - D16 <https://reviews.llvm.org/D16> loads of i16 to high or low 16 bits of 32-bit register
  - D16 <https://reviews.llvm.org/D16> stores of i8 and i16 from high 16 bits of 32-bit register


https://reviews.llvm.org/D145081

Files:
  llvm/test/CodeGen/AMDGPU/flat-scratch-i8-i16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145081.501562.patch
Type: text/x-patch
Size: 44191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/f9997d51/attachment.bin>


More information about the llvm-commits mailing list