brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 153aafb Raw
24 lines · c
1// RUN: rm -rf %t && mkdir %t2// RUN: llvm-profdata merge -o %t/default.profdata %S/Inputs/a.proftext3 4// RUN: %clang -### --target=x86_64 -fprofile-use=%t/default.profdata -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefixes=CHECK,LTO-NEG5// RUN: %clang -### --target=aarch64 -fprofile-use=%t/default.profdata -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefixes=CHECK,LTO-NEG6// RUN: %clang -### --target=x86_64 -fprofile-use=%t/default.profdata -fsplit-machine-functions -fno-split-machine-functions %s -c 2>&1 | FileCheck -check-prefix=NEG %s7 8// CHECK:      "-fsplit-machine-functions"9// CHECK-SAME: "-fprofile-instrument-use=llvm"10// CHECK-SAME: "-fprofile-instrument-use-path={{.*}}default.profdata"11 12// NEG-NOT:    "-fsplit-machine-functions"13 14// RUN: %clang -### --target=x86_64-linux -flto -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefix=LTO15// RUN: %clang -### --target=x86_64-linux -flto -fsplit-machine-functions -fno-split-machine-functions %s 2>&1 | FileCheck %s --check-prefix=LTO-NEG16 17// LTO:         "-plugin-opt=-split-machine-functions"18// LTO-NEG-NOT: "-plugin-opt=-split-machine-functions"19 20// RUN: not %clang -### -c --target=arm-unknown-linux -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefix=ERR21// ERR: error: unsupported option '-fsplit-machine-functions' for target22 23// RUN: %clang -### --target=arm-unknown-linux -fsplit-machine-functions -fno-split-machine-functions %s24