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

Mariusz Sikora via All-commits all-commits at lists.llvm.org
Tue Apr 28 12:24:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cd6f4a7744bf286df20bcae13fbb7b254232ee4
      https://github.com/llvm/llvm-project/commit/3cd6f4a7744bf286df20bcae13fbb7b254232ee4
  Author: Mariusz Sikora <mariusz.sikora at amd.com>
  Date:   2026-04-28 (Tue, 28 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 (#194449)

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