mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-10 04:54:50 +00:00
d1a0918ad2
The previous SwiftCC support for AAPCS64 was partially correct. It setup swiftself parameters in the proper register but failed to setup swifterror in the correct register. This would break compilation of swift code for non-Darwin AAPCS64 conforming environments. llvm-svn: 313956
19 lines
463 B
LLVM
19 lines
463 B
LLVM
; RUN: llc -mtriple aarch64-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s
|
|
|
|
%swift.error = type opaque
|
|
|
|
declare swiftcc void @f(%swift.error** swifterror)
|
|
|
|
define swiftcc void @g(i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %swift.error** swifterror %error) {
|
|
entry:
|
|
call swiftcc void @f(%swift.error** nonnull nocapture swifterror %error)
|
|
ret void
|
|
}
|
|
|
|
; CHEECK-LABEL: g
|
|
; CHECK: str x30, [sp, #-16]!
|
|
; CHECK: bl f
|
|
; CHECK: ldr x30, [sp], #16
|
|
; CHECK: ret
|
|
|