[clang] [llvm] [RISCV][MC] Support experimental Zilx extension (PR #209419)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 25 11:57:04 PDT 2026


================
@@ -0,0 +1,34 @@
+# RUN: not llvm-mc -triple=riscv32 --mattr=+experimental-zilx %s 2>&1 \
+# RUN:        | FileCheck %s --check-prefixes=CHECK-ERROR,CHECK-RV32-ERROR
+# RUN: not llvm-mc -triple=riscv64 --mattr=+experimental-zilx %s 2>&1 \
+# RUN:        | FileCheck %s --check-prefix=CHECK-ERROR
+
+# Zilx loads take three registers; the memory-operand syntax is not accepted.
----------------
topperc wrote:

`(reg), reg` for unscaled is consistent with the vector indexed load/store if that counts for anything.

https://github.com/llvm/llvm-project/pull/209419


More information about the cfe-commits mailing list