[llvm] [llvm-objdump][RISCV] Use ISA mapping symbols for per-region disassembly (PR #193448)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 19:23:21 PDT 2026


================
@@ -1,6 +1,7 @@
 # RUN: llvm-mc %s -triple=riscv32 -M no-aliases -show-encoding \
 # RUN:     | FileCheck -check-prefixes=CHECK-ASM %s
-# RUN: llvm-mc -filetype=obj -triple=riscv32 < %s \
+# RUN: llvm-mc -filetype=obj -triple=riscv32 \
+# RUN:     -mattr=+xqcilia,+xqcilo,+xqcibi,+xqcilb < %s \
 # RUN:     | llvm-objdump --mattr=+xqcilia,+xqcilo,+xqcibi,+xqcilb \
----------------
lenary wrote:

This test change does make me a little concerned. As far as I can see, now the `-mattr=...` argument to llvm-objdump is entirely overridden by mapping symbols?

I get that this change means people have to use `-mattr=` less (and it was an internal feature anyway), but what do users do if they want to disassemble additional features that aren't in the mapping symbols?


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


More information about the llvm-commits mailing list