[libcxx-commits] [libcxx] [libc++][test] Fix `is_always_lock_free` test (PR #105966)
Stephan T. Lavavej via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 24 19:35:28 PDT 2024
StephanTLavavej wrote:
Now that the test is correctly named, it's also being picked up by libc++'s test harness and experiencing other problems:
```
# | /home/runner/_work/llvm-project/llvm-project/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp:102:3: error: AVX vector argument of type '__attribute__((__vector_size__(16 * sizeof(int)))) int' (vector of 16 'int' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
# | 102 | CHECK_ALWAYS_LOCK_FREE(int __attribute__((vector_size(16 * sizeof(int)))));
# | | ^
# | /home/runner/_work/llvm-project/llvm-project/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp:58:23: note: expanded from macro 'CHECK_ALWAYS_LOCK_FREE'
# | 58 | std::atomic<type> a(obj); \
# | | ^
```
I'm not tooled up to fix these (it's passing for MSVC's STL), can a real libc++ dev help?
https://github.com/llvm/llvm-project/pull/105966
More information about the libcxx-commits
mailing list