summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/HWAddressSanitizer/alloca-array.ll
blob: 7a83d0e2bb0268baf014f4bf5de3811e2a6aac50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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"

declare void @use(i8*, i8*)

define void @test_alloca() sanitize_hwaddress {
  ; CHECK: alloca { [4 x i8], [12 x i8] }, align 16
  %x = alloca i8, i64 4
  ; CHECK: alloca i8, i64 16, align 16
  %y = alloca i8, i64 16
  call void @use(i8* %x, i8* %y)
  ret void
}
OpenPOWER on IntegriCloud