https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100678
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- This testcase should be passing since commit https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e0451f93d9faa13495132f4e246e9bef30b51417 ([nvptx] Add some support for .local atomics). It's possible that we'll put this functionality behind some -mstack-atomics, and that it'll be necessary for the test-case to add the option, but for now that not the case.