[clang] [llvm] [llvm][RISCV] Support batched dot product extensions MC layer (PR #196467)

Pengcheng Wang via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 04:34:03 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list