[all-commits] [llvm/llvm-project] 77e63b: [AMDGPU] Fix assertion failure on mad with negativ...

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Jun 27 01:49:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77e63b25f9e90320339b621e53738b330c5f1fa3
      https://github.com/llvm/llvm-project/commit/77e63b25f9e90320339b621e53738b330c5f1fa3
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
    M llvm/test/CodeGen/AMDGPU/mad_u64_u32.ll

  Log Message:
  -----------
  [AMDGPU] Fix assertion failure on mad with negative immediate addend

Without this, the new test case would fail with:

AMDGPUInstPrinter.cpp:545: void llvm::AMDGPUInstPrinter::printImmediate64(uint64_t, const llvm::MCSubtargetInfo &, llvm::raw_ostream &): Assertion `isUInt<32>(Imm) || Imm == 0x3fc45f306dc9c882' failed.

Differential Revision: https://reviews.llvm.org/D128435




More information about the All-commits mailing list