1 ; RUN: llc -mtriple=x86_64-w64-mingw32 < %s -o - | FileCheck --check-prefix=MINGW %s
2 ; RUN: llc -mtriple=x86_64-pc-windows-itanium < %s -o - | FileCheck --check-prefix=MSVC %s
3 ; RUN: llc -mtriple=x86_64-pc-windows-msvc < %s -o - | FileCheck --check-prefix=MSVC %s
5 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
6 declare dso_local void @other(i8*)
7 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)
9 define dso_local void @func() sspstrong {
12 ; MINGW: mov{{l|q}} .refptr.__stack_chk_guard(%rip), [[REG:%[a-z]+]]
13 ; MINGW: mov{{l|q}} ([[REG]])
15 ; MINGW: mov{{l|q}} ([[REG]])
16 ; MINGW: callq __stack_chk_fail
20 ; MSVC: mov{{l|q}} __security_cookie
22 ; MSVC: callq __security_check_cookie
25 %c = alloca i8, align 1
26 call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %c)
27 call void @other(i8* nonnull %c)
28 call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %c)