mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-22 03:35:35 -04:00
9d697e1c3c
The Swift CC is identical to Win64 CC with the exception of swift error being passed in r12 which is a CSR. However, since this calling convention is only used in swift -> swift code, it does not impact interoperability and can be treated entirely as Win64 CC. We would previously incorrectly lower the frame setup as we did not treat the frame as conforming to Win64 specifications. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313813 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
215 B
LLVM
12 lines
215 B
LLVM
; RUN: llc -mtriple x86_64-unknown-windows-msvc -filetype asm -o - %s | FileCheck %s
|
|
|
|
define swiftcc void @f() {
|
|
%1 = alloca i8
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: f
|
|
; CHECK: .seh_stackalloc 8
|
|
; CHECK: .seh_endprologue
|
|
|