1 /* { dg-do compile } */
2 /* { dg-options "-mhle" } */
3 /* { dg-final { scan-assembler "\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+xchg" } } */
6 hle_xchg (int *p
, int v
)
8 return __atomic_exchange_n (p
, v
, __ATOMIC_RELEASE
| __ATOMIC_HLE_RELEASE
);