xref: /llvm-project/llvm/test/CodeGen/X86/swift-dynamic-async-frame.ll (revision 5d070c8259ac64355a5b5d3fd28710a335c2a16f)
1; RUN: llc -mtriple x86_64-apple-macosx12.0.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC
2; RUN: llc -mtriple x86_64-apple-macosx11.9.0 %s -o - | FileCheck %s --check-prefix=CHECK-DYNAMIC
3
4; CHECK-STATIC-LABEL: foo:
5; CHECK-STATIC: btsq $60, %rbp
6
7; CHECK-DYNAMIC-LABEL: foo:
8; CHECK-DYNAMIC: orq _swift_async_extendedFramePointerFlags@GOTPCREL(%rip), %rbp
9
10define void @foo(i8* swiftasync) "frame-pointer"="all" {
11  ret void
12}
13