[llvm] [llvm-objdump] Add the --visualize-jumps option (PR #74858)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 07:45:46 PST 2023


================
@@ -0,0 +1,69 @@
+// RUN: llvm-mc < %s -triple aarch64 -filetype=obj | \
+// RUN:   llvm-objdump --triple aarch64 -d --visualize-jumps=unicode - | \
+// RUN:   diff - %p/Inputs/visualize-jumps-aarch64-unicode.txt
----------------
jh7370 wrote:

Rather than have the expected files in a separate location, please include them within this file. You can use `split-file` to divide a test file into multiple components (e.g. assembly and expected output).

That being said, a better method of testing would be to use FileCheck, with the expected input being the check patterns used by FileCheck.

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


More information about the llvm-commits mailing list