[all-commits] [llvm/llvm-project] c6b56c: [RISCV] Check that SEW and policy operands are imm...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Jun 26 11:45:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6b56cec8b208801f84b030be24c1738089fe239
      https://github.com/llvm/llvm-project/commit/c6b56cec8b208801f84b030be24c1738089fe239
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

  Log Message:
  -----------
  [RISCV] Check that SEW and policy operands are immediates in verifier

This converts a crash (due an assertion inside getImm) into a verifier failure.  Much easier to debug when you have malformed instructions.




More information about the All-commits mailing list