[clang] [llvm] [RISCV][MC] Support experimental Zilx extension (PR #209419)
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 08:05:50 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.
----------------
arichardson wrote:
Is there any rationale for this? I would have expected the natural asm spelling to be `lxh a0, a2(a1)`?
https://github.com/llvm/llvm-project/pull/209419
More information about the cfe-commits
mailing list