================
@@ -0,0 +1,83 @@
+# RUN: llvm-mc -triple=riscv64 -show-encoding 
-mattr=+experimental-zvqwbdota8i,+experimental-zvqwbdota16i,+experimental-zvfwbdota16bf,+experimental-zvfqwbdota8f,+experimental-zvfbdota32f
 %s \
+# RUN:   | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
+# RUN: not llvm-mc -triple=riscv64 -show-encoding -mattr=+v %s 2>&1 \
+# RUN:   | FileCheck %s --check-prefix=CHECK-ERROR
+# RUN: llvm-mc -triple=riscv64 -filetype=obj 
-mattr=+experimental-zvqwbdota8i,+experimental-zvqwbdota16i,+experimental-zvfwbdota16bf,+experimental-zvfqwbdota8f,+experimental-zvfbdota32f
 %s \
+# RUN:    | llvm-objdump -d 
--mattr=+experimental-zvqwbdota8i,+experimental-zvqwbdota16i,+experimental-zvfwbdota16bf,+experimental-zvfqwbdota8f,+experimental-zvfbdota32f
 --no-print-imm-hex - \
+# RUN:    | FileCheck %s --check-prefix=CHECK-INST
+
+# CHECK-INST: vsetvli zero, zero, e8alt, m1, ta, ma
+# CHECK-ENCODING: [0x57,0x70,0x00,0x1c]
+vsetvli zero, zero, e8alt, m1, ta, ma
----------------
wangpc-pp wrote:

Do we need to duplicate these tests for `alt` FPs?

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