<div dir="ltr">Identified a while before the release, there is an issue with 64-bit atomics on ARM that was making Clang mis-compile a lot of code, including Clang itself.<div><br></div><div><a href="http://llvm.org/bugs/show_bug.cgi?id=15429">http://llvm.org/bugs/show_bug.cgi?id=15429</a><br>
</div><div><br></div><div style>Attached is a patch proposed by Benjamin with the corrections to the test.</div><div style><br></div><div style>I'm not an expert on how Clang lowers C11 atomics, but the resulting IR seems correct, and after self-hosting Clang with this patch, it managed to pass all test-suite (as before), which is a good indication that the patch does fix the problem.</div>
<div style><br></div><div style>Please review!</div><div style><br></div><div style>cheers,</div><div style>--renato</div></div>