Even after D86621, clang -m32 on Solaris/sparcv9 doesn't inline atomics with 8-byte
operands, unlike gcc. This leads to many link failures in the testsuite (undefined references
to __atomic_load_8 and __sync_val_compare_and_swap_8. Until a proper codegen fix can be implemented, this patch works around the first of those by linking with -latomic.
Tested on sparcv9-sun-solaris2.11.
This comment is misleading. It's not so much that LLVM doesn't support them, but that SPARCv8 doesn't have the necessary hardware support. The v8+ support is incomplete, which is a related problem though.