[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / XRay / xray-mode-flags.cpp
blobcfcf42f30e627130cf25daace14fae90d19aed58
1 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr %s 2>&1 \
2 // RUN: | FileCheck --check-prefix=FDR %s
3 // RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument -fxray-modes=xray-basic %s 2>&1 \
4 // RUN: | FileCheck --check-prefix=BASIC %s
5 // RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument %s 2>&1 \
6 // RUN: | FileCheck --check-prefixes=FDR,BASIC %s
7 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all %s 2>&1 \
8 // RUN: | FileCheck --check-prefixes=FDR,BASIC %s
9 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr,xray-basic %s 2>&1 \
10 // RUN: | FileCheck --check-prefixes=FDR,BASIC %s
11 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr -fxray-modes=xray-basic %s 2>&1 \
12 // RUN: | FileCheck --check-prefixes=FDR,BASIC %s
13 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none %s 2>&1 \
14 // RUN: | FileCheck --check-prefix=NONE %s
16 // We also should support overriding the modes in an additive manner.
18 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none,xray-fdr %s 2>&1 \
19 // RUN: | FileCheck --check-prefix=FDR %s
20 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all,none %s 2>&1 \
21 // RUN: | FileCheck --check-prefix=NONE %s
23 // We also should support having the individual modes be concatenated.
25 // RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none -fxray-modes=xray-fdr %s 2>&1 \
26 // RUN: | FileCheck --check-prefix=FDR %s
28 // BASIC: libclang_rt.xray-basic
29 // FDR: libclang_rt.xray-fdr
30 // NONE-NOT: libclang_rt.xray-basic
31 // NONE-NOT: libclang_rt.xray-fdr