1 // arm64 Mac-based targets default to Apple A12.
2 
3 // RUN: %clang -target arm64-apple-macos             -### -c %s 2>&1 | FileCheck %s
4 // RUN: %clang -target arm64-apple-ios-macabi        -### -c %s 2>&1 | FileCheck %s
5 // RUN: %clang -target arm64-apple-ios-simulator     -### -c %s 2>&1 | FileCheck %s
6 // RUN: %clang -target arm64-apple-watchos-simulator -### -c %s 2>&1 | FileCheck %s
7 // RUN: %clang -target arm64-apple-tvos-simulator    -### -c %s 2>&1 | FileCheck %s
8 
9 // RUN: %clang -target arm64-apple-macos -arch arm64 -### -c %s 2>&1 | FileCheck %s
10 
11 // RUN: %clang -target arm64-apple-macos -mcpu=apple-a11 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A11 %s
12 // RUN: %clang -target arm64-apple-macos -mcpu=apple-a7  -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A7 %s
13 // RUN: %clang -target arm64-apple-macos -mcpu=apple-a13 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A13 %s
14 
15 // CHECK: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a12"
16 // CHECK-SAME: "-target-feature" "+v8.3a"
17 
18 // EXPLICIT-A11: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a11"
19 // EXPLICIT-A7: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a7"
20 // EXPLICIT-A13: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a13"
21