Skip to content

Commit c3fd8a3

Browse files
authored
Merge pull request #62949 from etcwilde/ewilde/fix-async_extended_stack_frame_info_watchos_test
Fix async_extended_frame_info_watchos test
2 parents 9f27948 + 8b89095 commit c3fd8a3

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

test/IRGen/swift_async_extended_frame_info.swift

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@
66
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=never -target x86_64-apple-macosx12 %s -S | %FileCheck -check-prefix=NEVER %s
77
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target x86_64-apple-macosx11 %s -S | %FileCheck -check-prefix=ALWAYS %s
88
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target x86_64-apple-macosx12 %s -S | %FileCheck -check-prefix=ALWAYS %s
9+
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=never -target arm64-apple-macos12 %s -S | %FileCheck -check-prefix=NEVER-ARM64 %s
10+
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target arm64-apple-macos12 %s -S | %FileCheck -check-prefix=ALWAYS-ARM64 %s
911

1012
// REQUIRES: OS=macosx
11-
// REQUIRES: CPU=x86_64
13+
// REQUIRES: CODEGENERATOR=X86 && CODEGENERATOR=AArch64
14+
15+
@_silgen_name("opaque_function")
16+
func blarpy()
1217

1318
public func someAsyncFunction() async {
19+
blarpy()
1420
}
1521

1622
// AUTO: s31swift_async_extended_frame_info17someAsyncFunctionyyYaF:
@@ -26,3 +32,11 @@ public func someAsyncFunction() async {
2632
// AUTO: .weak_reference _swift_async_extendedFramePointerFlags
2733
// NEVER-NOT: .weak_reference _swift_async_extendedFramePointerFlags
2834
// ALWAYS-NOT: .weak_reference _swift_async_extendedFramePointerFlags
35+
36+
// NEVER-ARM64: s31swift_async_extended_frame_info17someAsyncFunctionyyYaFTY0
37+
// NEVER-ARM64-NOT: swift_async_extendedFramePointerFlags
38+
// NEVER-ARM64-NOT: #0x1000000000000000
39+
40+
// ALWAYS-ARM64: s31swift_async_extended_frame_info17someAsyncFunctionyyYaFTY0
41+
// ALWAYS-ARM64-NOT: swift_async_extendedFramePointerFlags
42+
// ALWAYS-ARM64: #0x1000000000000000

test/IRGen/swift_async_extended_frame_info_watchos.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=never %s -S | %FileCheck -check-prefix=NEVER %s
55
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=auto %s -S | %FileCheck -check-prefix=AUTO %s
66

7-
// REQUIRES: OS=watchos
8-
// REQUIRES: CPU=armv7k || CPU=arm64_32
9-
// REQUIRES: rdar97790231
7+
// REQUIRES: OS=watchos || OS=watchossimulator
8+
// REQUIRES: CODEGENERATOR=AArch64
109

11-
public func someAsyncFunction() async {
12-
}
10+
@_silgen_name("forward_function")
11+
func forwardFunction()
12+
13+
public func someAsyncFunction() async { forwardFunction() }
1314

1415
// AUTO: swift_async_extendedFramePointerFlags
1516

0 commit comments

Comments
 (0)