XFAIL some PGO tests on AIX until the new linker becomes publicly available.
GitOrigin-RevId: 93bb2f16e85d2d4c8d3ddadebd99fc0fe26d974b
diff --git a/test/profile/Posix/gcov-destructor.c b/test/profile/Posix/gcov-destructor.c
index c6fa144..8cd9712 100644
--- a/test/profile/Posix/gcov-destructor.c
+++ b/test/profile/Posix/gcov-destructor.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
/// Test that destructors and destructors whose priorities are greater than 100 are tracked.
// RUN: mkdir -p %t.dir && cd %t.dir
// RUN: %clang --coverage %s -o %t
diff --git a/test/profile/Posix/gcov-execlp.c b/test/profile/Posix/gcov-execlp.c
index 362f595..805710e 100644
--- a/test/profile/Posix/gcov-execlp.c
+++ b/test/profile/Posix/gcov-execlp.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
/// A basic block with fork/exec* is split. .gcda is flushed immediately before
/// fork/exec* so the lines before exec* are counted once while succeeding
/// lines are not counted.
diff --git a/test/profile/Posix/gcov-fork.c b/test/profile/Posix/gcov-fork.c
index e66690a..e389ac5 100644
--- a/test/profile/Posix/gcov-fork.c
+++ b/test/profile/Posix/gcov-fork.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
/// A basic block with fork/exec* is split. .gcda is flushed immediately before
/// fork/exec* so the lines before fork are counted once while succeeding
/// lines are counted twice.
diff --git a/test/profile/Posix/instrprof-gcov-parallel.test b/test/profile/Posix/instrprof-gcov-parallel.test
index 0c7198e..dce21a1 100644
--- a/test/profile/Posix/instrprof-gcov-parallel.test
+++ b/test/profile/Posix/instrprof-gcov-parallel.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/Posix/instrprof-get-filename-merge-mode.c b/test/profile/Posix/instrprof-get-filename-merge-mode.c
index 477adcd..c01177b 100644
--- a/test/profile/Posix/instrprof-get-filename-merge-mode.c
+++ b/test/profile/Posix/instrprof-get-filename-merge-mode.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
// RUN: echo get_filename_from_DSO > shr.exp
diff --git a/test/profile/gcov-__gcov_flush-terminate.c b/test/profile/gcov-__gcov_flush-terminate.c
index 649538d..e96d5d0 100644
--- a/test/profile/gcov-__gcov_flush-terminate.c
+++ b/test/profile/gcov-__gcov_flush-terminate.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
/// https://bugs.llvm.org/show_bug.cgi?id=38067
/// An abnormal exit does not clear execution counts of subsequent instructions.
// RUN: mkdir -p %t.dir && cd %t.dir
diff --git a/test/profile/gcov-basic.c b/test/profile/gcov-basic.c
index 0d8be6d..81c44df 100644
--- a/test/profile/gcov-basic.c
+++ b/test/profile/gcov-basic.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// RUN: mkdir -p %t.dir && cd %t.dir
/// gcov 3.4 redesigned the format and changed the extension from .da to .gcda
diff --git a/test/profile/gcov-complex-line.c b/test/profile/gcov-complex-line.c
index 86286c4..692b96d 100644
--- a/test/profile/gcov-complex-line.c
+++ b/test/profile/gcov-complex-line.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// This test checks that the cycle detection algorithm in llvm-cov is able to
// handle complex block graphs by skipping zero count cycles.
//
diff --git a/test/profile/gcov-dump-and-remove.c b/test/profile/gcov-dump-and-remove.c
index c35640f..3961915 100644
--- a/test/profile/gcov-dump-and-remove.c
+++ b/test/profile/gcov-dump-and-remove.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
/// Test we close file handle on flush, so the .gcda file can be deleted on
/// Windows while the process is still running. In addition, test we create
/// a new .gcda on flush, so there is a file when the process exists.
diff --git a/test/profile/infinite_loop.c b/test/profile/infinite_loop.c
index 0e3981c..4178fe4 100644
--- a/test/profile/infinite_loop.c
+++ b/test/profile/infinite_loop.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// RUN: %clang_pgogen -O2 -o %t %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
// RUN: llvm-profdata show -function main -counts %t.profraw| FileCheck %s
diff --git a/test/profile/instrprof-coverage.c b/test/profile/instrprof-coverage.c
index e7ba94d..76e572c 100644
--- a/test/profile/instrprof-coverage.c
+++ b/test/profile/instrprof-coverage.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// RUN: %clang_pgogen -mllvm -pgo-function-entry-coverage %s -o %t.out
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.out
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
diff --git a/test/profile/instrprof-gcov-exceptions.test b/test/profile/instrprof-gcov-exceptions.test
index a3dcc55..f7910b2 100644
--- a/test/profile/instrprof-gcov-exceptions.test
+++ b/test/profile/instrprof-gcov-exceptions.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/instrprof-gcov-multiple-bbs-single-line.test b/test/profile/instrprof-gcov-multiple-bbs-single-line.test
index 66b6429..cc1dc34 100644
--- a/test/profile/instrprof-gcov-multiple-bbs-single-line.test
+++ b/test/profile/instrprof-gcov-multiple-bbs-single-line.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/instrprof-gcov-multithread_fork.test b/test/profile/instrprof-gcov-multithread_fork.test
index f5ecb1e..e05ef2c 100644
--- a/test/profile/instrprof-gcov-multithread_fork.test
+++ b/test/profile/instrprof-gcov-multithread_fork.test
@@ -1,3 +1,4 @@
+XFAIL: aix
UNSUPPORTED: windows
RUN: mkdir -p %t.d
diff --git a/test/profile/instrprof-gcov-one-line-function.test b/test/profile/instrprof-gcov-one-line-function.test
index d67c21a..bb1c165 100644
--- a/test/profile/instrprof-gcov-one-line-function.test
+++ b/test/profile/instrprof-gcov-one-line-function.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/instrprof-gcov-switch.test b/test/profile/instrprof-gcov-switch.test
index 9c43a93..1616cf0 100644
--- a/test/profile/instrprof-gcov-switch.test
+++ b/test/profile/instrprof-gcov-switch.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/instrprof-gcov-two-objects.test b/test/profile/instrprof-gcov-two-objects.test
index 4080caa..2a7805e 100644
--- a/test/profile/instrprof-gcov-two-objects.test
+++ b/test/profile/instrprof-gcov-two-objects.test
@@ -1,3 +1,4 @@
+XFAIL: aix
RUN: mkdir -p %t.d
RUN: cd %t.d
diff --git a/test/profile/instrprof-get-filename.c b/test/profile/instrprof-get-filename.c
index 031b75f..c6cec8c 100644
--- a/test/profile/instrprof-get-filename.c
+++ b/test/profile/instrprof-get-filename.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// Test __llvm_profile_get_filename.
// RUN: %clang_pgogen -O2 -o %t %s
// RUN: %run %t
diff --git a/test/profile/instrprof-icall-promo.test b/test/profile/instrprof-icall-promo.test
index 2519b5c..53a7817 100644
--- a/test/profile/instrprof-icall-promo.test
+++ b/test/profile/instrprof-icall-promo.test
@@ -1,3 +1,4 @@
+// XFAIL: aix
# IR based instrumentation
RUN: %clangxx_pgogen -O2 -c -o %t.1.o %S/Inputs/instrprof-icall-promo_1.cpp
RUN: %clangxx_pgogen -O2 -c -o %t.2.o %S/Inputs/instrprof-icall-promo_2.cpp
diff --git a/test/profile/instrprof-merge-entry-cover.c b/test/profile/instrprof-merge-entry-cover.c
index e8800d9..ea2a773 100644
--- a/test/profile/instrprof-merge-entry-cover.c
+++ b/test/profile/instrprof-merge-entry-cover.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// RUN: %clang_pgogen -O2 -mllvm -pgo-function-entry-coverage -o %t %s
// RUN: %run %t %t.profraw 1 1
// RUN: llvm-profdata show --all-functions --counts %t.profraw | FileCheck %s
diff --git a/test/profile/instrprof-path.c b/test/profile/instrprof-path.c
index e4dc896..f54a898 100644
--- a/test/profile/instrprof-path.c
+++ b/test/profile/instrprof-path.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// RUN: %clang_pgogen -O2 -o %t.0 %s
// RUN: %clang_pgogen=%/t.d1 -O2 -o %t.1 %s
// RUN: %clang_pgogen=%/t.d1/%:t.d2 -O2 -o %t.2 %s
diff --git a/test/profile/instrprof-set-dir-mode.c b/test/profile/instrprof-set-dir-mode.c
index 07c7147..bc91bce 100644
--- a/test/profile/instrprof-set-dir-mode.c
+++ b/test/profile/instrprof-set-dir-mode.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// UNSUPPORTED: windows
// RUN: %clang_pgogen -o %t.bin %s -DTESTPATH=\"%t.dir\"
// RUN: rm -rf %t.dir
diff --git a/test/profile/runtime_infinite.c b/test/profile/runtime_infinite.c
index b55f5e2..adae991 100644
--- a/test/profile/runtime_infinite.c
+++ b/test/profile/runtime_infinite.c
@@ -1,3 +1,4 @@
+// XFAIL: aix
// The waiting loop never exits via the normal
// path before the profile is dumped and the
// program is terminated. This tests checks