bolt/deps/llvm-18.1.8/clang/test/Driver/aarch64-ssbs.c
2025-02-14 19:21:04 +01:00

13 lines
872 B
C

// RUN: %clang -### --target=aarch64-none-elf -march=armv8a+ssbs %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-x1 %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-x1c %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-a77 %s 2>&1 | FileCheck %s
// CHECK: "-target-feature" "+ssbs"
// RUN: %clang -### --target=aarch64-none-elf -march=armv8a+nossbs %s 2>&1 | FileCheck %s --check-prefix=NOSSBS
// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-x1c+nossbs %s 2>&1 | FileCheck %s --check-prefix=NOSSBS
// NOSSBS-NOT: "-target-feature" "+ssbs"
// RUN: %clang -### --target=aarch64-none-elf %s 2>&1 | FileCheck %s --check-prefix=ABSENTSSBS
// ABSENTSSBS-NOT: "-target-feature" "+ssbs"
// ABSENTSSBS-NOT: "-target-feature" "-ssbs"