diff --git a/clang/lib/Basic/Targets/PPC.cpp b/clang/lib/Basic/Targets/PPC.cpp index 5ce276e1af9ef6..045c273f03c7a0 100644 --- a/clang/lib/Basic/Targets/PPC.cpp +++ b/clang/lib/Basic/Targets/PPC.cpp @@ -53,7 +53,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector &Features, } else if (Feature == "+htm") { HasHTM = true; } else if (Feature == "+float128") { - HasFloat128 = true; + HasFloat128 = !getTriple().isOSAIX(); } else if (Feature == "+power9-vector") { HasP9Vector = true; } else if (Feature == "+power10-vector") { diff --git a/clang/test/Sema/128bitfloat.cpp b/clang/test/Sema/128bitfloat.cpp index b98b42496e8db2..bd9f2889c98f6a 100644 --- a/clang/test/Sema/128bitfloat.cpp +++ b/clang/test/Sema/128bitfloat.cpp @@ -1,6 +1,7 @@ // RUN: %clang_cc1 -verify -std=gnu++11 %s // RUN: %clang_cc1 -verify -std=c++11 %s // RUN: %clang_cc1 -triple powerpc64-linux -verify -std=c++11 %s +// RUN: %clang_cc1 -triple powerpc64-ibm-aix -target-feature +float128 -verify -std=c++11 %s // RUN: %clang_cc1 -triple i686-windows-gnu -verify -std=c++11 %s // RUN: %clang_cc1 -triple x86_64-windows-gnu -verify -std=c++11 %s // RUN: %clang_cc1 -triple x86_64-windows-msvc -verify -std=c++11 %s