Skip to content

Commit

Permalink
[AIX] enable the cases that are excluded by XCOFF 64 integrated-as su…
Browse files Browse the repository at this point in the history
…pport

These case are excluded in https://reviews.llvm.org/D113049.
Now AIX XCOFF 64 integrated-as support improves a lot and all these
cases pass now, so enable them.
  • Loading branch information
chenzheng1030 committed Apr 14, 2023
1 parent 62ef97e commit 4b0a253
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
1 change: 0 additions & 1 deletion clang/test/ASTMerge/codegen-body/test.c
@@ -1,4 +1,3 @@
// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}}
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/body1.c
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/body2.c
// RUN: %clang_cc1 -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast %s
Expand Down
2 changes: 0 additions & 2 deletions clang/test/ClangScanDeps/modules-full-by-mod-name.c
@@ -1,5 +1,3 @@
// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}}

// RUN: rm -rf %t
// RUN: split-file %s %t

Expand Down
1 change: 0 additions & 1 deletion clang/test/ClangScanDeps/resource_directory.c
@@ -1,4 +1,3 @@
// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}}
// REQUIRES: shell

// RUN: rm -rf %t && mkdir %t
Expand Down
27 changes: 5 additions & 22 deletions llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
Expand Up @@ -1176,11 +1176,13 @@ TEST(DWARFDebugInfo, TestStringOffsets) {
EXPECT_STREQ(String1, *Extracted3);
}

#if defined(_AIX) && defined(__64BIT__)
// AIX does not support string offset section.
#if defined(_AIX)
TEST(DWARFDebugInfo, DISABLED_TestEmptyStringOffsets) {
#else
TEST(DWARFDebugInfo, TestEmptyStringOffsets) {
#endif

Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1209,11 +1211,7 @@ TEST(DWARFDebugInfo, TestEmptyStringOffsets) {
DwarfContext->getDWARFObj().getStrOffsetsSection().Data.empty());
}

#if defined(_AIX) && defined(__64BIT__)
TEST(DWARFDebugInfo, DISABLED_TestRelations) {
#else
TEST(DWARFDebugInfo, TestRelations) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1400,11 +1398,7 @@ TEST(DWARFDebugInfo, TestDWARFDie) {
EXPECT_FALSE(DefaultDie.getSibling().isValid());
}

#if defined(_AIX) && defined(__64BIT__)
TEST(DWARFDebugInfo, DISABLED_TestChildIterators) {
#else
TEST(DWARFDebugInfo, TestChildIterators) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1513,11 +1507,7 @@ TEST(DWARFDebugInfo, TestEmptyChildren) {
EXPECT_EQ(CUDie.begin(), CUDie.end());
}

#if defined(_AIX) && defined(__64BIT__)
TEST(DWARFDebugInfo, DISABLED_TestAttributeIterators) {
#else
TEST(DWARFDebugInfo, TestAttributeIterators) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1579,11 +1569,7 @@ TEST(DWARFDebugInfo, TestAttributeIterators) {
EXPECT_EQ(E, ++I);
}

#if defined(_AIX) && defined(__64BIT__)
TEST(DWARFDebugInfo, DISABLED_TestFindRecurse) {
#else
TEST(DWARFDebugInfo, TestFindRecurse) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1797,11 +1783,7 @@ TEST(DWARFDebugInfo, TestDwarfToFunctions) {
// Test
}

#if defined(_AIX) && defined(__64BIT__)
TEST(DWARFDebugInfo, DISABLED_TestFindAttrs) {
#else
TEST(DWARFDebugInfo, TestFindAttrs) {
#endif
Triple Triple = getNormalizedDefaultTargetTriple();
if (!isConfigurationSupported(Triple))
GTEST_SKIP();
Expand Down Expand Up @@ -1864,7 +1846,8 @@ TEST(DWARFDebugInfo, TestFindAttrs) {
EXPECT_EQ(DieMangled, toString(NameOpt, ""));
}

#if defined(_AIX) && defined(__64BIT__)
// AIX does not support debug_addr section.
#if defined(_AIX)
TEST(DWARFDebugInfo, DISABLED_TestImplicitConstAbbrevs) {
#else
TEST(DWARFDebugInfo, TestImplicitConstAbbrevs) {
Expand Down

0 comments on commit 4b0a253

Please sign in to comment.