File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 6
6
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=never -target x86_64-apple-macosx12 %s -S | %FileCheck -check-prefix=NEVER %s
7
7
// RUN: %target-swift-frontend -disable-availability-checking -swift-async-frame-pointer=always -target x86_64-apple-macosx11 %s -S | %FileCheck -check-prefix=ALWAYS %s
8
8
// 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
9
11
10
12
// REQUIRES: OS=macosx
11
- // REQUIRES: CPU=x86_64
13
+ // REQUIRES: CODEGENERATOR=X86 && CODEGENERATOR=AArch64
14
+
15
+ @_silgen_name ( " opaque_function " )
16
+ func blarpy( )
12
17
13
18
public func someAsyncFunction( ) async {
19
+ blarpy ( )
14
20
}
15
21
16
22
// AUTO: s31swift_async_extended_frame_info17someAsyncFunctionyyYaF:
@@ -26,3 +32,11 @@ public func someAsyncFunction() async {
26
32
// AUTO: .weak_reference _swift_async_extendedFramePointerFlags
27
33
// NEVER-NOT: .weak_reference _swift_async_extendedFramePointerFlags
28
34
// 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
Original file line number Diff line number Diff line change 4
4
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=never %s -S | %FileCheck -check-prefix=NEVER %s
5
5
// RUN: %target-swift-frontend -disable-availability-checking -target arm64_32-apple-watchos7 -swift-async-frame-pointer=auto %s -S | %FileCheck -check-prefix=AUTO %s
6
6
7
- // REQUIRES: OS=watchos
8
- // REQUIRES: CPU=armv7k || CPU=arm64_32
9
- // REQUIRES: rdar97790231
7
+ // REQUIRES: OS=watchos || OS=watchossimulator
8
+ // REQUIRES: CODEGENERATOR=AArch64
10
9
11
- public func someAsyncFunction( ) async {
12
- }
10
+ @_silgen_name ( " forward_function " )
11
+ func forwardFunction( )
12
+
13
+ public func someAsyncFunction( ) async { forwardFunction ( ) }
13
14
14
15
// AUTO: swift_async_extendedFramePointerFlags
15
16
You can’t perform that action at this time.
0 commit comments