[llvm] [aarch64] XOR the frame pointer with the stack cookie when protecting the stack (PR #161114)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 13:07:37 PDT 2025


================
@@ -29,16 +29,16 @@ declare void @_Z7CapturePi(ptr)
 ; FUCHSIA-AARCH64-COMMON: ldr [[D:.*]], [sp,
 ; FUCHSIA-AARCH64-COMMON: cmp [[C]], [[D]]
 
-; WINDOWS-AARCH64: adrp x8, __security_cookie
-; WINDOWS-AARCH64: ldr x8, [x8, :lo12:__security_cookie]
+; WINDOWS-AARCH64: adrp x19, __security_cookie
+; WINDOWS-AARCH64: ldr x8, [x19, :lo12:__security_cookie]
----------------
efriedma-quic wrote:

It's probably worth making the test check for the "eor" instruction.

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


More information about the llvm-commits mailing list