[all-commits] [llvm/llvm-project] 876c62: [RISCV][MC] Warn if SEW/LMUL may not be compatible

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Mon Jun 10 23:29:13 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 876c6204f12fa2738ff8ca886e664b826847d6d4
      https://github.com/llvm/llvm-project/commit/876c6204f12fa2738ff8ca886e664b826847d6d4
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/test/MC/RISCV/rvv/vsetvl.s

  Log Message:
  -----------
  [RISCV][MC] Warn if SEW/LMUL may not be compatible

According to RVV spec:
> In general, the requirement is to support LMUL ≥ SEWMIN/ELEN,
> where SEWMIN is the narrowest supported SEW value and ELEN is
> the widest supported SEW value.
>
> For a given supported fractional LMUL setting, implementations
> must support SEW settings between SEWMIN and LMUL * ELEN, inclusive.

We print a warning if these requirements are not met.

Reviewers: kito-cheng, asb, frasercrmck, jrtc27, michaelmaitland, lukel97

Reviewed By: lukel97

Pull Request: https://github.com/llvm/llvm-project/pull/94313



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