Skip to content

Commit 426c2c4

Browse files
committed
[Driver][test] Clean up -fsplit-machine-function tests
1 parent 5ec1353 commit 426c2c4

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed
Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
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
23

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"
76

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

clang/test/Driver/fsplit-machine-functions2.c

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)