@@ -15,34 +15,34 @@ int main() { return foo() - 3; }
15
15
// RUN: %clang_pgogen -O2 -c -fno-function-sections main.c
16
16
//
17
17
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
18
- // RUN: rm -f default* && %run a.out
18
+ // RUN: rm -f default* && %run ./ a.out
19
19
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
20
20
//
21
21
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
22
- // RUN: rm -f default* && %run a.out
22
+ // RUN: rm -f default* && %run ./ a.out
23
23
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
24
24
25
25
// RUN: %clang_pgogen -O2 -c -ffunction-sections foo.c
26
26
// RUN: %clang_pgogen -O2 -c -ffunction-sections main.c
27
27
//
28
28
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
29
- // RUN: rm -f default* && %run a.out
29
+ // RUN: rm -f default* && %run ./ a.out
30
30
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
31
31
//
32
32
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
33
- // RUN: rm -f default* && %run a.out
33
+ // RUN: rm -f default* && %run ./ a.out
34
34
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
35
35
36
36
// ## no PGO at compile step, but PGO at link step.
37
37
// RUN: %clang -O2 -c foo.c
38
38
// RUN: %clang -O2 -c main.c
39
39
//
40
40
// RUN: %clang_pgogen -Wl,-bcdtors:all foo.o main.o
41
- // RUN: rm -f default* && %run a.out
41
+ // RUN: rm -f default* && %run ./ a.out
42
42
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
43
43
//
44
44
// RUN: %clang_pgogen -Wl,-bcdtors:mbr foo.o main.o
45
- // RUN: rm -f default* && %run a.out
45
+ // RUN: rm -f default* && %run ./ a.out
46
46
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
47
47
48
48
// # LTO, with and without function-sections, and all permutations of -bcdtors
@@ -51,64 +51,64 @@ int main() { return foo() - 3; }
51
51
// RUN: %clang -O2 -c -flto main.c
52
52
//
53
53
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
54
- // RUN: rm -f default* && %run a.out
54
+ // RUN: rm -f default* && %run ./ a.out
55
55
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
56
56
//
57
57
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
58
- // RUN: rm -f default* && %run a.out
58
+ // RUN: rm -f default* && %run ./ a.out
59
59
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
60
60
//
61
61
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
62
- // RUN: rm -f default* && %run a.out
62
+ // RUN: rm -f default* && %run ./ a.out
63
63
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
64
64
//
65
65
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
66
- // RUN: rm -f default* && %run a.out
66
+ // RUN: rm -f default* && %run ./ a.out
67
67
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=NONE
68
68
69
69
// ## LTO one file, PGO at compile and link
70
70
// RUN: %clang -O2 -c -fno-function-sections foo.c
71
71
// RUN: %clang_pgogen -O2 -c -flto main.c
72
72
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
73
- // RUN: rm -f default* && %run a.out
73
+ // RUN: rm -f default* && %run ./ a.out
74
74
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
75
75
76
76
// RUN: %clang -O2 -c -flto foo.c
77
77
// RUN: %clang_pgogen -O2 -c -fno-function-sections main.c
78
78
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
79
- // RUN: rm -f default* && %run a.out
79
+ // RUN: rm -f default* && %run ./ a.out
80
80
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
81
81
82
82
// RUN: %clang -O2 -c -flto foo.c
83
83
// RUN: %clang_pgogen -O2 -c -ffunction-sections main.c
84
84
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
85
- // RUN: rm -f default* && %run a.out
85
+ // RUN: rm -f default* && %run ./ a.out
86
86
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
87
87
88
88
// RUN: %clang -O2 -c -ffunction-sections foo.c
89
89
// RUN: %clang_pgogen -O2 -c -flto main.c
90
90
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
91
- // RUN: rm -f default* && %run a.out
91
+ // RUN: rm -f default* && %run ./ a.out
92
92
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=MAIN
93
93
94
94
// ## LTO and PGO both files
95
95
// RUN: %clang_pgogen -O2 -c -flto foo.c
96
96
// RUN: %clang_pgogen -O2 -c -flto main.c
97
97
//
98
98
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:all foo.o main.o
99
- // RUN: rm -f default* && %run a.out
99
+ // RUN: rm -f default* && %run ./ a.out
100
100
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
101
101
//
102
102
// RUN: %clang_pgogen -flto -fno-function-sections -Wl,-bcdtors:mbr foo.o main.o
103
- // RUN: rm -f default* && %run a.out
103
+ // RUN: rm -f default* && %run ./ a.out
104
104
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
105
105
//
106
106
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:all foo.o main.o
107
- // RUN: rm -f default* && %run a.out
107
+ // RUN: rm -f default* && %run ./ a.out
108
108
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
109
109
//
110
110
// RUN: %clang_pgogen -flto -ffunction-sections -Wl,-bcdtors:mbr foo.o main.o
111
- // RUN: rm -f default* && %run a.out
111
+ // RUN: rm -f default* && %run ./ a.out
112
112
// RUN: llvm-profdata show --all-functions default* | FileCheck %s -check-prefix=BOTH
113
113
114
114
// BOTH-DAG: foo:
0 commit comments