[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

Jacob Bramley via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 26 09:52:11 PDT 2025


================
@@ -0,0 +1,228 @@
+// RUN: %clang %cflags -march=armv8.3-a %s -o %t.exe
+// RUN: llvm-bolt-binary-analysis --scanners=pauth %t.exe 2>&1 | FileCheck %s
+
+// Test various patterns that should or should not be considered safe
+// materialization of PC-relative addresses.
+//
+// Note that while "instructions that write to the affected registers"
+// section of the report is still technically correct, it does not necessarily
+// mentions the instructions that are used incorrectly.
----------------
jacobbramley wrote:

s/mentions/mention/

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


More information about the llvm-branch-commits mailing list