Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / hle-xchg-acq-1.c
blob441c454700ddefbc14d821c1f3d75663a7eb558f
1 /* { dg-do compile } */
2 /* { dg-options "-mhle" } */
3 /* { dg-final { scan-assembler "\[ \n\t\]+\(xacquire\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+xchg" } } */
5 int
6 hle_xchg (int *p, int v)
8 return __atomic_exchange_n (p, v, __ATOMIC_ACQUIRE | __ATOMIC_HLE_ACQUIRE);