[all-commits] [llvm/llvm-project] c39fba: [AMDGPU] S_SET_GPR_IDX_ON can be passed an immedia...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Thu Jan 30 08:40:36 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c39fba209ce655cf5997878b0bf794da269f008a
      https://github.com/llvm/llvm-project/commit/c39fba209ce655cf5997878b0bf794da269f008a
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2025-01-30 (Thu, 30 Jan 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    A llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll

  Log Message:
  -----------
  [AMDGPU] S_SET_GPR_IDX_ON can be passed an immediate index (#125086)

Oversight found by ISel fuzz effort. Assuming the argument is a
register, in some cases it can be an immediate. Tablegen's type for the
instruction is SSrc_b32, i.e. register or immediate fine. Added the
repro from the bug reporter as a test case - prior to this patch llvm
will assert in getReg.

Fixes SWDEV-508589



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