[llvm] [bolt][aarch64] Change indirect call instrumentation snippet (PR #180229)

YongKang Zhu via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 10:29:16 PST 2026


================
@@ -15,9 +15,57 @@ int main() {
 REQUIRES: system-linux,bolt-runtime
 
 RUN: %clang %cflags %s -o %t.exe -Wl,-q -no-pie -fpie
+RUN: llvm-objdump --disassemble-symbols=main %t.exe \
+RUN:   | FileCheck %s --check-prefix=CHECKINDIRECTREG
+
+CHECKINDIRECTREG: mov w0, #0xa
+CHECKINDIRECTREG-NEXT: mov w1, #0x14
+CHECKINDIRECTREG-NEXT: blr x8
----------------
yozhu wrote:

Could we extend this test to include an indirect call of `blr x0`?

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


More information about the llvm-commits mailing list