[libcxx-commits] [libcxx] 73c273c - [NFC][libcxx] Check def of __LONG_DOUBLE_IEEE128__

David Tenty via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 14 10:43:13 PDT 2022


Author: David Tenty
Date: 2022-06-14T13:41:31-04:00
New Revision: 73c273c97a41d51ff45518445660d4808f43a244

URL: https://github.com/llvm/llvm-project/commit/73c273c97a41d51ff45518445660d4808f43a244
DIFF: https://github.com/llvm/llvm-project/commit/73c273c97a41d51ff45518445660d4808f43a244.diff

LOG: [NFC][libcxx] Check def of __LONG_DOUBLE_IEEE128__

Follow on to https://reviews.llvm.org/D108352, also check for the
definition of __LONG_DOUBLE_128__ before using it (because AIX doesn't
enable it by default).

Reviewed By: xingxue

Differential Revision: https://reviews.llvm.org/D127002

Added: 
    

Modified: 
    libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
index dbf9c016876ad..e88cf88d86e06 100644
--- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
+++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
@@ -8,8 +8,6 @@
 //
 // UNSUPPORTED: c++03, c++11, c++14, c++17
 
-// XFAIL: LIBCXX-AIX-FIXME
-
 // <numeric>
 
 // template <class _Float>
@@ -95,7 +93,8 @@ void fp_test()
     assert(d0 < d1);  // sanity checking
     assert(d1 < d2);  // sanity checking
 
-#if defined(__PPC__) && __LONG_DOUBLE_128__ && !(defined(__LONG_DOUBLE_IEEE128__) && __LONG_DOUBLE_IEEE128__)
+#if defined(__PPC__) && (defined(__LONG_DOUBLE_128__) && __LONG_DOUBLE_128__) &&                                       \
+    !(defined(__LONG_DOUBLE_IEEE128__) && __LONG_DOUBLE_IEEE128__)
 //	For 128 bit long double implemented as 2 doubles on PowerPC,
 //	nextafterl() of libm gives imprecise results which fails the
 //	midpoint() tests below. So skip the test for this case.


        


More information about the libcxx-commits mailing list