This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add more flat scratch load and store tests for 8 and 16-bit types
ClosedPublic

Authored by Petar.Avramovic on Mar 1 2023, 10:04 AM.

Details

Summary

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 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

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 10:04 AM
Petar.Avramovic requested review of this revision.Mar 1 2023, 10:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 10:04 AM
foad accepted this revision.Mar 2 2023, 3:18 AM

Looks good, thanks!

This revision is now accepted and ready to land.Mar 2 2023, 3:18 AM