[lldb] [llvm] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 02:50:50 PDT 2025
================
@@ -0,0 +1,30 @@
+# REQUIRES: riscv
+
+# This test verifies that disassemble -b prints out the correct bytes and
+# format for standard and unknown riscv instructions of various sizes,
+# and that unknown instructions show opcodes and disassemble as "<unknown>".
+# It also tests that the fdis command from examples/python/filter_disasm.py
+# pipes the disassembly output through a simple filter program correctly.
+
+
+# RUN: llvm-mc -filetype=obj -mattr=+c --triple=riscv32-unknown-unknown %s -o %t
+# RUN: %lldb -b %t -o "command script import %S/../../../examples/python/filter_disasm.py" -o "fdis set %S/Inputs/dis_filt.sh" -o "fdis -n main" | FileCheck %s
----------------
DavidSpickett wrote:
Could you add a run line that does not filter? Then if we break the filter bit only, we can tell.
You could make the Fake filter lines another CHECK, and the filter RUN line can check for both CHECK prefixes.
https://github.com/llvm/llvm-project/pull/145793
More information about the llvm-commits
mailing list