|
1 |
| -// REQUIRES: arm-registered-target |
| 1 | +// RUN: %clang -### --target=x86_64 -fprofile-use=default.profdata -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefixes=CHECK,LTO-NEG |
| 2 | +// RUN: %clang -### --target=x86_64 -fprofile-use=default.profdata -fsplit-machine-functions -fno-split-machine-functions %s -c 2>&1 | FileCheck -check-prefix=NEG %s |
2 | 3 |
|
3 |
| -// RUN: %clang -### -target x86_64 -fprofile-use=default.profdata -fsplit-machine-functions %s -c 2>&1 | FileCheck -check-prefix=CHECK-OPT %s |
4 |
| -// RUN: %clang -### -target x86_64 -fsplit-machine-functions %s -c 2>&1 | FileCheck -check-prefix=CHECK-OPT %s |
5 |
| -// RUN: %clang -### -target x86_64 -fprofile-use=default.profdata -fsplit-machine-functions -fno-split-machine-functions %s -c 2>&1 | FileCheck -check-prefix=CHECK-NOOPT %s |
6 |
| -// RUN: not %clang -c -target arm-unknown-linux -fsplit-machine-functions %s 2>&1 | FileCheck -check-prefix=CHECK-TRIPLE %s |
| 4 | +// CHECK: "-fsplit-machine-functions" |
| 5 | +// CHECK-SAME: "-fprofile-instrument-use-path=default.profdata" |
7 | 6 |
|
8 |
| -// CHECK-OPT: "-fsplit-machine-functions" |
9 |
| -// CHECK-NOOPT-NOT: "-fsplit-machine-functions" |
10 |
| -// CHECK-TRIPLE: error: unsupported option '-fsplit-machine-functions' for target |
| 7 | +// NEG-NOT: "-fsplit-machine-functions" |
| 8 | + |
| 9 | +// RUN: %clang -### --target=x86_64-linux -flto -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefix=LTO |
| 10 | +// RUN: %clang -### --target=x86_64-linux -flto -fsplit-machine-functions -fno-split-machine-functions %s 2>&1 | FileCheck %s --check-prefix=LTO-NEG |
| 11 | + |
| 12 | +// LTO: "-plugin-opt=-split-machine-functions" |
| 13 | +// LTO-NEG-NOT: "-plugin-opt=-split-machine-functions" |
| 14 | + |
| 15 | +// RUN: not %clang -### -c --target=arm-unknown-linux -fsplit-machine-functions %s 2>&1 | FileCheck %s --check-prefix=ERR |
| 16 | +// ERR: error: unsupported option '-fsplit-machine-functions' for target |
| 17 | + |
| 18 | +/// FIXME |
| 19 | +// RUN: not %clang -### -c --target=arm-unknown-linux -fsplit-machine-functions -fno-split-machine-functions %s 2>&1 | FileCheck %s --check-prefix=ERR2 |
| 20 | +// ERR2: error: unsupported option '-fno-split-machine-functions' for target |
0 commit comments