[llvm] [AIX] Fix dwarf testcases on AIX (PR #163822)

Mark Danial via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 16 09:43:36 PDT 2025


https://github.com/madanial0 created https://github.com/llvm/llvm-project/pull/163822

These test cases break the aix bots starting https://lab.llvm.org/buildbot/#/builders/64/builds/6062 and are not supported on AIX 

>From 83119288e5380a47ea614feaf6da8a5ea4e5acae Mon Sep 17 00:00:00 2001
From: Mark Danial <mark.danial at ibm.com>
Date: Thu, 16 Oct 2025 12:34:25 -0400
Subject: [PATCH] fix dwarf testcases on AIX

---
 llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll | 2 ++
 llvm/test/DebugInfo/Generic/compileunit-source-language.ll      | 2 ++
 llvm/test/DebugInfo/dwarf-complex-int.ll                        | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll b/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll
index e2b6167cab910..54ef7c799f98c 100644
--- a/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll
+++ b/llvm/test/DebugInfo/Generic/compileunit-source-language-name.ll
@@ -1,3 +1,5 @@
+; AIX doesn't have support for DWARF 6 DW_AT_language_name
+; XFAIL: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
 ; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s --implicit-check-not "DW_AT_language"
 
 ; CHECK: DW_AT_language_name (DW_LNAME_ObjC_plus_plus)
diff --git a/llvm/test/DebugInfo/Generic/compileunit-source-language.ll b/llvm/test/DebugInfo/Generic/compileunit-source-language.ll
index bafe6206c241a..dc5bf0f4a3ee3 100644
--- a/llvm/test/DebugInfo/Generic/compileunit-source-language.ll
+++ b/llvm/test/DebugInfo/Generic/compileunit-source-language.ll
@@ -1,3 +1,5 @@
+; AIX doesn't have support for DWARF 6 DW_AT_language_name
+; XFAIL: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
 ; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s --implicit-check-not "DW_AT_language_name"
 
 ; CHECK: DW_AT_language (DW_LANG_C)
diff --git a/llvm/test/DebugInfo/dwarf-complex-int.ll b/llvm/test/DebugInfo/dwarf-complex-int.ll
index effd0ece2c445..84be51e96156a 100644
--- a/llvm/test/DebugInfo/dwarf-complex-int.ll
+++ b/llvm/test/DebugInfo/dwarf-complex-int.ll
@@ -1,4 +1,6 @@
 ; REQUIRES: object-emission
+; AIX doesn't have full support for DWARF 5
+; XFAIL: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
 ; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
 
 ;; https://github.com/llvm/llvm-project/issues/140362



More information about the llvm-commits mailing list