Skip to content

Commit 92ad039

Browse files
author
Wael Yehia
committed
[AIX][PGO] Enable some profile-rt tests now that -fprofile-instr-generate works on AIX
1 parent 9255850 commit 92ad039

10 files changed

+11
-6
lines changed

compiler-rt/test/profile/Posix/instrprof-visibility.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// RUN: %clangxx_profgen -fcoverage-mapping %S/Inputs/instrprof-visibility-helper.cpp -o %t %s
23
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
34
// RUN: llvm-profdata merge %t.profraw -o %t.profdata

compiler-rt/test/profile/coverage-inline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// Test that the instrumentation puts the right linkage on the profile data for
23
// inline functions.
34
// RUN: %clang_profgen -g -fcoverage-mapping -c -o %t1.o %s -DOBJECT_1

compiler-rt/test/profile/coverage_comments.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// RUN: %clangxx_profgen -fcoverage-mapping -Wno-comment -o %t %s
23
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
34
// RUN: llvm-profdata merge -o %t.profdata %t.profraw

compiler-rt/test/profile/coverage_emptylines.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// Remove comments first.
23
// RUN: sed 's/[ \t]*\/\/.*//' %s > %t.stripped.cpp
34
// RUN: %clangxx_profgen -fcoverage-mapping -o %t %t.stripped.cpp

compiler-rt/test/profile/instrprof-merging.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// UNSUPPORTED: target={{.*windows.*}}
2+
// XFAIL: target={{.*}}-aix{{.*}}
23
// 1) Compile shared code into different object files and into an executable.
34

45
// RUN: %clangxx_profgen -std=c++14 -fcoverage-mapping %s -c -o %t.v1.o \

compiler-rt/test/profile/instrprof-set-file-object-merging.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ int main(int argc, const char *argv[]) {
2424

2525
return 0;
2626
}
27+
// XFAIL: target={{.*}}-aix{{.*}}
2728
// CHECK: 10| |#include <stdio.h>
2829
// CHECK: 11| |
2930
// CHECK: 12| |extern void __llvm_profile_set_file_object(FILE *, int);

compiler-rt/test/profile/instrprof-set-file-object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ int main(int argc, const char *argv[]) {
1717
__llvm_profile_set_file_object(F, 0);
1818
return 0;
1919
}
20+
// XFAIL: target={{.*}}-aix{{.*}}
2021
// CHECK: 8| |#include <stdio.h>
2122
// CHECK: 9| |
2223
// CHECK: 10| |extern void __llvm_profile_set_file_object(FILE *, int);

compiler-rt/test/profile/instrprof-without-libc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// RUN: %clang_profgen -DCHECK_SYMBOLS -O3 -o %t.symbols %s
23
// RUN: llvm-nm %t.symbols | FileCheck %s --check-prefix=CHECK-SYMBOLS
34
// RUN: %clang_profgen -O3 -o %t %s

compiler-rt/test/profile/instrprof-write-file-only.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: target={{.*}}-aix{{.*}}
12
// RUN: %clang_profgen -o %t -O3 %s
23
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
34
// RUN: llvm-profdata merge -o %t.profdata %t.profraw

compiler-rt/test/profile/lit.cfg.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ def exclude_unsupported_files_for_aix(dirname):
7777
f = open(source_path, "r")
7878
try:
7979
data = f.read()
80-
# -fprofile-instr-generate and rpath are not supported on AIX, exclude all tests with them.
81-
if (
82-
"%clang_profgen" in data
83-
or "%clangxx_profgen" in data
84-
or "-rpath" in data
85-
):
80+
# rpath is not supported on AIX, exclude all tests with them.
81+
if ( "-rpath" in data ):
8682
config.excludes += [filename]
8783
finally:
8884
f.close()

0 commit comments

Comments
 (0)