llvm/llvm/test/CodeGen/AArch64/swift-error.ll

; RUN: llc -mtriple aarch64-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s

%swift.error = type opaque

declare swiftcc void @f(ptr swifterror)

define swiftcc void @g(ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr swifterror %error) {
entry:
  call swiftcc void @f(ptr nonnull nocapture swifterror %error)
  ret void
}

; CHEECK-LABEL: g
; CHECK: str x30, [sp, #-16]!
; CHECK: bl f
; CHECK: ldr x30, [sp], #16
; CHECK: ret