fix userland/cpp/atomic/aarch64_add.cpp which can fail but was asserting

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-04-29 04:00:03 +00:00
parent f5d4998ff5
commit 988b97c068

View File

@@ -116,7 +116,7 @@ int main(int argc, char **argv) {
uint64_t expect = nthreads * niters; uint64_t expect = nthreads * niters;
#if LKMC_USERLAND_ATOMIC_FAIL || \ #if LKMC_USERLAND_ATOMIC_FAIL || \
LKMC_USERLAND_ATOMIC_X86_64_INC || \ LKMC_USERLAND_ATOMIC_X86_64_INC || \
LKMC_USERLAND_ATOMIC_AARCH64_INC LKMC_USERLAND_ATOMIC_AARCH64_ADD
// These fail, so we just print the outcomes. // These fail, so we just print the outcomes.
std::cout << "expect " << expect << std::endl; std::cout << "expect " << expect << std::endl;
std::cout << "global " << global << std::endl; std::cout << "global " << global << std::endl;