[PATCH] D85044: Add __atomic_is_lock_free to compiler-rt
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 8 03:06:53 PST 2020
arichardson added inline comments.
================
Comment at: compiler-rt/test/builtins/Unit/atomic_lock_free_test.cc:57
+ double d __attribute__((aligned(8))) = 8.0;
+ assert(__atomic_is_lock_free_c(8, &d) && "size=8 is not lock free");
+
----------------
This will fail on many 32-bit architectures (e.g. RISC-V 32)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85044/new/
https://reviews.llvm.org/D85044
More information about the llvm-commits
mailing list