Issue: The inline assembly language code blocks used in locktest.c for various atomic operations is for primarily for x86_64 architecture and locktest is not #ifdef conditionally compiled , so it fails to build on other architectures as the inline assembly instructions are not interpreted by the compiler.
Would be great to make provision for arm64 and ppcle inline asm code in locktest.c so that this test can be used on non-x8664 architectures would be great.