[flang-commits] [flang] [flang] Enable debug test on AIX (NFC) (PR #169945)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Fri Nov 28 12:41:38 PST 2025
https://github.com/kkwli updated https://github.com/llvm/llvm-project/pull/169945
>From cbfb6c06bc4813e8075b38b8690bfbd85a383be8 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Fri, 28 Nov 2025 12:37:12 -0500
Subject: [PATCH 1/2] [flang] Enable debug test on AIX (NFC)
---
flang/test/Transforms/debug-dwarf-version.fir | 2 +-
flang/test/Transforms/debug-line-table-existing.fir | 2 +-
flang/test/Transforms/debug-line-table-inc-file.fir | 2 +-
flang/test/Transforms/debug-line-table-inc-same-file.fir | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/flang/test/Transforms/debug-dwarf-version.fir b/flang/test/Transforms/debug-dwarf-version.fir
index fe2700274ab87..0136d2469d749 100644
--- a/flang/test/Transforms/debug-dwarf-version.fir
+++ b/flang/test/Transforms/debug-dwarf-version.fir
@@ -8,7 +8,7 @@
// RUN: | FileCheck --check-prefix=CHECK-DWARF2 %s
// RUN: fir-opt --add-debug-info= --mlir-print-debuginfo %s \
// RUN: | FileCheck --check-prefix=CHECK-WITHOUT-VERSION %s
-// REQUIRES: system-linux
+// REQUIRES: system-linux || system-aix
module {
} loc(#loc)
diff --git a/flang/test/Transforms/debug-line-table-existing.fir b/flang/test/Transforms/debug-line-table-existing.fir
index 03eefd08a4379..98ca3dcb2a717 100644
--- a/flang/test/Transforms/debug-line-table-existing.fir
+++ b/flang/test/Transforms/debug-line-table-existing.fir
@@ -1,6 +1,6 @@
// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: system-linux
+// REQUIRES: system-linux || system-aix
// Test that there are no changes to a function with existed fused loc debug
module {
diff --git a/flang/test/Transforms/debug-line-table-inc-file.fir b/flang/test/Transforms/debug-line-table-inc-file.fir
index 32c9f515ead43..d29e2fd6683b6 100644
--- a/flang/test/Transforms/debug-line-table-inc-file.fir
+++ b/flang/test/Transforms/debug-line-table-inc-file.fir
@@ -1,6 +1,6 @@
// RUN: fir-opt --add-debug-info="debug-level=LineTablesOnly" --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: system-linux
+// REQUIRES: system-linux || system-aix
// Test for included functions that have a different debug location than the current file
module {
diff --git a/flang/test/Transforms/debug-line-table-inc-same-file.fir b/flang/test/Transforms/debug-line-table-inc-same-file.fir
index aaa8d03a76ef0..5265c79e61173 100644
--- a/flang/test/Transforms/debug-line-table-inc-same-file.fir
+++ b/flang/test/Transforms/debug-line-table-inc-same-file.fir
@@ -1,6 +1,6 @@
// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
-// REQUIRES: system-linux
+// REQUIRES: system-linux || system-aix
// Test that there is only one FileAttribute generated for multiple functions
// in the same file.
>From 50a14818622b5ca08c3adb3487e99c3c5fc5faef Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Fri, 28 Nov 2025 15:40:44 -0500
Subject: [PATCH 2/2] one more debug test in Lower
---
flang/test/Lower/module-debug-file-loc-linux.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/test/Lower/module-debug-file-loc-linux.f90 b/flang/test/Lower/module-debug-file-loc-linux.f90
index 454fad98e9af0..1c67d83492cc2 100644
--- a/flang/test/Lower/module-debug-file-loc-linux.f90
+++ b/flang/test/Lower/module-debug-file-loc-linux.f90
@@ -2,7 +2,7 @@
! RUN: %flang_fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - %s | FileCheck %s
-! REQUIRES: system-linux
+! REQUIRES: system-linux || system-aix
subroutine sb1()
end subroutine
More information about the flang-commits
mailing list