[PATCH] D72184: [BPF] support atomic instructions
Alexei Starovoitov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 19 11:25:30 PST 2020
ast added inline comments.
================
Comment at: llvm/test/CodeGen/BPF/atomics_2.ll:14
+; int test_xchg_64(long *p, long v) {
+; return __sync_lock_test_and_set(p, v);
+; }
----------------
test_and_set is not the same as xchg.
xchg doesn't do comparison.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72184/new/
https://reviews.llvm.org/D72184
More information about the cfe-commits
mailing list