[llvm-branch-commits] [RISCV][MC] Warn if SEW/LMUL may not be compatible (PR #94313)
Luke Lau via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 4 03:06:56 PDT 2024
================
@@ -71,18 +73,21 @@ vsetvli a2, a0, e32, m8, ta, ma
vsetvli a2, a0, e32, mf2, ta, ma
# CHECK-INST: vsetvli a2, a0, e32, mf2, ta, ma
+# CHECK-WARNING: :[[#@LINE-2]]:17: warning: SEW > 16 may not be compatible with all RVV implementations{{$}}
# CHECK-ENCODING: [0x57,0x76,0x75,0x0d]
# CHECK-ERROR: instruction requires the following: 'V' (Vector Extension for Application Processors), 'Zve32x' (Vector Extensions for Embedded Processors){{$}}
# CHECK-UNKNOWN: 0d757657 <unknown>
vsetvli a2, a0, e32, mf4, ta, ma
# CHECK-INST: vsetvli a2, a0, e32, mf4, ta, ma
+# CHECK-WARNING: :[[#@LINE-2]]:17: warning: SEW > 8 may not be compatible with all RVV implementations{{$}}
----------------
lukel97 wrote:
I see that the spec recommends that we warn when LMUL < SEWMIN/ELEN, but do we need to warn for SEW > LMUL * ELEN? IIUC this cause a warning on zve64x too since 32 > 1/4 * 64
https://github.com/llvm/llvm-project/pull/94313
More information about the llvm-branch-commits
mailing list