1cb261e30STies Stuij // Test that target feature cssc is implemented and available correctly
25f6813beSLucas Prates // FEAT_CSSC is a required part of v8.9a/v9.4a and optional from v8.7a/v9.3a onwards.
3041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf %s 2>&1 | FileCheck %s --check-prefix=ABSENT_CSSC
4041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.7-a+cssc %s 2>&1 | FileCheck %s
5041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.9-a %s 2>&1 | FileCheck %s
6041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.9-a+cssc %s 2>&1 | FileCheck %s
7041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.9-a+nocssc %s 2>&1 | FileCheck %s --check-prefix=NO_CSSC
8041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.2-a+cssc %s 2>&1 | FileCheck %s
9041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.4-a %s 2>&1 | FileCheck %s
10041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.4-a+cssc %s 2>&1 | FileCheck %s
11041ffc15SMichael Platings // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.4-a+nocssc %s 2>&1 | FileCheck %s --check-prefix=NO_CSSC
12*fbba818aSPhilipp Tomsich // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -mcpu=ampere1b %s 2>&1 | FileCheck %s
13cb261e30STies Stuij
145f6813beSLucas Prates // CHECK: "target-features"="{{.*}},+cssc
155f6813beSLucas Prates // NO_CSSC: "target-features"="{{.*}},-cssc
165f6813beSLucas Prates // ABSENT_CSSC-NOT: "target-features"="{{.*}},+cssc
175f6813beSLucas Prates // ABSENT_CSSC-NOT: "target-features"="{{.*}},-cssc
test()185f6813beSLucas Prates void test() {}
19