forked from OSchip/llvm-project
27 lines
665 B
LLVM
27 lines
665 B
LLVM
; RUN: llc -mtriple=x86_64-windows-msvc %s -o - -verify-machineinstrs | FileCheck %s
|
|
|
|
declare void @h(i8*, i64, i8*)
|
|
|
|
define tailcc void @tailcall_frame(i8* %0, i64 %1) sspreq {
|
|
; CHECK-LABEL: tailcall_frame:
|
|
; CHECK: callq __security_check_cookie
|
|
; CHECK: xorl %ecx, %ecx
|
|
; CHECK: jmp h
|
|
|
|
tail call tailcc void @h(i8* null, i64 0, i8* null)
|
|
ret void
|
|
}
|
|
|
|
declare void @bar()
|
|
define void @tailcall_unrelated_frame() sspreq {
|
|
; CHECK-LABEL: tailcall_unrelated_frame:
|
|
; CHECK: subq [[STACK:\$.*]], %rsp
|
|
; CHECK: callq bar
|
|
; CHECK: callq __security_check_cookie
|
|
; CHECK: addq [[STACK]], %rsp
|
|
; CHECK: jmp bar
|
|
call void @bar()
|
|
tail call void @bar()
|
|
ret void
|
|
}
|