brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 259f039 Raw
33 lines · plain
1; RUN: llc -mtriple=x86_64-w64-mingw32        < %s -o - | FileCheck --check-prefix=MINGW %s2; RUN: llc -mtriple=x86_64-pc-cygwin          < %s -o - | FileCheck --check-prefix=MINGW %s3; RUN: llc -mtriple=x86_64-pc-windows-itanium < %s -o - | FileCheck --check-prefix=MSVC  %s4; RUN: llc -mtriple=x86_64-pc-windows-msvc    < %s -o - | FileCheck --check-prefix=MSVC  %s5; RUN: llc -mtriple=i686-w64-mingw32          < %s -o - | FileCheck --check-prefix=MINGW %s6; RUN: llc -mtriple=i686-pc-cygwin            < %s -o - | FileCheck --check-prefix=MINGW %s7 8declare void @llvm.lifetime.start.p0(i64, ptr nocapture)9declare dso_local void @other(ptr)10declare void @llvm.lifetime.end.p0(i64, ptr nocapture)11 12define dso_local void @func() sspstrong {13entry:14; MINGW-LABEL: func:15; MINGW: mov{{l|q}}  .refptr.[[PREFIX:_?]]__stack_chk_guard{{(\(%rip\))?}}, [[REG:%[a-z]+]]16; MINGW: mov{{l|q}}  ([[REG]])17; MINGW: call{{l|q}} [[PREFIX]]other18; MINGW: mov{{l|q}}  ([[REG]])19; MINGW: call{{l|q}} [[PREFIX]]__stack_chk_fail20 21; MSVC-LABEL: func:22; MSVC: mov{{l|q}} __security_cookie23; MSVC: callq other24; MSVC: callq __security_check_cookie25; MSVC: .seh_endproc26 27  %c = alloca i8, align 128  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %c)29  call void @other(ptr nonnull %c)30  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %c)31  ret void32}33