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 4; RUN: llc -mtriple=i686-w64-mingw32 < %s -o - | FileCheck --check-prefix=MINGW %s 5 6declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) 7declare dso_local void @other(i8*) 8declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) 9 10define dso_local void @func() sspstrong { 11entry: 12; MINGW-LABEL: func: 13; MINGW: mov{{l|q}} .refptr.[[PREFIX:_?]]__stack_chk_guard{{(\(%rip\))?}}, [[REG:%[a-z]+]] 14; MINGW: mov{{l|q}} ([[REG]]) 15; MINGW: call{{l|q}} [[PREFIX]]other 16; MINGW: mov{{l|q}} ([[REG]]) 17; MINGW: call{{l|q}} [[PREFIX]]__stack_chk_fail 18 19; MSVC-LABEL: func: 20; MSVC: mov{{l|q}} __security_cookie 21; MSVC: callq other 22; MSVC: callq __security_check_cookie 23; MSVC: .seh_endproc 24 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) 29 ret void 30} 31