Skip to content

Commit 3d231ab

Browse files
saveasguyanton-afanasyev
authored andcommitted
[RISCV][AsmParser] Pre-commit test on unsupported vset{i}vli instruction omitting LMUL (NFC)
1 parent 1469d82 commit 3d231ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/test/MC/RISCV/rvv/invalid.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# RUN: not llvm-mc -triple=riscv64 --mattr=+v --mattr=+f %s 2>&1 \
22
# RUN: | FileCheck %s --check-prefix=CHECK-ERROR
33

4+
vsetvli a2, a0, e8, ta, ma
5+
# CHECK-ERROR: operand must be e[8|16|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu]
6+
7+
vsetivli a2, 16, e8, ta, ma
8+
# CHECK-ERROR: operand must be e[8|16|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu]
9+
410
vsetivli a2, 32, e8,m1
511
# CHECK-ERROR: operand must be e[8|16|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu]
612

0 commit comments

Comments
 (0)