[all-commits] [llvm/llvm-project] 453aba: [RISC-V][MC] Validate instructions prior to emissi...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Tue Sep 29 21:23:42 PDT 2026


  Branch: refs/heads/users/arichardson/spr/risc-vmc-validate-instructions-prior-to-emission-in-asmparser
  Home:   https://github.com/llvm/llvm-project
  Commit: 453aba07e3e3de7476e91112c3eab6482762290d
      https://github.com/llvm/llvm-project/commit/453aba07e3e3de7476e91112c3eab6482762290d
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

  Log Message:
  -----------
  [RISC-V][MC] Validate instructions prior to emission in AsmParser

This ensures that broken AsmParser pseudo expansions trigger an error.
Noticed this while adding Y extension support where expanding pseudos
generated instructions that were failing predicates and/or using the
wrong register class, but since the encoded .o bit pattern as well as
the assembly output are the same for mode-dependent instructions, this
was not immediately obvious and only shows up with --show-inst.
Verify predicates and operand register classes prior to emission.

Ideally we would do this in a target-independent way, but for now this
only checks RISC-V outputs.



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