[all-commits] [llvm/llvm-project] 538090: [AMDGPU] Validate user SGPR count against HW range...

Mariusz Sikora via All-commits all-commits at lists.llvm.org
Mon Apr 27 12:59:03 PDT 2026


  Branch: refs/heads/users/mariusz-sikora-at-amd/pub-tighten-user-sgpr-validation
  Home:   https://github.com/llvm/llvm-project
  Commit: 538090ca459118c36f07eed12a5a3da1204e7073
      https://github.com/llvm/llvm-project/commit/538090ca459118c36f07eed12a5a3da1204e7073
  Author: Mariusz Sikora <mariusz.sikora at amd.com>
  Date:   2026-04-27 (Mon, 27 Apr 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
    A llvm/test/MC/AMDGPU/hsa-gfx12-v4-user-sgpr-err.s
    A llvm/test/MC/AMDGPU/hsa-gfx125x-v4-user-sgpr-err.s

  Log Message:
  -----------
  [AMDGPU] Validate user SGPR count against HW range, not field width

The previous validation checked only the field width,
allowing values that exceeded the actual hardware limits
(e.g. 0–16 on gfx6-gfx120 and 0–32 on gfx125x) as long
as they fit in the bit width.
Tighten validation to reject out-of-range user SGPR counts.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list