aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/nvptx/softstack-2.c
blob: cccfda947d7d7f1174459245c33c4e3fd0290387 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-options "-O2 -msoft-stack" } */

int
f (void)
{
  int a = 0;
  return __sync_lock_test_and_set (&a, 1);
}

/* { dg-final { scan-assembler-times "atom.exch" 1 } } */