[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / aarch64-sve.c
blob97f77f36deb40604ea68c51d62d87d7a8e6d8e82
1 // The SVE extension is an optional extension for Armv8-A.
2 // RUN: %clang -target aarch64 -march=armv8a+sve -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV8A-SVE %s
3 // RUN: %clang -target aarch64 -march=armv8.6a+sve -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV8A-SVE %s
4 // GENERICV8A-SVE: "-target-feature" "+sve"
5 // RUN: %clang -target aarch64 -march=armv8a -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV8A-NOSVE %s
6 // RUN: %clang -target aarch64 -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV8A-NOSVE %s
7 // GENERICV8A-NOSVE-NOT: "-target-feature" "+sve"
9 // The 32-bit floating point matrix multiply extension is enabled by default
10 // for armv8.6-a targets (or later) with SVE, and can optionally be enabled for
11 // any target from armv8.2a onwards (we don't enforce not using it with earlier
12 // targets).
13 // RUN: %clang -target aarch64 -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=NO-F32MM %s
14 // RUN: %clang -target aarch64 -march=armv8.6a+sve -### -c %s 2>&1 | FileCheck -check-prefix=F32MM %s
15 // RUN: %clang -target aarch64 -march=armv8.5a+f32mm -### -c %s 2>&1 | FileCheck -check-prefix=F32MM %s
16 // NO-F32MM-NOT: "-target-feature" "+f32mm"
17 // F32MM: "-target-feature" "+f32mm"
19 // The 64-bit floating point matrix multiply extension is not currently enabled
20 // by default for any targets, because it requires an SVE vector length >= 256
21 // bits. When we add a CPU which has that, then it can be enabled by default,
22 // but for now it can only be used by adding the +f64mm feature.
23 // RUN: %clang -target aarch64 -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=NO-F64MM %s
24 // RUN: %clang -target aarch64 -march=armv8.6a+sve -### -c %s 2>&1 | FileCheck -check-prefix=NO-F64MM %s
25 // RUN: %clang -target aarch64 -march=armv8.6a+f64mm -### -c %s 2>&1 | FileCheck -check-prefix=F64MM %s
26 // NO-F64MM-NOT: "-target-feature" "+f64mm"
27 // F64MM: "-target-feature" "+f64mm"