brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · d5f5ad2 Raw
34 lines · cpp
1// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr %s 2>&1 \2// RUN:   | FileCheck --check-prefix=FDR %s3// RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument -fxray-modes=xray-basic %s 2>&1 \4// RUN:   | FileCheck --check-prefix=BASIC %s5// RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument %s 2>&1 \6// RUN:   | FileCheck --check-prefixes=FDR,BASIC %s7// RUN: %clang -### --target=s390x-linux-gnu -fxray-instrument -fxray-modes=xray-basic %s 2>&1 \8// RUN:   | FileCheck --check-prefix=BASIC %s9// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all %s 2>&1 \10// RUN:   | FileCheck --check-prefixes=FDR,BASIC %s11// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr,xray-basic %s 2>&1 \12// RUN:   | FileCheck --check-prefixes=FDR,BASIC %s13// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr -fxray-modes=xray-basic %s 2>&1 \14// RUN:   | FileCheck --check-prefixes=FDR,BASIC %s15// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none %s 2>&1 \16// RUN:   | FileCheck --check-prefix=NONE %s17//18// We also should support overriding the modes in an additive manner.19 20// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none,xray-fdr %s 2>&1 \21// RUN:   | FileCheck --check-prefix=FDR %s22// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all,none %s 2>&1 \23// RUN:   | FileCheck --check-prefix=NONE %s24 25// We also should support having the individual modes be concatenated.26 27// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none -fxray-modes=xray-fdr %s 2>&1 \28// RUN:   | FileCheck --check-prefix=FDR %s29 30// BASIC: libclang_rt.xray-basic31// FDR: libclang_rt.xray-fdr32// NONE-NOT: libclang_rt.xray-basic33// NONE-NOT: libclang_rt.xray-fdr34