1; RUN: opt -safe-stack -safe-stack-coloring -S -mtriple=aarch64-linux-android < %s -o - | FileCheck %s 2 3define void @foo() nounwind uwtable safestack { 4entry: 5; CHECK: %[[TP:.*]] = call i8* @llvm.thread.pointer() 6; CHECK: %[[SPA0:.*]] = getelementptr i8, i8* %[[TP]], i32 72 7; CHECK: %[[SPA:.*]] = bitcast i8* %[[SPA0]] to i8** 8; CHECK: %[[USP:.*]] = load i8*, i8** %[[SPA]] 9; CHECK: %[[USST:.*]] = getelementptr i8, i8* %[[USP]], i32 -16 10; CHECK: store i8* %[[USST]], i8** %[[SPA]] 11 12 %a = alloca i8, align 8 13 br label %ret 14 15ret: 16 ret void 17 18dead: 19 call void @Capture(i8* %a) 20 br label %ret 21} 22 23declare void @Capture(i8*) 24