| 1 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme %s -### 2>&1 | FileCheck %s --check-prefix=SME-IMPLY |
| 2 |
// SME-IMPLY: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" |
| 3 |
|
| 4 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+nosme %s -### 2>&1 | FileCheck %s --check-prefix=NOSME |
| 5 |
// NOSME-NOT: "-target-feature" "{{\+|-}}sme" |
| 6 |
|
| 7 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme+nosme %s -### 2>&1 | FileCheck %s --check-prefix=SME-REVERT |
| 8 |
// SME-REVERT-NOT: "-target-feature" "+sme" |
| 9 |
// SME-REVERT: "-target-feature" "+bf16"{{.*}} "-target-feature" "-sme" |
| 10 |
|
| 11 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme+nobf16 %s -### 2>&1 | FileCheck %s --check-prefix=SME-CONFLICT |
| 12 |
// SME-CONFLICT-NOT: "-target-feature" "+sme" |
| 13 |
// SME-CONFLICT-NOT: "-target-feature" "+bf16" |
| 14 |
// SME-CONFLICT: "-target-feature" "-bf16"{{.*}} "-target-feature" "-sme" |
| 15 |
|
| 16 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-i16i64 %s -### 2>&1 | FileCheck %s --check-prefix=SME-I16I64 |
| 17 |
// SME-I16I64: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" "-target-feature" "+sme-i16i64" |
| 18 |
|
| 19 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+nosme-i16i64 %s -### 2>&1 | FileCheck %s --check-prefix=NOSME-I16I64 |
| 20 |
// NOSME-I16I64-NOT: "-target-feature" "+sme-i16i64" |
| 21 |
// NOSME-I16I64-NOT: "-target-feature" "+sme" |
| 22 |
// NOSME-I16I64-NOT: "-target-feature" "+bf16" |
| 23 |
// NOSME-I16I64-NOT: sme-i16i64" |
| 24 |
|
| 25 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-i16i64+nosme-i16i64 %s -### 2>&1 | FileCheck %s --check-prefix=SME-I16I64-REVERT |
| 26 |
// SME-I16I64-REVERT: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" "-target-feature" "-sme-i16i64" |
| 27 |
|
| 28 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+nosme-f64f64 %s -### 2>&1 | FileCheck %s --check-prefix=NOSME-F64F64 |
| 29 |
// NOSME-F64F64-NOT: "-target-feature" "+sme-f64f64" |
| 30 |
// NOSME-F64F64-NOT: "-target-feature" "+sme" |
| 31 |
// NOSME-F64F64-NOT: "-target-feature" "+bf16" |
| 32 |
// NOSME-F64F64-NOT: sme-f64f64" |
| 33 |
|
| 34 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-f64f64+nosme-f64f64 %s -### 2>&1 | FileCheck %s --check-prefix=SME-F64F64-REVERT |
| 35 |
// SME-F64F64-REVERT: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" "-target-feature" "-sme-f64f64" |
| 36 |
|
| 37 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-f64f64+nosme-i16i64 %s -### 2>&1 | FileCheck %s --check-prefix=SME-SUBFEATURE-MIX |
| 38 |
// SME-SUBFEATURE-MIX-NOT: "+sme-i16i64" |
| 39 |
// SME-SUBFEATURE-MIX: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" "-target-feature" "+sme-f64f64" |
| 40 |
// SME-SUBFEATURE-MIX-NOT: "+sme-i16i64" |
| 41 |
|
| 42 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-i16i64+nosme %s -### 2>&1 | FileCheck %s --check-prefix=SME-SUBFEATURE-CONFLICT1 |
| 43 |
// SME-SUBFEATURE-CONFLICT1: "-target-feature" "+bf16"{{.*}} "-target-feature" "-sme" "-target-feature" "-sme-i16i64" |
| 44 |
|
| 45 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme-f64f64+nobf16 %s -### 2>&1 | FileCheck %s --check-prefix=SME-SUBFEATURE-CONFLICT2 |
| 46 |
// SME-SUBFEATURE-CONFLICT2-NOT: "-target-feature" "+bf16" |
| 47 |
// SME-SUBFEATURE-CONFLICT2-NOT: "-target-feature" "+sme" |
| 48 |
// SME-SUBFEATURE-CONFLICT2-NOT: "-target-feature" "+sme-f64f64" |
| 49 |
|
| 50 |
// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+nosme+sme-i16i64 %s -### 2>&1 | FileCheck %s --check-prefix=SME-SUBFEATURE-CONFLICT-REV |
| 51 |
// SME-SUBFEATURE-CONFLICT-REV: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme" "-target-feature" "+sme-i16i64" |
| 52 |
|
| 53 |
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+ssve-aes %s -### 2>&1 | FileCheck %s --check-prefix=SVE-AES |
| 54 |
// SVE-AES: "-target-feature" "+sme" "-target-feature" "+sme2" "-target-feature" "+ssve-aes" "-target-feature" "+sve-aes" |
| 55 |
|
| 56 |
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+ssve-bitperm %s -### 2>&1 | FileCheck %s --check-prefix=SVE-BITPERM |
| 57 |
// SVE-BITPERM: "-target-feature" "+sme" "-target-feature" "+sme2" "-target-feature" "+ssve-bitperm" "-target-feature" "+sve-bitperm" |
| 58 |
|
| 59 |
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+sme-tmop %s -### 2>&1 | FileCheck %s --check-prefix=SME-TMOP |
| 60 |
// SME-TMOP: "-target-feature" "+sme" "-target-feature" "+sme-tmop" "-target-feature" "+sme2" |
| 61 |
|
| 62 |
// RUN: %clang --target=aarch64-linux-gnu -march=armv8-a+sme-mop4 %s -### 2>&1 | FileCheck %s --check-prefix=SME-MOP4 |
| 63 |
// SME-MOP4: "-target-feature" "+sme" "-target-feature" "+sme-mop4" "-target-feature" "+sme2" |