llvm-test-suite
llvm-test-suite copied to clipboard
[SingleSource/Atomic] Add preliminary tests for atomic builtins.
There exist atomic IR unit tests and libatomic unit tests, but neither can test the atomicity and interoperability of atomic builtins and compiler-rt's atomic library. These tests aim to approximate behaviour encountered in user code.
These tests have caught issues in Clang. See llvm/llvm-project#74349 and llvm/llvm-project#73176 for LLVM changes inspired by these tests.
Note to reviewers: this is a recreation of the accidentally closed https://github.com/llvm/llvm-test-suite/pull/78.
Gentle bump.