Debian Codegraph @

gcc/testsuite/gcc.target/nvptx/softstack-2.c

raw
1 /* { dg-options "-O2 -msoft-stack" } */
2
3 int
4 f (void)
5 {
6 int a = 0;
7 return __sync_lock_test_and_set (&a, 1);
8 }
9
10 /* { dg-final { scan-assembler-times "atom.exch" 1 } } */
11