[flang-commits] [flang] [flang][AIX] XFAIL tests that use plugin (NFC) (PR #176489)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Mon Jan 19 11:00:29 PST 2026
https://github.com/kkwli updated https://github.com/llvm/llvm-project/pull/176489
>From ae1df0c5f69ef7594c246b86d97db46a324f9095 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Fri, 16 Jan 2026 15:33:55 -0500
Subject: [PATCH 1/3] [flang][AIX] XFAIL tests that use plugin (NFC)
---
flang/test/Examples/feature-list-class.f90 | 1 +
flang/test/Examples/feature-list-functions.f90 | 1 +
flang/test/Examples/omp-atomic.f90 | 1 +
flang/test/Examples/omp-declarative-directive.f90 | 1 +
flang/test/Examples/omp-device-constructs.f90 | 1 +
flang/test/Examples/omp-in-reduction-clause.f90 | 1 +
flang/test/Examples/omp-nowait.f90 | 1 +
flang/test/Examples/omp-order-clause.f90 | 1 +
flang/test/Examples/omp-sections.f90 | 1 +
flang/test/Examples/print-fns-calls.f90 | 1 +
flang/test/Examples/print-fns-definitions.f90 | 1 +
flang/test/Examples/print-fns-interfaces.f90 | 1 +
12 files changed, 12 insertions(+)
diff --git a/flang/test/Examples/feature-list-class.f90 b/flang/test/Examples/feature-list-class.f90
index cf847cb04a2bf..5ad3286cfdd72 100644
--- a/flang/test/Examples/feature-list-class.f90
+++ b/flang/test/Examples/feature-list-class.f90
@@ -1,5 +1,6 @@
! UNSUPPORTED: system-windows
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangFeatureList%pluginext \
! RUN: -plugin feature-list %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/feature-list-functions.f90 b/flang/test/Examples/feature-list-functions.f90
index df18aa4e9b5fa..0a85ee1e91d1a 100644
--- a/flang/test/Examples/feature-list-functions.f90
+++ b/flang/test/Examples/feature-list-functions.f90
@@ -1,5 +1,6 @@
! UNSUPPORTED: system-windows
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangFeatureList%pluginext \
! RUN: -plugin feature-list %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/omp-atomic.f90 b/flang/test/Examples/omp-atomic.f90
index 084cf6c509fe6..863cac0b8e0ba 100644
--- a/flang/test/Examples/omp-atomic.f90
+++ b/flang/test/Examples/omp-atomic.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-declarative-directive.f90 b/flang/test/Examples/omp-declarative-directive.f90
index 6490976198cc3..4d5482816b2c6 100644
--- a/flang/test/Examples/omp-declarative-directive.f90
+++ b/flang/test/Examples/omp-declarative-directive.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-device-constructs.f90 b/flang/test/Examples/omp-device-constructs.f90
index 70d64077005a7..c35b9bc54404d 100644
--- a/flang/test/Examples/omp-device-constructs.f90
+++ b/flang/test/Examples/omp-device-constructs.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
!RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-in-reduction-clause.f90 b/flang/test/Examples/omp-in-reduction-clause.f90
index 6634d52e40f59..2bd6587f8ef8b 100644
--- a/flang/test/Examples/omp-in-reduction-clause.f90
+++ b/flang/test/Examples/omp-in-reduction-clause.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-nowait.f90 b/flang/test/Examples/omp-nowait.f90
index 7ef8061845da9..5eee5b66bdf71 100644
--- a/flang/test/Examples/omp-nowait.f90
+++ b/flang/test/Examples/omp-nowait.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-order-clause.f90 b/flang/test/Examples/omp-order-clause.f90
index a0872302b14c8..303daaef9d31a 100644
--- a/flang/test/Examples/omp-order-clause.f90
+++ b/flang/test/Examples/omp-order-clause.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s
diff --git a/flang/test/Examples/omp-sections.f90 b/flang/test/Examples/omp-sections.f90
index 3e18d0cd7261a..9e2b833e8c615 100644
--- a/flang/test/Examples/omp-sections.f90
+++ b/flang/test/Examples/omp-sections.f90
@@ -1,4 +1,5 @@
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport%pluginext -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
diff --git a/flang/test/Examples/print-fns-calls.f90 b/flang/test/Examples/print-fns-calls.f90
index 3ec05fb94fb29..e6856bb64a29b 100644
--- a/flang/test/Examples/print-fns-calls.f90
+++ b/flang/test/Examples/print-fns-calls.f90
@@ -2,6 +2,7 @@
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/print-fns-definitions.f90 b/flang/test/Examples/print-fns-definitions.f90
index a2bea4094fbca..48ebacea2d37c 100644
--- a/flang/test/Examples/print-fns-definitions.f90
+++ b/flang/test/Examples/print-fns-definitions.f90
@@ -3,6 +3,7 @@
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
diff --git a/flang/test/Examples/print-fns-interfaces.f90 b/flang/test/Examples/print-fns-interfaces.f90
index 5411f3dc5afe2..f9a3c9272d21e 100644
--- a/flang/test/Examples/print-fns-interfaces.f90
+++ b/flang/test/Examples/print-fns-interfaces.f90
@@ -3,6 +3,7 @@
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
+! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
>From 9a601c55f0266cf300f89075b9fa689577fbf375 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Fri, 16 Jan 2026 17:46:06 -0500
Subject: [PATCH 2/3] use the @LINE directive
---
flang/test/Examples/omp-atomic.f90 | 10 +++++-----
flang/test/Examples/omp-declarative-directive.f90 | 4 ++--
flang/test/Examples/omp-device-constructs.f90 | 12 ++++++------
flang/test/Examples/omp-in-reduction-clause.f90 | 10 +++++-----
flang/test/Examples/omp-order-clause.f90 | 6 +++---
flang/test/Examples/omp-sections.f90 | 6 +++---
6 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/flang/test/Examples/omp-atomic.f90 b/flang/test/Examples/omp-atomic.f90
index 863cac0b8e0ba..708a2f862f1d0 100644
--- a/flang/test/Examples/omp-atomic.f90
+++ b/flang/test/Examples/omp-atomic.f90
@@ -26,7 +26,7 @@
! CHECK:---
! CHECK-NEXT:- file: '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT: line: 9
+! CHECK-NEXT: line: [[@LINE-19]]
! CHECK-NEXT: construct: atomic
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: read
@@ -34,7 +34,7 @@
! CHECK-NEXT: - clause: seq_cst
! CHECK-NEXT: details: ''
! CHECK-NEXT:- file: '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT: line: 12
+! CHECK-NEXT: line: [[@LINE-24]]
! CHECK-NEXT: construct: atomic
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: seq_cst
@@ -42,7 +42,7 @@
! CHECK-NEXT: - clause: write
! CHECK-NEXT: details: ''
! CHECK-NEXT:- file: '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT: line: 16
+! CHECK-NEXT: line: [[@LINE-28]]
! CHECK-NEXT: construct: atomic
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: capture
@@ -50,11 +50,11 @@
! CHECK-NEXT: - clause: seq_cst
! CHECK-NEXT: details: ''
! CHECK-NEXT:- file: '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT: line: 21
+! CHECK-NEXT: line: [[@LINE-31]]
! CHECK-NEXT: construct: atomic
! CHECK-NEXT: clauses: []
! CHECK-NEXT:- file: '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT: line: 8
+! CHECK-NEXT: line: [[@LINE-48]]
! CHECK-NEXT: construct: parallel
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: num_threads
diff --git a/flang/test/Examples/omp-declarative-directive.f90 b/flang/test/Examples/omp-declarative-directive.f90
index 4d5482816b2c6..7ee2fc5e2464d 100644
--- a/flang/test/Examples/omp-declarative-directive.f90
+++ b/flang/test/Examples/omp-declarative-directive.f90
@@ -30,13 +30,13 @@ end module m2
! CHECK:---
! CHECK-NEXT:- file: '{{[^"]*}}omp-declarative-directive.f90'
-! CHECK-NEXT: line: 11
+! CHECK-NEXT: line: [[@LINE-21]]
! CHECK-NEXT: construct: declare simd
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: aligned
! CHECK-NEXT: details: a
! CHECK-NEXT:- file: '{{[^"]*}}omp-declarative-directive.f90'
-! CHECK-NEXT: line: 21
+! CHECK-NEXT: line: [[@LINE-17]]
! CHECK-NEXT: construct: declare target
! CHECK-NEXT: clauses: []
! CHECK-NEXT:...
diff --git a/flang/test/Examples/omp-device-constructs.f90 b/flang/test/Examples/omp-device-constructs.f90
index c35b9bc54404d..1f4100cc0d09d 100644
--- a/flang/test/Examples/omp-device-constructs.f90
+++ b/flang/test/Examples/omp-device-constructs.f90
@@ -54,25 +54,25 @@ end program main
! CHECK: ---
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 16
+! CHECK-NEXT: line: [[@LINE-40]]
! CHECK-NEXT: construct: target
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: map
! CHECK-NEXT: details: arraya
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 22
+! CHECK-NEXT: line: [[@LINE-40]]
! CHECK-NEXT: construct: target
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: device
! CHECK-NEXT: details: '0'
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 28
+! CHECK-NEXT: line: [[@LINE-40]]
! CHECK-NEXT: construct: target
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: defaultmap
! CHECK-NEXT: details: 'tofrom:scalar'
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 34
+! CHECK-NEXT: line: [[@LINE-40]]
! CHECK-NEXT: construct: teams
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: default
@@ -86,13 +86,13 @@ end program main
! CHECK-NEXT: - clause: thread_limit
! CHECK-NEXT: details: '10'
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 40
+! CHECK-NEXT: line: [[@LINE-48]]
! CHECK-NEXT: construct: target
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: map
! CHECK-NEXT: details: 'tofrom:a'
! CHECK-NEXT: - file: '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT: line: 46
+! CHECK-NEXT: line: [[@LINE-48]]
! CHECK-NEXT: construct: target data
! CHECK-NEXT: clauses:
! CHECK-NEXT: - clause: device
diff --git a/flang/test/Examples/omp-in-reduction-clause.f90 b/flang/test/Examples/omp-in-reduction-clause.f90
index 2bd6587f8ef8b..69bcc1687d4bb 100644
--- a/flang/test/Examples/omp-in-reduction-clause.f90
+++ b/flang/test/Examples/omp-in-reduction-clause.f90
@@ -21,19 +21,19 @@ subroutine omp_in_reduction_taskgroup()
end subroutine omp_in_reduction_taskgroup
!CHECK: - file: {{.*}}
-!CHECK: line: 10
+!CHECK: line: [[@LINE-13]]
!CHECK: construct: task
!CHECK: clauses:
!CHECK: - clause: in_reduction
!CHECK: details: '+:z'
!CHECK: - file: {{.*}}
-!CHECK: line: 14
+!CHECK: line: [[@LINE-15]]
!CHECK: construct: taskloop
!CHECK: clauses:
!CHECK: - clause: in_reduction
!CHECK: details: '+:z'
!CHECK: - file: {{.*}}
-!CHECK: line: 9
+!CHECK: line: [[@LINE-26]]
!CHECK: construct: taskgroup
!CHECK: clauses:
!CHECK: - clause: task_reduction
@@ -51,13 +51,13 @@ subroutine omp_in_reduction_parallel()
end subroutine omp_in_reduction_parallel
!CHECK: - file: {{.*}}
-!CHECK: line: 44
+!CHECK: line: [[@LINE-9]]
!CHECK: construct: taskloop simd
!CHECK: clauses:
!CHECK: - clause: in_reduction
!CHECK: details: '+:z'
!CHECK: - file: {{.*}}
-!CHECK: line: 43
+!CHECK: line: [[@LINE-16]]
!CHECK: construct: parallel
!CHECK: clauses:
!CHECK: - clause: reduction
diff --git a/flang/test/Examples/omp-order-clause.f90 b/flang/test/Examples/omp-order-clause.f90
index 303daaef9d31a..f4a6b0aefd8ab 100644
--- a/flang/test/Examples/omp-order-clause.f90
+++ b/flang/test/Examples/omp-order-clause.f90
@@ -15,7 +15,7 @@ subroutine test_order()
end subroutine
!CHECK: - file: {{.*}}
-!CHECK: line: 9
+!CHECK: line: [[@LINE-8]]
!CHECK: construct: do
!CHECK: clauses:
!CHECK: - clause: order
@@ -31,7 +31,7 @@ subroutine test_order_reproducible()
end subroutine
!CHECK: - file: {{.*}}
-!CHECK: line: 25
+!CHECK: line: [[@LINE-8]]
!CHECK: construct: simd
!CHECK: clauses:
!CHECK: - clause: order
@@ -47,7 +47,7 @@ subroutine test_order_unconstrained()
end subroutine
!CHECK: - file: {{.*}}
-!CHECK: line: 41
+!CHECK: line: [[@LINE-8]]
!CHECK: construct: target teams distribute parallel do simd
!CHECK: clauses:
!CHECK: - clause: order
diff --git a/flang/test/Examples/omp-sections.f90 b/flang/test/Examples/omp-sections.f90
index 9e2b833e8c615..4ab24301b0054 100644
--- a/flang/test/Examples/omp-sections.f90
+++ b/flang/test/Examples/omp-sections.f90
@@ -14,15 +14,15 @@ subroutine omp_sections()
end subroutine omp_sections
!CHECK: - file: {{.*}}
-!CHECK: line: 8
+!CHECK: line: [[@LINE-8]]
!CHECK: construct: section
!CHECK: clauses: []
!CHECK: - file: {{.*}}
-!CHECK: line: 10
+!CHECK: line: [[@LINE-10]]
!CHECK: construct: section
!CHECK: clauses: []
!CHECK: - file: {{.*}}
-!CHECK: line: 7
+!CHECK: line: [[@LINE-17]]
!CHECK: construct: sections
!CHECK: clauses:
!CHECK: - clause: nowait
>From 00b35af336adaffa153a226e6cae3018135b964a Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Mon, 19 Jan 2026 13:58:37 -0500
Subject: [PATCH 3/3] update comments
---
flang/test/Examples/print-fns-calls.f90 | 2 +-
flang/test/Examples/print-fns-definitions.f90 | 2 +-
flang/test/Examples/print-fns-interfaces.f90 | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/flang/test/Examples/print-fns-calls.f90 b/flang/test/Examples/print-fns-calls.f90
index e6856bb64a29b..5197a102e6cdd 100644
--- a/flang/test/Examples/print-fns-calls.f90
+++ b/flang/test/Examples/print-fns-calls.f90
@@ -1,5 +1,5 @@
! Check the Flang Print Function Names example plugin doesn't count/print function/subroutine calls (should only count definitions)
-! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
+! This requires that the examples are built (LLVM_INCLUDE_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
! XFAIL: system-aix
diff --git a/flang/test/Examples/print-fns-definitions.f90 b/flang/test/Examples/print-fns-definitions.f90
index 48ebacea2d37c..f739843726411 100644
--- a/flang/test/Examples/print-fns-definitions.f90
+++ b/flang/test/Examples/print-fns-definitions.f90
@@ -1,6 +1,6 @@
! Check the Flang Print Function Names example plugin prints and counts function/subroutine definitions
! This includes internal and external Function/Subroutines, but not Statement Functions
-! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
+! This requires that the examples are built (LLVM_INCLUDE_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
! XFAIL: system-aix
diff --git a/flang/test/Examples/print-fns-interfaces.f90 b/flang/test/Examples/print-fns-interfaces.f90
index f9a3c9272d21e..868aa2e9fb4f5 100644
--- a/flang/test/Examples/print-fns-interfaces.f90
+++ b/flang/test/Examples/print-fns-interfaces.f90
@@ -1,6 +1,6 @@
! Check the Flang Print Function Names example plugin doesn't count/print Functions/Subroutines in interfaces
! (It should only count definitions, which will appear elsewhere for interfaced functions/subroutines)
-! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
+! This requires that the examples are built (LLVM_INCLUDE_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples
! XFAIL: system-aix
More information about the flang-commits
mailing list