[libc-commits] [libc] [libc] Allow RPC doorbells when compiling with MSVC (PR #245843)
Yaxun Liu via libc-commits
libc-commits at lists.llvm.org
Tue Nov 24 18:53:26 PST 2026
================
@@ -67,3 +67,22 @@ TEST(LlvmLibcSharedRpcTest, TestIncrement) {
ProcA.unlock(lane_mask, index);
ProcB.unlock(lane_mask, index);
}
+
+TEST(LlvmLibcSharedRpcTest, TestDoorbell) {
+ constexpr uint32_t port_count = 1;
+ constexpr uint32_t lane_size = 1;
+ alignas(64)
+ uint8_t buffer[::rpc::Server::allocation_size(lane_size, port_count)] = {
+ 0};
+ alignas(8) uint64_t value = 0;
----------------
yxsamliu wrote:
Could you also start the counter at `0xffffffff` and check that it goes up to `0x100000000` and back down? That would catch a fix that updates only the low 32 bits.
https://github.com/llvm/llvm-project/pull/245843
More information about the libc-commits
mailing list