AMDGPU: Add more flat scratch load and store tests for 8 and 16-bit types
authorPetar Avramovic <Petar.Avramovic@amd.com>
Wed, 1 Mar 2023 18:00:04 +0000 (19:00 +0100)
committerPetar Avramovic <Petar.Avramovic@amd.com>
Thu, 2 Mar 2023 12:20:14 +0000 (13:20 +0100)
commitc77bd1fe15fe253df71c95cbf6272390056b50ef
tree3666d33b8f0438e2a8a4e8b592e5bb3ab922825a
parent170e7a0ec2e6d29cb642ece0bf34f395453d5e68
AMDGPU: Add more flat scratch load and store tests for 8 and 16-bit types

Add tests for more complicated scratch load and store patterns.
Includes:
- sign and zero extending loads of i8 and i16 to i32 into 32-bit register
- D16 instructions that affect only high or low 16 bits of 32-bit register
 - D16 sign and zero extending loads of i8 to i16 into high or low 16 bits
   of 32-bit register
 - D16 loads of i16 to high or low 16 bits of 32-bit register
 - D16 stores of i8 and i16 from high 16 bits of 32-bit register

Differential Revision: https://reviews.llvm.org/D145081
llvm/test/CodeGen/AMDGPU/flat-scratch-i8-i16.ll [new file with mode: 0644]