[all-commits] [llvm/llvm-project] e3adf6: [RISCV] Use decodeCLUIImmOperand when disassemblin...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 31 21:49:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3adf6bbfc72de043cffb3144079a9eb85e9ca40
      https://github.com/llvm/llvm-project/commit/e3adf6bbfc72de043cffb3144079a9eb85e9ca40
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-03-31 (Mon, 31 Mar 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoC.td
    M llvm/test/MC/Disassembler/RISCV/c_lui_disasm.txt

  Log Message:
  -----------
  [RISCV] Use decodeCLUIImmOperand when disassembling C_LUI_HINT. (#133789)

This correctly rejects imm==0 and prints 1048575 instead of -1.

I've modified the test to only have each hex pattern once with different
check lines before it. This ensures we don't have more invalid messages
printed than we're checking for.



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