summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/HWAddressSanitizer/basic-compat.ll
blob: 22626ed50c27e5246a8ecfc2f717d8887745a237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Test that the old outlined check is used with old API levels.

; RUN: opt < %s -hwasan -S | FileCheck %s

target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux-android"

define i8 @test_load8(i8* %a) sanitize_hwaddress {
; CHECK-LABEL: @test_load8(
; CHECK: call void @llvm.hwasan.check.memaccess(i8* {{.*}}, i8* {{.*}}, i32 0)
  %b = load i8, i8* %a, align 4
  ret i8 %b
}
OpenPOWER on IntegriCloud