[libcxx-commits] [PATCH] D144345: [libcxx] [test] Add RISCV support for max_size.pass.cpp
Xeonacid via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 19 04:15:04 PST 2023
Xeonacid created this revision.
Herald added subscribers: VincentWu, vkmr, evandro, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, rogfer01, shiva0217, kito-cheng, simoncook, fedor.sergeev, arichardson.
Herald added a project: All.
Xeonacid requested review of this revision.
Herald added subscribers: libcxx-commits, pcwang-thead, eopXD.
Herald added a project: libc++.
Herald added a reviewer: libc++.
As other arches do.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144345
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
@@ -82,13 +82,19 @@
# else
full_size();
# endif
-# elif defined(__sparc64__)
+# elif defined(__riscv)
+# ifdef __BIG_ENDIAN__
half_size();
-# elif defined(_WIN32)
+# else
full_size();
-# else
-# error "Your target system seems to be unsupported."
-# endif
+# endif
+# elif defined(__sparc64__)
+ half_size();
+# elif defined(_WIN32)
+ full_size();
+# else
+# error "Your target system seems to be unsupported."
+# endif
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144345.498663.patch
Type: text/x-patch
Size: 772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230219/f4288dd1/attachment.bin>
More information about the libcxx-commits
mailing list