PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / hle-xadd-acq-1.c
blob4527fa9574b42096cb0788eac887d98c12f1da63
1 /* { dg-do compile } */
2 /* { dg-options "-march=x86-64 -mhle" } */
3 /* { dg-final { scan-assembler "lock;?\[ \n\t\]+\(xacquire\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+xadd" } } */
5 int
6 hle_xadd (int *p, int v)
8 return __atomic_fetch_add (p, v, __ATOMIC_ACQUIRE | __ATOMIC_HLE_ACQUIRE);