• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test that the old outlined check is used with old API levels.
2
3; RUN: opt < %s -hwasan -S | FileCheck %s
4
5target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
6target triple = "aarch64--linux-android"
7
8define i8 @test_load8(i8* %a) sanitize_hwaddress {
9; CHECK-LABEL: @test_load8(
10; CHECK: call void @llvm.hwasan.check.memaccess(i8* {{.*}}, i8* {{.*}}, i32 0)
11  %b = load i8, i8* %a, align 4
12  ret i8 %b
13}
14