Debian Codegraph @

clang/test/Driver/aarch64-cpu-defaults-appleos26.c

raw
1 /// iOS 26 and watchOS 26 bump the default arm64 CPU targets.
2
3 /// arm64 iOS 26 defaults to apple-a12. arm64e already did.
4 // RUN: %clang -target arm64-apple-ios26 -### -c %s 2>&1 | FileCheck %s --check-prefix=A12
5 // RUN: %clang -target arm64e-apple-ios26 -### -c %s 2>&1 | FileCheck %s --check-prefix=A12
6
7 /// iOS 18 came before iOS 26, compare its defaults.
8 // RUN: %clang -target arm64-apple-ios18 -### -c %s 2>&1 | FileCheck %s --check-prefix=A10
9 // RUN: %clang -target arm64e-apple-ios18 -### -c %s 2>&1 | FileCheck %s --check-prefix=A12
10
11 /// arm64e/arm64_32 watchOS 26 default to apple-s6.
12 // RUN: %clang -target arm64e-apple-watchos26 -### -c %s 2>&1 | FileCheck %s --check-prefix=S6
13 // RUN: %clang -target arm64_32-apple-watchos26 -### -c %s 2>&1 | FileCheck %s --check-prefix=S6
14
15 /// arm64 is new in watchOS 26, and defaults to apple-s9.
16 // RUN: %clang -target arm64-apple-watchos26 -### -c %s 2>&1 | FileCheck %s --check-prefix=S9
17
18 /// llvm usually treats tvOS like iOS, but it runs on different hardware.
19 // RUN: %clang -target arm64-apple-tvos26 -### -c %s 2>&1 | FileCheck %s --check-prefix=A7
20 // RUN: %clang -target arm64e-apple-tvos26 -### -c %s 2>&1 | FileCheck %s --check-prefix=A12
21
22 /// Simulators are tested with other Mac-like targets in aarch64-mac-cpus.c.
23
24 // A12: "-target-cpu" "apple-a12"
25 // A10: "-target-cpu" "apple-a10"
26 // S6: "-target-cpu" "apple-s6"
27 // S9: "-target-cpu" "apple-s9"
28 // A7: "-target-cpu" "apple-a7"