[all-commits] [llvm/llvm-project] 29d423: [RISCV] Decode vtype with reserved fields to raw i...

Ben Shi via All-commits all-commits at lists.llvm.org
Tue Nov 30 00:31:44 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29d4230d6b528ebf14dcd5dc610ee0d937a23d51
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
    A llvm/test/MC/RISCV/rvv/vsetvl-invalid.s

  Log Message:
  [RISCV] Decode vtype with reserved fields to raw immediate

This patch fixes a crash when doing "llvm-objdump -D --mattr=+experimental-v"
against an object file which happens to keep a word that can be decoded to
VSETVLI & VSETIVLI with reserved vlmul[2:0]=4. All vtype values with
reserved fields (vlmul[2:0]=4, vsew[2:0]=0b1xx, non-zero bits 8/9/10) are
printed to raw immediate.

Reviewed By: jhenderson, jrtc27, craig.topper

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

More information about the All-commits mailing list