| 1 |
// RUN: %clang -### --target=aarch64 %s 2>&1 | FileCheck --check-prefix=CHECK-NONE %s |
| 2 |
// RUN: %clang -### --target=aarch64 -march=armv8.1a %s 2>&1 | FileCheck --check-prefix=CHECK-NONE %s |
| 3 |
// RUN: %clang -### --target=aarch64 -march=armv8.2a %s 2>&1 | FileCheck --check-prefix=CHECK-NONE %s |
| 4 |
// CHECK-NONE-NOT: "-target-feature" "+rcpc" |
| 5 |
|
| 6 |
// RUN: %clang -### --target=aarch64 -march=armv8.2a+rcpc %s 2>&1 | FileCheck %s |
| 7 |
// RUN: %clang -### --target=aarch64 -march=armv8.3a+rcpc %s 2>&1 | FileCheck %s |
| 8 |
// RUN: %clang -### --target=aarch64 -mcpu=cortex-a75 %s 2>&1 | FileCheck %s |
| 9 |
// RUN: %clang -### --target=aarch64 -mcpu=cortex-a55 %s 2>&1 | FileCheck %s |
| 10 |
// CHECK: "-target-feature" "+rcpc" |
| 11 |
|
| 12 |
// RUN: %clang -### --target=aarch64 -mcpu=cortex-a75+norcpc %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RCPC %s |
| 13 |
// RUN: %clang -### --target=aarch64 -mcpu=cortex-a55+norcpc %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RCPC %s |
| 14 |
// CHECK-NO-RCPC: "-rcpc" |