[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / aarch64-hbc.c
blobdd40fb8ec05d4a9f98b2097d50fd0a1085d91e45
1 // Test that target feature hbc is implemented and available correctly
2 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.7-a+hbc %s 2>&1 | FileCheck %s
3 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.8-a %s 2>&1 | FileCheck %s
4 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.8-a+hbc %s 2>&1 | FileCheck %s
5 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv8.8-a+nohbc %s 2>&1 | FileCheck %s --check-prefix=NO_HBC
6 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.2-a+hbc %s 2>&1 | FileCheck %s
7 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.3-a %s 2>&1 | FileCheck %s
8 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.3-a+hbc %s 2>&1 | FileCheck %s
9 // RUN: %clang -S -o - -emit-llvm --target=aarch64-none-elf -march=armv9.3-a+nohbc %s 2>&1 | FileCheck %s --check-prefix=NO_HBC
11 // CHECK: "target-features"="{{.*}},+hbc
12 // NO_HBC: "target-features"="{{.*}},-hbc
14 void test() {}