[llvm-branch-commits] [clang] [Clang][RISCV] Allow riscv_rvv_vector_bits typedefs shorter than VLEN*LMUL (PR #237846)
Craig Topper via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 2 09:54:50 PST 2026
================
@@ -0,0 +1,80 @@
+// Tests for riscv_rvv_vector_bits when no fixed VLEN is supplied (i.e. no
+// -mrvv-vector-bits=). The bound for riscv_rvv_vector_bits(N) on
+// a data type then comes from the ISA's Zvl*b extension, scaled by LMUL.
+//
+// Bound: N <= MinElts * EltSize * zvl / RVVBitsPerBlock = zvl * LMUL (bits)
----------------
topperc wrote:
I would avoid the mention of MinElts and RVVBitsPerBlock here.
https://github.com/llvm/llvm-project/pull/237846
More information about the llvm-branch-commits
mailing list