[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / aarch64-sve.c
blob4a33c2e3c8d3677957b4da4131320701e8640823
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 an optional feature
10 // that can be used for any target from armv8.2a and onwards. This can be
11 // enabled using the `+f32mm` option.`.
12 // RUN: %clang --target=aarch64 -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=NO-F32MM %s
13 // RUN: %clang --target=aarch64 -march=armv8.6a+sve+f32mm -### -c %s 2>&1 | FileCheck -check-prefix=F32MM %s
14 // RUN: %clang --target=aarch64 -march=armv8.5a+f32mm -### -c %s 2>&1 | FileCheck -check-prefix=F32MM %s
15 // NO-F32MM-NOT: "-target-feature" "+f32mm"
16 // F32MM: "-target-feature" "+f32mm"
18 // The 64-bit floating point matrix multiply extension is not currently enabled
19 // by default for any targets, because it requires an SVE vector length >= 256
20 // bits. When we add a CPU which has that, then it can be enabled by default,
21 // but for now it can only be used by adding the +f64mm feature.
22 // RUN: %clang --target=aarch64 -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=NO-F64MM %s
23 // RUN: %clang --target=aarch64 -march=armv8.6a+sve -### -c %s 2>&1 | FileCheck -check-prefix=NO-F64MM %s
24 // RUN: %clang --target=aarch64 -march=armv8.6a+f64mm -### -c %s 2>&1 | FileCheck -check-prefix=F64MM %s
25 // NO-F64MM-NOT: "-target-feature" "+f64mm"
26 // F64MM: "-target-feature" "+f64mm"