mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
783f7f989e
The shadow stack space expectations won't match. Fixes PR22709. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230667 91177308-0d34-0410-b5e6-96231b3b80d8
43 lines
895 B
LLVM
43 lines
895 B
LLVM
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
|
|
|
declare x86_64_win64cc void @win64_callee(i32)
|
|
declare void @sysv_callee(i32)
|
|
|
|
define void @sysv_caller(i32 %p1) {
|
|
entry:
|
|
tail call x86_64_win64cc void @win64_callee(i32 %p1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: sysv_caller:
|
|
; CHECK: subq $40, %rsp
|
|
; CHECK: callq win64_callee
|
|
; CHECK: addq $40, %rsp
|
|
; CHECK: retq
|
|
|
|
define x86_64_win64cc void @win64_caller(i32 %p1) {
|
|
entry:
|
|
tail call void @sysv_callee(i32 %p1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: win64_caller:
|
|
; CHECK: callq sysv_callee
|
|
; CHECK: retq
|
|
|
|
define void @sysv_matched(i32 %p1) {
|
|
tail call void @sysv_callee(i32 %p1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: sysv_matched:
|
|
; CHECK: jmp sysv_callee # TAILCALL
|
|
|
|
define x86_64_win64cc void @win64_matched(i32 %p1) {
|
|
tail call x86_64_win64cc void @win64_callee(i32 %p1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: win64_matched:
|
|
; CHECK: jmp win64_callee # TAILCALL
|