Skip to content

Fix async_extended_frame_info_watchos test #62949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion test/IRGen/swift_async_extended_frame_info.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=never -target x86_64-apple-macosx12 %s -S | %FileCheck -check-prefix=NEVER %s
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target x86_64-apple-macosx11 %s -S | %FileCheck -check-prefix=ALWAYS %s
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target x86_64-apple-macosx12 %s -S | %FileCheck -check-prefix=ALWAYS %s
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=never -target arm64-apple-macos12 %s -S | %FileCheck -check-prefix=NEVER-ARM64 %s
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target arm64-apple-macos12 %s -S | %FileCheck -check-prefix=ALWAYS-ARM64 %s

// REQUIRES: OS=macosx
// REQUIRES: CPU=x86_64
// REQUIRES: CODEGENERATOR=X86 && CODEGENERATOR=AArch64

@_silgen_name("opaque_function")
func blarpy()

public func someAsyncFunction() async {
blarpy()
}

// AUTO: s31swift_async_extended_frame_info17someAsyncFunctionyyYaF:
Expand All @@ -26,3 +32,11 @@ public func someAsyncFunction() async {
// AUTO: .weak_reference _swift_async_extendedFramePointerFlags
// NEVER-NOT: .weak_reference _swift_async_extendedFramePointerFlags
// ALWAYS-NOT: .weak_reference _swift_async_extendedFramePointerFlags

// NEVER-ARM64: s31swift_async_extended_frame_info17someAsyncFunctionyyYaFTY0
// NEVER-ARM64-NOT: swift_async_extendedFramePointerFlags
// NEVER-ARM64-NOT: #0x1000000000000000

// ALWAYS-ARM64: s31swift_async_extended_frame_info17someAsyncFunctionyyYaFTY0
// ALWAYS-ARM64-NOT: swift_async_extendedFramePointerFlags
// ALWAYS-ARM64: #0x1000000000000000
11 changes: 6 additions & 5 deletions test/IRGen/swift_async_extended_frame_info_watchos.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=never %s -S | %FileCheck -check-prefix=NEVER %s
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=auto %s -S | %FileCheck -check-prefix=AUTO %s

// REQUIRES: OS=watchos
// REQUIRES: CPU=armv7k || CPU=arm64_32
// REQUIRES: rdar97790231
// REQUIRES: OS=watchos || OS=watchossimulator
// REQUIRES: CODEGENERATOR=AArch64

public func someAsyncFunction() async {
}
@_silgen_name("forward_function")
func forwardFunction()

public func someAsyncFunction() async { forwardFunction() }

// AUTO: swift_async_extendedFramePointerFlags

Expand Down