================
@@ -0,0 +1,18 @@
+# RUN: not llvm-mc -triple=riscv64 
-mattr=+experimental-zvqwbdota8i,+experimental-zvqwbdota16i,+experimental-zvfwbdota16bf,+experimental-zvfqwbdota8f,+experimental-zvfbdota32f
 %s 2>&1 \
+# RUN:   | FileCheck %s --check-prefix=CHECK-ERROR
+
+# Invalid vsetvli
+# CHECK-ERROR: operand must be 
e[8|8alt|16|16alt|32|64],m[1|2|4|8|f2|f4|f8],[ta|tu],[ma|mu]{{$}}
+vsetvli a0, zero, e888, m1, ta, ma
+
+# Invalid ci
+# CHECK-ERROR: immediate must be an integer in the range [0, 7]{{$}}
+vqwbdotau.vv v8, v16, v12, 8
+
+# Invalid vs2
+# CHECK-ERROR: invalid operand for instruction{{$}}
+vqwbdotau.vv v8, v17, v12, 1
+
+# Invalid vs2 and ci
+# CHECK-ERROR: invalid operand for instruction{{$}}
----------------
topperc wrote:

can we check the column number in the error message? There are 2 invalid 
things, which one is being flagged?

https://github.com/llvm/llvm-project/pull/196467
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to