brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 772bc94 Raw
37 lines · plain
1; RUN: llc -mtriple arm64-apple-ios15.0.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC2; RUN: llc -mtriple arm64-apple-ios15.0.0 -swift-async-fp=auto %s -o - | FileCheck %s --check-prefix=CHECK-STATIC3; RUN: llc -mtriple arm64-apple-ios15.0.0 -swift-async-fp=never %s -o - | FileCheck %s --check-prefix=CHECK-NEVER4; RUN: llc -mtriple arm64-apple-ios14.9.0 -swift-async-fp=always %s -o - | FileCheck %s --check-prefix=CHECK-STATIC5; RUN: llc -mtriple arm64-apple-ios14.9.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC6; RUN: llc -mtriple arm64-apple-ios14.9.0 -swift-async-fp=auto %s -o - | FileCheck %s --check-prefix=CHECK-DYNAMIC7; RUN: llc -mtriple arm64-apple-tvos15.0.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC8; RUN: llc -mtriple arm64-apple-tvos14.9.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC9; RUN: llc -mtriple arm64-apple-macosx12.0.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC10; RUN: llc -mtriple arm64-apple-macosx11.9.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC11; RUN: llc -mtriple arm64_32-apple-watchos8.0.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC12; RUN: llc -mtriple arm64_32-apple-watchos7.9.0 %s -o - | FileCheck %s --check-prefix=CHECK-STATIC13; RUN: llc -mtriple arm64_32-apple-watchos7.9.0 -swift-async-fp=auto %s -o - | FileCheck %s --check-prefix=CHECK-DYNAMIC-3214 15; CHECK-STATIC-LABEL: foo:16; CHECK-STATIC: orr x29, x29, #0x100000000000000017 18; CHECK-NEVER-LABEL: foo:19; CHECK-NEVER-NOT: orr x29, x29, #0x100000000000000020; CHECK-NEVER-NOT: _swift_async_extendedFramePointerFlags21 22; CHECK-DYNAMIC-LABEL: foo:23; CHECK-DYNAMIC: adrp x16, _swift_async_extendedFramePointerFlags@GOTPAGE24; CHECK-DYNAMIC: ldr x16, [x16, _swift_async_extendedFramePointerFlags@GOTPAGEOFF]25; CHECK-DYNAMIC: orr x29, x29, x1626; CHECK-DYNAMIC: .weak_reference _swift_async_extendedFramePointerFlags27 28; CHECK-DYNAMIC-32-LABEL: foo:29; CHECK-DYNAMIC-32: adrp x16, _swift_async_extendedFramePointerFlags@GOTPAGE30; CHECK-DYNAMIC-32: ldr w16, [x16, _swift_async_extendedFramePointerFlags@GOTPAGEOFF]31; CHECK-DYNAMIC-32: orr x29, x29, x16, lsl #3232; CHECK-DYNAMIC-32: .weak_reference _swift_async_extendedFramePointerFlags33 34define void @foo(ptr swiftasync) "frame-pointer"="all" {35  ret void36}37