xref: /llvm-project/llvm/test/CodeGen/AArch64/swift-async-unwind.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc -mtriple=arm64-apple-ios %s -filetype=obj -o - | llvm-objdump --unwind-info - | FileCheck %s
2
3; Swift asynchronous context is incompatible with the compact unwind encoding
4; that currently exists and assumes callee-saved registers are right next to FP
5; in a particular order. This isn't a problem now because C++ exceptions aren't
6; allowed to unwind through Swift code, but at least make sure the compact info
7; says to use DWARF correctly.
8
9; CHECK: compact encoding: 0x03000000
10define void @foo(ptr swiftasync %in) "frame-pointer"="all" {
11  call void asm sideeffect "", "~{x23}"()
12  ret void
13}
14