[llvm] [hwasan] Add intrinsics for fixed shadow on Aarch64 (PR #89319)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 18 15:05:54 PDT 2024


================
@@ -0,0 +1,144 @@
+; RUN: llc --hwasan-mapping-offset=4398046511104 < %s | FileCheck %s
+
+target triple = "aarch64--linux-android"
+
+define ptr @f1(ptr %x0, ptr %x1) {
+  ; CHECK: f1:
+  ; CHECK: str x30, [sp, #-16]!
+  ; CHECK-NEXT: .cfi_def_cfa_offset 16
+  ; CHECK-NEXT: .cfi_offset w30, -16
+  ; CHECK-NEXT: bl __hwasan_check_x1_1
----------------
thurstond wrote:

I manually modified hwasan-check-memaccess.ll (per the commit message) and reviewed the changes for reasonableness. I did not use update_llc_test_checks.

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


More information about the llvm-commits mailing list