[libcxx-commits] [PATCH] D131682: [libcxx] [test] Fix max_size.pass.cpp for PowerPC targets
Amy Kwan via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 11 19:39:41 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe2e9e2ce8efd: [libcxx] [test] Fix max_size.pass.cpp for PowerPC targets (authored by amyk).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131682/new/
https://reviews.llvm.org/D131682
Files:
libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
Index: libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
===================================================================
--- libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
+++ libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
@@ -74,7 +74,13 @@
# else
full_size();
# endif
-# elif defined(__powerpc__) || defined(__powerpc64__) || defined(__sparc64__)
+# elif defined(__powerpc__) || defined(__powerpc64__)
+# ifdef __BIG_ENDIAN__
+ half_size();
+# else
+ full_size();
+# endif
+# elif defined(__sparc64__)
half_size();
# elif defined(_WIN32)
full_size();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131682.452060.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220812/e4786266/attachment.bin>
More information about the libcxx-commits
mailing list