[llvm-branch-commits] [llvm-objdump] Support --symbolize-operand on AArch64 (PR #145009)

James Henderson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jun 23 00:35:37 PDT 2025


================
@@ -0,0 +1,42 @@
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objdump %t -d --symbolize-operands --no-show-raw-insn --no-leading-addr | \
+# RUN:   FileCheck %s --match-full-lines
+# RUN: llvm-objdump %t -d --symbolize-operands --no-show-raw-insn --no-leading-addr --adjust-vma=0x2000 | \
+# RUN:   FileCheck %s --match-full-lines
+
+## Expect to find the branch labels and global variable name.
+# CHECK:      <_start>:
+# CHECK-NEXT:   ldr x0, <symbol>
+# CHECK-NEXT: <L0>:
+# CHECK-NEXT:   adrp x1, 0x{{[68]}}000 <symbol+0xff4>
----------------
jh7370 wrote:

Personally, I'd prefer this to use either a) a FileCheck -D option to specify the expected value in each specific case, or b) a different check prefix for each case, to ensure the maximum tightness for the test, as this could pass even though the wrong value is being used.

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


More information about the llvm-branch-commits mailing list