[libcxx-commits] [PATCH] D143158: [libcxx][test] Cover RISC-V in string.capacity test

Alex Bradbury via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 2 02:25:53 PST 2023


asb created this revision.
asb added reviewers: philnik, ldionne.
Herald added subscribers: wingo, pmatos, VincentWu, vkmr, luismarques, sameer.abuasal, s.egerton, Jim, PkmX, rogfer01, shiva0217, kito-cheng, simoncook, arichardson.
Herald added a project: All.
asb requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: libc++.
Herald added a reviewer: libc++.

Prior to this patch, libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp would fail for RISC-V.

The `__riscv` macro is defined for both RV32 and RV64.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143158

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
@@ -84,6 +84,8 @@
 #   endif
 # elif defined(__sparc64__)
   half_size();
+# elif defined(__riscv)
+  full_size();
 # elif defined(_WIN32)
   full_size();
 # else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143158.494216.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230202/ad7e7fb2/attachment-0001.bin>


More information about the libcxx-commits mailing list