Mercurial > hg > CbC > CbC_llvm
diff clang/test/Driver/aarch64-mac-cpus.c @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Driver/aarch64-mac-cpus.c Tue Jun 15 19:15:29 2021 +0900 @@ -0,0 +1,24 @@ +// arm64 Mac-based targets default to Apple A13. + +// RUN: %clang -target arm64-apple-macos -### -c %s 2>&1 | FileCheck %s +// RUN: %clang -target arm64-apple-ios-macabi -### -c %s 2>&1 | FileCheck %s +// RUN: %clang -target arm64-apple-ios-simulator -### -c %s 2>&1 | FileCheck %s +// RUN: %clang -target arm64-apple-watchos-simulator -### -c %s 2>&1 | FileCheck %s +// RUN: %clang -target arm64-apple-tvos-simulator -### -c %s 2>&1 | FileCheck %s + +// RUN: %clang -target arm64-apple-macos -arch arm64 -### -c %s 2>&1 | FileCheck %s + +// RUN: %clang -target arm64e-apple-macos -### -c %s 2>&1 | FileCheck %s + +// RUN: %clang -target arm64-apple-macos -mcpu=apple-a11 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A11 %s +// RUN: %clang -target arm64-apple-macos -mcpu=apple-a7 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A7 %s +// RUN: %clang -target arm64-apple-macos -mcpu=apple-a14 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-A14 %s +// RUN: %clang -target arm64-apple-macos -mcpu=apple-m1 -### -c %s 2>&1 | FileCheck --check-prefix=EXPLICIT-M1 %s + +// CHECK: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-m1" +// CHECK-SAME: "-target-feature" "+v8.5a" + +// EXPLICIT-A11: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a11" +// EXPLICIT-A7: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a7" +// EXPLICIT-A14: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-a14" +// EXPLICIT-M1: "-cc1"{{.*}} "-triple" "arm64{{.*}}" "-target-cpu" "apple-m1"