Author: Jake Egan Date: 2021-10-08T12:06:38-04:00 New Revision: 8037481cb2d729ae3d782c3fed930f69d740fa23
URL: https://github.com/llvm/llvm-project/commit/8037481cb2d729ae3d782c3fed930f69d740fa23 DIFF: https://github.com/llvm/llvm-project/commit/8037481cb2d729ae3d782c3fed930f69d740fa23.diff LOG: [AIX] Disable tests failing due to missing DWARF sections The following tests are failing due to missing DWARF sections. This patch sets these tests as XFAIL/DISABLED on AIX until a more permanent solution is implemented. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D111336 Added: Modified: clang/test/Modules/DebugInfoSubmoduleImport.c llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll llvm/test/DebugInfo/Generic/address_space_rvalue.ll llvm/test/DebugInfo/Generic/debug-names-empty-name.ll llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll llvm/test/DebugInfo/Generic/debug-names-index-type.ll llvm/test/DebugInfo/Generic/debug-names-linkage-name.ll llvm/test/DebugInfo/Generic/debug-names-many-cu.ll llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll llvm/test/DebugInfo/Generic/debug-names-one-cu.ll llvm/test/DebugInfo/Generic/debug-names-two-cu.ll llvm/test/DebugInfo/Generic/export-symbol-anonymous-class.ll llvm/test/DebugInfo/Generic/string-offsets-form.ll llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp Removed: ################################################################################ diff --git a/clang/test/Modules/DebugInfoSubmoduleImport.c b/clang/test/Modules/DebugInfoSubmoduleImport.c index b608d300d5feb..d8fbd4eb0775c 100644 --- a/clang/test/Modules/DebugInfoSubmoduleImport.c +++ b/clang/test/Modules/DebugInfoSubmoduleImport.c @@ -1,3 +1,4 @@ +// XFAIL: -aix // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \ // RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \ diff --git a/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll b/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll index 77e4fa003865e..44fabb5e09509 100644 --- a/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll +++ b/llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s ; RUN: %llc_dwarf -debugger-tune=gdb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE ; RUN: %llc_dwarf -frame-pointer=all -debugger-tune=lldb -asm-verbose -O1 -o - < %s | FileCheck %s --check-prefix=DISABLE diff --git a/llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll b/llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll index 2e321c90b142b..f9c7da04c31e7 100644 --- a/llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll +++ b/llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Apple -filetype=obj -o - < %s \ ; RUN: | llvm-dwarfdump -apple-names - | FileCheck %s diff --git a/llvm/test/DebugInfo/Generic/address_space_rvalue.ll b/llvm/test/DebugInfo/Generic/address_space_rvalue.ll index 60e77a707b4eb..e9e91c267f733 100644 --- a/llvm/test/DebugInfo/Generic/address_space_rvalue.ll +++ b/llvm/test/DebugInfo/Generic/address_space_rvalue.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; This nonsensical example tests that address spaces for rvalue diff --git a/llvm/test/DebugInfo/Generic/debug-names-empty-name.ll b/llvm/test/DebugInfo/Generic/debug-names-empty-name.ll index 0a7b34c16281d..f578f91392174 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-empty-name.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-empty-name.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -debugger-tune=lldb -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -find=_GLOBAL__sub_I__ %t | FileCheck --check-prefix=INFO %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck --check-prefix=NAMES %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll b/llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll index c105701d95bd1..42c361ab8f15c 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-index-type.ll b/llvm/test/DebugInfo/Generic/debug-names-index-type.ll index c72b013f4d780..03af245c1d79e 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-index-type.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-index-type.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-linkage-name.ll b/llvm/test/DebugInfo/Generic/debug-names-linkage-name.ll index d8c1619871c97..7b749f8c7f4d5 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-linkage-name.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-linkage-name.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; Generate one file with all linkage names, and another with only abstract ones. ; Then test both. ; RUN: %llc_dwarf -accel-tables=Dwarf -dwarf-linkage-names=All -filetype=obj -o %t.All < %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-many-cu.ll b/llvm/test/DebugInfo/Generic/debug-names-many-cu.ll index 0171a87a47df3..c15fd4dc8ae4b 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-many-cu.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-many-cu.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll b/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll index 6b634e7d37f55..82f4550b76190 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -dwarf-linkage-names=All -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-one-cu.ll b/llvm/test/DebugInfo/Generic/debug-names-one-cu.ll index 20a6b708cb738..dbe3d79b837ac 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-one-cu.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-one-cu.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/debug-names-two-cu.ll b/llvm/test/DebugInfo/Generic/debug-names-two-cu.ll index 8900e1d6419db..1563c87ee0416 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-two-cu.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-two-cu.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s diff --git a/llvm/test/DebugInfo/Generic/export-symbol-anonymous-class.ll b/llvm/test/DebugInfo/Generic/export-symbol-anonymous-class.ll index e76e6b55e69c4..c01ce9266f1a0 100644 --- a/llvm/test/DebugInfo/Generic/export-symbol-anonymous-class.ll +++ b/llvm/test/DebugInfo/Generic/export-symbol-anonymous-class.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; ; struct A { diff --git a/llvm/test/DebugInfo/Generic/string-offsets-form.ll b/llvm/test/DebugInfo/Generic/string-offsets-form.ll index 1575974602d8c..88fdc6a6a974c 100644 --- a/llvm/test/DebugInfo/Generic/string-offsets-form.ll +++ b/llvm/test/DebugInfo/Generic/string-offsets-form.ll @@ -1,3 +1,4 @@ +; XFAIL: -aix ; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -all -show-form -v - \ ; RUN: | FileCheck %s ; diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp index 5560e7e52473e..2787297d1aaa6 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp @@ -437,7 +437,11 @@ TEST(DWARFDebugInfo, TestDWARF32Version4Addr8AllForms) { TestAllForms<4, AddrType, RefAddrType>(); } +#ifdef _AIX +TEST(DWARFDebigInfo, DISABLED_TestDWARF32Version5Addr4AllForms) { +#else TEST(DWARFDebugInfo, TestDWARF32Version5Addr4AllForms) { +#endif // Test that we can decode all forms for DWARF32, version 5, with 4 byte // addresses. typedef uint32_t AddrType; @@ -446,7 +450,11 @@ TEST(DWARFDebugInfo, TestDWARF32Version5Addr4AllForms) { TestAllForms<5, AddrType, RefAddrType>(); } +#ifdef _AIX +TEST(DWARFDebigInfo, DISABLED_TestDWARF32Version5Addr8AllForms) { +#else TEST(DWARFDebugInfo, TestDWARF32Version5Addr8AllForms) { +#endif // Test that we can decode all forms for DWARF32, version 5, with 8 byte // addresses. typedef uint64_t AddrType; @@ -1007,7 +1015,11 @@ TEST(DWARFDebugInfo, TestDWARF32Version4Addr8Addresses) { TestAddresses<4, AddrType>(); } +#ifdef _AIX +TEST(DWARFDebugInfo, DISABLED_TestStringOffsets) { +#else TEST(DWARFDebugInfo, TestStringOffsets) { +#endif Triple Triple = getNormalizedDefaultTargetTriple(); if (!isObjectEmissionSupported(Triple)) return; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits